-
Notifications
You must be signed in to change notification settings - Fork 727
Rules matched at REQUEST_BODY instead of ARGS #1518
Comments
This issue has been open 120 days with no activity. Remove the stale label or comment, or this will be closed in 14 days |
We are still having problems with this (maybe also with other rules). |
Hi @azurit could you please provide the full blocked request log here too? Anyway, If your request is blocked by both rules because of something inside ARGS:redirect, a possible solution could be to remove ARGS:redirect evaluation from 930100 and 930110. |
I don't have that log anymore (but it's quite common issue, maybe i will get another one soon). The problem which i see here is when i write a rule to exclude, for example, ARGS:redirect, the modsecurity is, sometimes (NOT always of course), matching the SAME problem second time for, this time for whole REQUEST_BODY. TO bypass this, i need to exclude whole REQUEST_BODY, which means that i'm excluding also other arguments (which i don't want, i may need to keep other arguments secured). I don't know how to explain this problem better. It's like, in regexp, using .* instead of .*? ('smallest' match). |
Oh okay, I got it now. It should be solved replacing REQUEST_BODY with ARGS so you can write your exclusion rule. Is it? |
No, as i said, i alredy have exclusion rule for ARGS but modsecurity is triggering the same thing again but this time on REQUEST_BODY (so i'm forced to rewrite the rule to exclude whole REQUEST_BODY). |
Yes, I mean we should replace REQUEST_BODY in both rules (930100 and 930110) with ARGS. |
I'm sure I do. I remember receiving it. But I can't seem to find it anymore. Who was the sender @azurit? The email address, I mean, so I have a keyword to search my archive. |
@dune73 I sent you another e-mail with list of address (don't remember which one i used). Thank you. |
@dune73 thanks. I had a quick look and I think what @theMiddleBlue wrote makes sense. We should replace REQUEST_BODY with ARGS so a rule to exclude specific arguments can be written. |
@theMiddleBlue Do you want to open a PR or should I take a look? |
Sure! Thanks. I'll open a PR |
should be fixed by #1659 |
Hey! Sorry for arriving late to the party but this change introduced many false positives to the rule. We had already forked the rule to run on ARGS at a lower confidence level but with this change, the main rule become dangerous. |
@Taiki-San Hi, how this change could introduced new FPs? Before, it was matching the whole REQUEST_BODY (including ARGS) and now it is matching only ARGS. |
Ok, i see. In this case, it should be set to ARGS_POST instead of ARGS to keep backward compatibility. |
Type of Issue
Bug
Description
Rules 930100 and 930110 are getting matched at whole REQUEST_BODY instead of ARGS:redirect . I sent the full log to folini@netnea.com.
Your Environment
Confirmation
[x] I have removed any personal data (email addresses, IP addresses,
passwords, domain names) from any logs posted.
The text was updated successfully, but these errors were encountered: