Hello everybody, I administer a server based on Debian with Ispconfig3, and I'm having issues related to image and videos management with the Wordpress CMS: It's possible to upload files, but when I try to insert them in a post, I get a 403 error. Here's what I get from /var/log/apache2/modsec_audit.log: Now, If I set SecRuleEngine to Off, everything works, but of course it's not a good solution. Setting up rules on .htaccess could maybe do the trick, but I don't know where to start from. Could anybody provide a link or a suggestion to solve the problem?
Try to add this line in the .htaccess file: SecRuleRemoveById 1234567 replace the number 1234567 with the ID of the rule that you want to disable for this website.
Hi till, adding that line to .htaccess causes an internal server error that blocks everything, no matter which rule I add (I'm having issues with basically everything is not plain text or standard html code).
Thank you, It works! Just wondering, isn't a security issue to disable the rule? Looking better in the logs, I've found out the upload process it's actually detected as a SQL injection attack: ok, I can remove the rule only for the file that causes the problem (media-upload.php in this case), but I mean, what happens if I get a real SQL injection attack? Maybe now I understand why some says Wordpress have security problems...
If the rule is enabled, then wordpress will not work. So you can decide if you want to use this rule or if you want to use wordpress. By the way, you disabled just one specific rule and its normal that you have to disable some rules for somecms systems as you always get false positives with mod_security, so thats not wordpess's fault and its not related to the fact if wordpress is a secure or insecure system. Wordpress belongs to the better cms systems, if you want a insecure cms, use joomla
Good to know. And thanks for your work with Howtoforge and ISPconfig: I'm learning a lot about how a server works!