Handling key exceptions on the variable itself

This is the first step towords to solve #1697
This commit is contained in:
Felipe Zimmerle
2018-09-20 09:08:08 -03:00
parent 0d53111cb0
commit ee50fea266
54 changed files with 2337 additions and 2080 deletions

View File

@@ -48,12 +48,13 @@
},
"expected":{
"audit_log":"",
"debug_log":"Variable: REQUEST_HEADERS:Accept is part of the exclusion list, skipping...",
"error_log":""
"debug_log":"",
"error_log":"",
"http_code":200
},
"rules":[
"SecRuleEngine On",
"SecRule REQUEST_HEADERS|!REQUEST_HEADERS:Accept|!REMOTE_HOST \"@contains test \" \"id:1,t:lowercase,t:none\""
"SecRule REQUEST_HEADERS|!REQUEST_HEADERS:Accept|!REMOTE_HOST \"@contains html\" \"id:1,t:lowercase,t:none,block,deny,status:300\""
]
},
{
@@ -105,12 +106,13 @@
},
"expected":{
"audit_log":"",
"debug_log":"Variable: REQUEST_HEADERS:Accept-Encoding is part of the exclusion list, skipping...",
"error_log":""
"debug_log":"",
"error_log":"",
"http_code": 200
},
"rules":[
"SecRuleEngine On",
"SecRule REQUEST_HEADERS|!REQUEST_HEADERS \"@contains test \" \"id:1,t:lowercase,t:none\""
"SecRule REQUEST_HEADERS|!REQUEST_HEADERS \"@contains html\" \"id:1,t:lowercase,t:none,block,deny,status:300\""
]
}
]