-
Notifications
You must be signed in to change notification settings - Fork 728
The word "Warning" causes "PCRE limit exceeded" #1689
Comments
Hey Matthias, sorry for the inconvenience. Can you tell me what your SecPcreMatchLimit / SecPcreMatchLimitRecursion is? It's probably too low. But even if it is high enough, these errors are still possible. I would probably disable said rules for CSS files in your situation. Like you treat a false positive, actually. |
These are the limits:
I don't think that increasing the limits is the solution here, though. If i look at the regex they all have something like Can replacing the The problem does not only occur for CSS files, but also for HTML results from PHP scripts, which use these |
I tried a Edit: After more testing it turns out, that the problem is still reproducable with that change, but it needs more lorem ipsum to trigger it. I now tried to change the Regex from |
Describe the bug
When the word "Warning" is used in a response in any way (e.g. as part of bootstraps CSS class
text-warning
) and there is more content on the page this results in PCRE limits beeing exceeded.Steps to reproduce
Have a simple file with the Word "Warning" at the beginning and 200 words of lorem ipsum after that.
Expected behaviour
PCRE limits not being exceeded by such a common word.
Actual behaviour
PCRE limits are exceeded by multiple of the rules that are defined in
RESPONSE-951-DATA-LEAKAGES-SQL.conf
Additional context
Your Environment
The text was updated successfully, but these errors were encountered: