Replies: 3 comments 3 replies
-
Have you tried adding the exclusion to REQUEST_HEADERS.Cookie too? Cookies are contained in two variables |
Beta Was this translation helpful? Give feedback.
-
Hello, After some tests it looks like there is indeed a bug with that blank space before the cookie. The app is sometimes sending cookies with a space or something before, and crs rules don't seem to be able to match this. I'll get in touch with the devs and see if we can fix that. In the meatime I tried these rules to remove cookies from all rules :
but I still have matches for some reason, I really don't get why. Do I have a solution to remove cookies from scanning entirely ? |
Beta Was this translation helpful? Give feedback.
-
If anyone spawns here for answer, initial bug fixed by #942 , didn't find a way to remove cookies entirely because it looks like coraza does not support removing an entire col for now |
Beta Was this translation helpful? Give feedback.
-
Hello there,
I've been strugling with a very basic rule exclusion and ended up posting here in despair.
I want to exclude a session cookie from every rules, this is an example of what I don't want to trigger (line truncated) :
This was my first unsuccessful try :
After reading some code I found out that ruleRemoveTargetByTag is wrapped arround ruleRemoveTargetById, so I tried this :
which didn't work either, I tried without a space, I tried to escape the space, I tried regex, I even tried to remove REQUEST_COOKIES entirely, I tried phase 1, phase 2, but the line still shows and I'm out of ideas.
I'm doing my tests with a random cookie containing the string "SMTP" to trigger the rule 933120.
I have another equivalent rule for a csrf token that works perfectly :
Am I missing something on rule 1001 ?
Thanks in advance for the help 🙏
Beta Was this translation helpful? Give feedback.
All reactions