Open dune73 opened 1 week ago
@dune73 can you generate a debug log (preferably in v2), I cannot reproduce the problem
Is sent it to you via DM.
I hope the problem is not on my client side. I did check the traffic with tcpdump.
In the log, I see
Adding request argument (BODY): name "test", value "\x06/.."
The raw body received by ModSecurity indeed contains /.. Can you send the body from tcpdump?
Describe the bug
Both ModSecurity 2, ModSecurity 3 as well as Coraza are translating U+062F and U+D8AF to slash leading to a false positive with the CRS path traversal rule 930110.
Link to Coraza issue: https://github.com/corazawaf/coraza/issues/1193
Logs and dumps
Notice how ModSec2 triggers the rule twice.
ModSec 2 error log:
Expected behavior
No false positive Rule Set (please complete the following information): CRS4
Additional context
This may have to do with the code table, or in the case of U+D8AF translating the 2nd part of the unicode char to slash, but not sure.