Closed
Description
Hi all,
we're trying to define few rules in order to start handling XXE payloads. The problem (as you can see here SpiderLabs/owasp-modsecurity-crs#1320 (comment)) is that when the request comes with a Content-Type that match the rule 200000
, and the body processor is set to XML, we can't access the REQUEST_BODY and we can't also copy it elsewhere (something like setvar:tx.reqbody=%{REQUEST_BODY}
).
We need it in order to match something like:
SecRule REQUEST_BODY "@rx <!ENTITY\s+[^\s]+\s+(?!:SYSTEM|PUBLIC)"
Do you have any idea about how to get the REQUEST_BODY
content somewhere when XML Processor is active?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels