【发布时间】:2015-09-28 09:04:52
【问题描述】:
我的表单中有一个输入字段,用户可以在其中输入 url 地址。我知道如何更新目标规则以防止误报:
SecRuleRemoveById 950120 !ARGS:urlField
但这不适用于规则950120:Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link。该错误没有指出违反规则的论点。它只是给出信息:
Message: Access denied with code 403 (phase 2).
Match of "beginsWith %{request_headers.host}" against "TX:1" required.
[file "/etc/httpd/crs-tecmint/owasp-modsecurity-crs/base_rules/modsecurity_crs_40_generic_attacks.conf"]
[line "163"] [id "950120"] [rev "3"]
[msg "Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link"]
[data "Matched Data: http://asite.com.hk/live found within TX:1: asite.com.hk/live"]
[severity "CRITICAL"] [ver "OWASP_CRS/2.2.9"]
[maturity "9"] [accuracy "9"]
[tag "OWASP_CRS/WEB_ATTACK/RFI"]
Action: Intercepted (phase 2)
如果消息中没有违规参数,这是否意味着SecRuleRemoveById 不适用于此规则?如何在不完全删除此规则的情况下更新它?
【问题讨论】:
标签: apache mod-rewrite owasp mod-security