• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

ModSecurity Rule execution error - PCRE limits exceeded

Theodor

New Pleskian
Hello,

have somebody an ideea how to change the ModSecurity PCRE limits?

Wed Feb 24 22:11:13 2010] [error] [client...] ModSecurity: Rule execution error - PCRE limits exceeded (-8): (null). [hostname "..."] [uri "/administrator/index.php"] [unique_id "..."]

THX for help

Theodor
 
This has to do with the new PCRE recursion anto-DOS measures added into 2.5.12. It required a fairly significant rule update to support, which we added in last month.
 
I "fix" the PCRE limits exceeded Problem, I renamed the PHPIDS filters file with a new empty file, restart the Apache and now all my customers can change the website content with no restrctions.

Of course this is a quick an dirty method but much easyer like recompiling the ModSecurity.

Hope this help

Theodor
 
HI Theodor: you can compile modsecurity with pcre limit

./configure --enable-pcre-match-limit=90000 --enable-pcre-match-limit-recursion=90000
make && make install

and you can check limits whit

php -i | egrep -i pcre

or can set limit en php.ini
[Pcre]
pcre.backtrack_limit=1000000
pcre.recursion_limit=1000000
 
Hi Theodor: you can compile modsecurity with PCRE limit

./configure --enable-pcre-match-limit=90000 --enable-pcre-match-limit-recursion=90000
make && make install
 
Just be careful with that, what you're doing is creating a way to bypass mod_security on your system by limiting regular expression recursion.
 
Back
Top