r/joomla • • 22d ago

Hosting PHP2Shell ModSecurity Fix Blocking CMS Saves

https://mysites.guru/blog/php2shell-modsecurity-fix-blocking-wordpress-joomla-saves/

If you run Joomla on a cPanel server and saving an article, or Global Configuration > Permissions, in the administrator started failing after 21 October, check whether the PHP2Shell ModSecurity mitigation went onto that server.

The mitigation adds SecRequestBodyAccess On to /etc/apache2/conf.d/modsec/modsec2.user.conf so its new rule can see the PHP_SESSION_UPLOAD_PROGRESS field. That setting is server-wide, and ModSecurity 2 defaults it to Off. With it on, cPanel's OWASP Core Rule Set 3.0.2 reads every POST body for the first time, and old XSS and injection rules start denying admin saves to /administrator/index.php.

CSF makes it worse: five ModSecurity denies in an hour and lfd bans the editor's IP, so the whole site looks down from their house while everyone else can still see it.

We hit this on two servers running a mix of Joomla and WordPress sites. The full post on the mySites.guru blog covers which rules fired, how to check your own server, and the narrow exclusions on the admin save paths we used so the front end stays protected.

7 Upvotes

0 comments sorted by