ModSecurity mod_security-2.9.2, Apache 2.4, oswap crs

"Madden, Joe via mod-security-users" <[email protected]>
Newsgroups gmane.comp.apache.mod-security.user
Message-ID <LO2P123MB1919F4EDA25329986B76ABC7919F0@LO2P123MB1919.GBRP123.PROD.OUTLOOK.COM>
Hi all,

I've got an issue where a password field with complex characters was triggering the following:


Message: Access denied with code 403 (phase 2). Pattern match "([\\~\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)\\-\\+\\=\\{\\}\\[\\]\\|\\:\\;\"\\'\\\xc2\xb4\\\xe2\x80\x99\\\xe2\x80\x98\\`\\<\\>].*?){4,}" at ARGS:password. [file "/etc/httpd/modsecurity.d/activated_rules/modsecurity_crs_41_sql_injection_attacks.conf"] [line "159"] [id "981173"] [rev "2"] [msg "Restricted SQL Character Anomaly Detection Alert - Total # of special characters exceeded"] [data "Matched Data: - found within ARGS:password: ##########################"] [ver "OWASP_CRS/2.2.9"] [maturity "9"] [accuracy "8"] [tag "OWASP_CRS/WEB_ATTACK/SQL_INJECTION"]

I added this into the virtual host configuration (and tried the crs-setup.conf) but it doesn't exclude the password field.

      SecRule REQUEST_URI "@beginsWith /webclient/login" \
              "phase:2,nolog,pass,id:10001,ctl:ruleRemoveTargetById=981173;ARGS:password"


Can anyone tell me why?

What is the correct way to exclude this from that specific field (and not all other fields on the URL)

Thanks

Joe.

_______________________________________________
mod-security-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mod-security-users
Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs:
http://www.modsecurity.org/projects/commercial/rules/
http://www.modsecurity.org/projects/commercial/support/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.