douan2478 2019-04-11 13:46
浏览 177

Bitninja是否有sql注入误报?

I'm trying to save some php code to have saved examples and code templates on a server I currently rent. The problem is when I send $ to the server, it saves it in the database, no problem. But when I query the data it tells me there's an sql injection and blocks the IP address where I queried the table. Funny thing is that my table has categories and the problem only occurs when I query "category_id=3", the other categories have no hickups showing me the data with $.
Overall, I realize how this could be a problem, but all my inputs are escaped and have special measures in special cases and all my queries are formed by the same functions.

I tried changing $ to &dollar ; to get around this problem so that in the event I forgot to escape something or I don't know, php wouldn't recognize it as a variable but the result is the same.
I really don't get why this could be a major issue with BitNinja when I save html entities in plain text.

I know I could save the codes in files, getting around the database or base64 the code and save it as such, but that's not the issue here.

  • 写回答

1条回答 默认 最新

  • douju1968 2019-04-12 00:17
    关注

    Assuming you're using the WAF module, then yes, it does produce false positives (as would almost any WAF detection of SQL injections). In their blog entry about this they state:

    Our WAF 2.0 module protects you against SQL injections.

    In the official OWASP Core Ruleset we have a ruleset for this attack vector. This is an very general ruleset so if you need to use it you must be very careful. I suggest if you enable it, use it in log-only mode.

    As Bill mentions in the comments, we would need to see the code and data, to determine whether this is a true false positive.

    评论

报告相同问题?

悬赏问题

  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)