【问题标题】:Modsecurity - REQUEST_URI allow rule is not workingModsecurity - REQUEST_URI 允许规则不起作用
【发布时间】:2019-04-15 05:05:59
【问题描述】:

我们有以下无效的规则,我们想将此警告列入白名单(在事件查看器中),它在 URI 中包含“testinguri”。

  1. SecRule REQUEST_URI "@contains testinguri\?op\=message" "id:200006,phase:1,nolog,allow,ctl:ruleEngine=DetectionOnly,msg:'Test 1'"

  2. SecRule REQUEST_URI "@beginsWith /en-us/testinguri?op=message" "id:200007,phase:1,nolog,allow,ctl:ruleEngine=DetectionOnly,msg:'Test 2'"

  3. SecRule REQUEST_URI "^/en-us/testinguri?op=message.*" "id:200008,phase:1,nolog,allow,ctl:ruleEngine=DetectionOnly,msg:'Test 3'"

  4. SecRule REQUEST_URI "@contains testinguri" "id:200009,phase:1,nolog,allow,ctl:ruleEngine=DetectionOnly,msg:'Test 4'"

以上规则的目的相同,但如果任何版本的规则有效但没有运气,我们就会将它们放入。

以下是事件查看器中的警告,我们希望允许其中包含“testinguri”的 URI。它现在正在检测模式下运行。

ModSecurity:警告。运营商 GE 在 TX:inbound_anomaly_score 匹配 5。 [文件“C:\Program Files\ModSecurity IIS\owasp-modsecurity-crs/rules/RESPONSE-980-CORRELATION.conf”] [行“86”] [id "980130"] [msg "Inbound Anomaly Score Exceeded (Total Inbound Score: 5 - SQLI=0,XSS=0,RFI=0,LFI=0,RCE=5,PHPI=0,HTTP=0,SESS= 0):远程命令执行:Windows 命令注入;个人偏执等级分数:5、0、0、0"] [tag "event-correlation"] [hostname "computerName"] [uri "/en-us/testinguri?op =message&to=FULL URI..."] [unique_id "454534234234234"]

你能帮忙吗?谢谢。

【问题讨论】:

    标签: mod-security web-application-firewall


    【解决方案1】:

    我们能够弄清楚。因此创建了一个 conf 文件 test.conf 并将规则放入我们想要列入白名单的文件中。

    然后在modsecurity_iis.conf 文件中最后添加了这个文件引用。

    这对我们有用。希望这会对某人有所帮助。谢谢。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-18
      相关资源
      最近更新 更多