Hello everyone,
EasyApache recently started injecting the following patch to ModSecurity 2.7:
When this rule was implemented, many clients complained about false positives triggered by the IQ segment (MULTIPART_INVALID_QUOTING).
I would like to avoid whitelisting the whole rule and would prefer skipping only the IQ test.
I have two questions:
I thank you in advance for your assistance.
Kind Regards,
Seb
Also on this topic:
- http://forums.cpanel.net/f185/modsecurity-2-7-3-issues-352881.html
EasyApache recently started injecting the following patch to ModSecurity 2.7:
Code:
SecRule MULTIPART_STRICT_ERROR "[email protected] 0" "phase:2,t:none,log,deny,status:44,msg:'Multipart request body failed strict validation: PE %{REQBODY_PROCESSOR_ERROR}, BQ %{MULTIPART_BOUNDARY_QUOTED}, BW %{MULTIPART_BOUNDARY_WHITESPACE}, DB %{MULTIPART_DATA_BEFORE}, DA %{MULTIPART_DATA_AFTER}, HF %{MULTIPART_HEADER_FOLDING}, LF %{MULTIPART_LF_LINE}, SM %{MULTIPART_MISSING_SEMICOLON}, IQ %{MULTIPART_INVALID_QUOTING}, IP %{MULTIPART_INVALID_PART}, IH %{MULTIPART_INVALID_HEADER_FOLDING}, FL %{MULTIPART_FILE_LIMIT_EXCEEDED}',id:1234123456"
I would like to avoid whitelisting the whole rule and would prefer skipping only the IQ test.
I have two questions:
- How to edit this rule to skip the IQ part.
- How should I override this rule (not in modsec2.conf obviously because it will be overwritten by easyapache on next run).
I thank you in advance for your assistance.
Kind Regards,
Seb
Also on this topic:
- http://forums.cpanel.net/f185/modsecurity-2-7-3-issues-352881.html