mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Changed compared variables of range id intervall in ruleRemoveById ctl action. #2111
* changed the variables in clause * added test case (@theMiddle) * fixes #2111
This commit is contained in:
committed by
Felipe Zimmerle
parent
9ebebfc838
commit
c0142cf326
33
test/test-cases/regression/issue-2111.json
Normal file
33
test/test-cases/regression/issue-2111.json
Normal file
@@ -0,0 +1,33 @@
|
||||
[
|
||||
{
|
||||
"enabled":1,
|
||||
"version_min":300000,
|
||||
"title":"Testing ctl:ruleRemoveById with range - issue 1444",
|
||||
"expected":{
|
||||
"http_code":200
|
||||
},
|
||||
"client":{
|
||||
"ip":"127.0.0.1",
|
||||
"port":123
|
||||
},
|
||||
"request":{
|
||||
"headers":{
|
||||
"Host":"localhost",
|
||||
"User-Agent":"curl/7.38.0",
|
||||
"Accept":"*/*"
|
||||
},
|
||||
"uri":"index.php?foo=bar&z=xxx",
|
||||
"method":"GET",
|
||||
"body": ""
|
||||
},
|
||||
"server":{
|
||||
"ip":"127.0.0.1",
|
||||
"port":80
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecRule ARGS:foo \"@rx ^bar$\" \"id:100,phase:1,ctl:ruleRemoveById=200-1999\"",
|
||||
"SecRule ARGS:z \"@rx ^xxx$\" \"id:1010,phase:1,deny,status:403\""
|
||||
]
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user