Apache, Mod_security, and Wordpress, can't remove by rule ID -
i have been around trying working right while now, , bit bullet , posted here.
i've got lamp stack modsecurity using owasp core rule set (v 2.2.5) , installed wordpress. expected conflicts modsecurity, haven't been able ignore or work aroudn error i've encountered far.
the apache error.log file , modsec_audit.log both list same error:
modsecurity: rule 7f5d9a449228 [id "950901"][file "/etc/modsecurity/owasp-crs/activated_rules/modsecurity_crs_41_sql_injection_attacks.conf"][line "77"] - execution error - pcre limits exceeded (-8): (null).`
i've tried creating new .conf file crs conf files located containing
<locationmatch .*> <ifmodule mod_security2.c> secruleremovebyid 950901 </ifmodule> </locationmatch>
and removed ifmodule
statement , locationmatch
statement when didn't work.
finally resorted commenting out lines 76 , 77 in .conf file, , error still appeared. had no effect.
only changing secruleengine
off
in modsecurity.conf
let me access page. of course defeats purpose of modsec
.
where going wrong?
try adding php.ini
file (or included conf file):
pcre.backtrack_limit = 10000000 pcre.recursion_limit = 10000000
and modsecurity.conf
:
secpcrematchlimit 150000 secpcrematchlimitrecursion 150000
this should allow recursion without having disable mod_security
.
Comments
Post a Comment