Hi everyone,
Hope someone can help me. I'm writing some exclusion rules due to false positive detections and I would like to write a rule based on a URI and ARGS. The problem in this case is that the ARGS are very dynamic. The ARGS in this case looks something like: ARGS:something_here[14384][10a421907e5441c07d9b8e8ad84373cc]. The parts between both sets of brackets change or have a lot of variants.
The initial rule that I wrote was:
SecRule REQUEST_URI "@contains /someuri/" "id:1001,phase:2,nolog,pass,\
ctl:ruleRemoveTargetById=932100;ARGS:/^something_here/"
I then discovered that ctl:ruleRemoveTargetById does not support regex. Is the only other option then to write the rule as follows?
SecRuleUpdateTargetById 932100 "!ARGS:/something_here.*/"
Is there a way to link the URI to the rule in order to limit the scope of the rule further?
Thanks!
Stephan