Refactoring on Action - having RuleWithAction and RuleWithActionsProperties

This commit is contained in:
Felipe Zimmerle
2020-09-23 13:48:15 -03:00
committed by Felipe Zimmerle
parent 1f80055f63
commit 5b204642ab
44 changed files with 2172 additions and 1533 deletions

View File

@@ -27,12 +27,13 @@
},
"expected": {
"debug_log": "Rule returned 1",
"error_log": "Matched \"Operator `Rx' with parameter `\\^attack\\$'"
"error_log": "Matched \"Operator `Rx' with parameter `\\^attack\\$'",
"http_code": 403
},
"rules": [
"SecRuleEngine On",
"SecAction \"id:1, setvar:tx.bad_value=attack\"",
"SecRule ARGS:param \"@rx ^%{tx.bad_value}$\" \"id:2,log\""
"SecRule ARGS:param \"@rx ^%{tx.bad_value}$\" \"id:2,log,deny\""
]
}
]