Open MrWako opened 7 months ago
Hey, thanks for the report. It definitely deserves some more time to look at it.
Most likely it comes into play the fact that allow
action is part of the disruptive actions, therefore also that action is not performed running in DetectionOnly
mode.
At first sight, I don't fully get the example: the DELETE method does not seem to be part of the allowed_methods, so I would expect to have 911100
logged in both Deny and Detect Mode 🤔
Ping @fzipi as I helped him to implement allow action.
Is there any reason not to set the ActionType
of allow
to ActionTypeFlow
? Alternatively, one could create a special exception for the allow
action in doEvaluate
here. To the OP's comments, there is a lot of noise generated during detection-only testing that makes it hard to identify what rules may still need allowed exceptions before bringing the WAF into blocking mode.
Description
In Deny mode the WAF seems to correctly handle the
allow
action, and after triggering anallow
rule other rules in the same and subsequent phases are ignored and not triggered. In contrast inDetectionOnly
mode if the sameallow
rule is triggered the WAF seems to continue and evaluate subsequent rules. Whilst this doesn't block the request it does generate critical log messages which makes it hard to tune the WAF and be confident that it is correctly configured, before switching to Deny mode.I guess it might be expected behaviour, although as mentioned it makes switching between DetectionOnly and Deny mode challenging.
Steps to reproduce
Expected result
No logs generated for either Deny or Detect.
Actual result
output from the test