Changes the timing to save the rule message

This commit is contained in:
Felipe Zimmerle
2018-10-17 22:46:48 -03:00
parent 8088d6af71
commit 69cd61439d
4 changed files with 33 additions and 5 deletions

View File

@@ -32,7 +32,7 @@
"rules": [
"SecRuleEngine On",
"SecAction \"id:1, nolog, setvar:tx.bad_value=attack\"",
"SecRule ARGS:param \"@rx ^%{tx.bad_value}$\" id:2"
"SecRule ARGS:param \"@rx ^%{tx.bad_value}$\" \"id:2,block\""
]
}
]

View File

@@ -314,7 +314,7 @@
]
},
"expected":{
"error_log":"o0,6v17,6t:trimo0,6v149,6t:trim"
"error_log":"o0,6v17,6t:trim"
},
"rules":[
"SecRequestBodyAccess On",

View File

@@ -83,7 +83,7 @@
},
"rules":[
"SecRuleEngine On",
"SecRule REQUEST_HEADERS:Content-Length \"!^0$\" \"id:1,phase:2,pass,t:trim\""
"SecRule REQUEST_HEADERS:Content-Length \"!^0$\" \"id:1,phase:2,pass,t:trim,block\""
]
}
]