-
Notifications
You must be signed in to change notification settings - Fork 728
Conversation
- Remove duplicate `\` from character group - Resolve intersecting alternate patterns
what about the extra couple |
@spartantri That really depends on what you want to match.
On the other hand, |
yes don't worry, I left it as open question so all other guys can look at it, to me |
Have you actually reproduced this issue with modsecurity? |
Also the regexp is generated from the file mentioned in the comment. |
@fgsch The vulnerability exists in the rule, not mod_security. mod_security won't spend more than |
@s0md3v Yup, I appreciate that. We should try to fix the patterns, but my point is that we should distinguish between "this is actually exploitable" from "this should be fixed but won't be exploitable because there are mitigations in place". |
@fgsch I am sorry if I am wrong but isn't this rule set being used by other WAFs then mod_security? |
@s0md3v That's fair, and I agree we should fix it. |
Well I just made an assumption after reading this in the README
Anyways, let me know if you have any concern about the patches. Also, thanks for contributing such great stuff to the open source community, stay hydrated ❤️ |
These changes do not affect the functionality of Mod Security, why these pull requests haven't merged yet? |
@s0md3v as I said earlier:
Also please be patient. This is a volunteer driven project and people might be (and often is) busy. |
@s0md3v im pretty sure that it will be merged after the next monthly monday meeting. the next is at 6. mai i think. you can be definetly sure that if the tests are positive and the project members agree that we will merge it before the final v3.2 release. feel free to join us at the meeting |
Note, that the double \ is justifiable (in normal case). In version 2 (aka mod_security v2) the rules read by Apache, which strips the strings (I think this routine does it). That's why it would be better to check the rules through ModSecurity, not with the regex browser. If the admin merges this request, the affected rule will not work (in v2 - but will right in v3) - hope the regression text will catch it. |
@airween , i'm a bit lost as to the regression you are discussing, can you give an example? |
Sure :). |
Tests are failing:
|
@fgsch I didn't touch |
It is reporting line 936 because that's where the rule ends, but the error is caused by this change. |
Thank you for the PR @s0md3v. Unfortunately, it is not ready for merging (tests failing and regex sources need to be updated), so we are retiring the PR and transfer the information into issue #1479. There is little pressure, as this is not exploitable via ModSecurity, so we can take the time to get this right. |
\
from character groupFixes #1359 .