mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Add test case for SecUnicodeMap
This commit is contained in:
parent
065c2e67b6
commit
84ece3edcb
1
test/test-cases/data/unicode.mapping-reduced
Normal file
1
test/test-cases/data/unicode.mapping-reduced
Normal file
@ -0,0 +1 @@
|
||||
1251 0434:64 043e:6f 0440:70
|
@ -40,5 +40,27 @@
|
||||
"SecRuleEngine On",
|
||||
"SecUnicodeMapFile does-not-exist-unicode.mapping eita"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"enabled":1,
|
||||
"version_min":209000,
|
||||
"version_max":-1,
|
||||
"title":"Test SecUnicodeMapFile: ... 4/n",
|
||||
"url":"https:\/\/github.com\/SpiderLabs\/ModSecurity\/issues\/1941",
|
||||
"request":{
|
||||
"uri":"/?param=дор",
|
||||
"headers":"",
|
||||
"body":"",
|
||||
"method":"GET",
|
||||
"http_version":1.1
|
||||
},
|
||||
"expected":{
|
||||
"debug_log": "Target value: \"dop\""
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecUnicodeMapFile test-cases/data/unicode.mapping-reduced 1251",
|
||||
"SecRule ARGS \"@contains dop\" \"phase:1,id:999,deny,log,auditlog,t:none,t:utf8toUnicode,t:urlDecodeUni,multiMatch\""
|
||||
]
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user