modsecurity – MULTIPART_UNMATCHED_BOUNDARY

 

Forbidden

You don’t have permission to access /phpmyadmin/import.php on this server.

WOW!

 PHP Warning:  POST Content-Length of 9028812 bytes exceeds the limit of 8388608 bytes in Unknown on line

Looks like modsecurity is working…

ModSecurity: Access denied with code 403 (phase 2). Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required. [file "/etc/modsecurity/modsecurity.conf"] [line "80"] [id "200003"] [msg "Multipart parser detected a possible unmatched boundary."]

OK!, lets comment some lines @ modsecurity.conf and then restart apache to solve it…

nano /etc/modsecurity/modsecurity.conf

lets comment the following lines

SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
"id:'200003',phase:2,t:none,log,deny,msg:'Multipart parser detected a possible unmatched boundary.'"

and then restart apache

service apache2 restart

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.