mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
74 lines
1.8 KiB
JSON
74 lines
1.8 KiB
JSON
[
|
|
{
|
|
"enabled":1,
|
|
"version_min":300000,
|
|
"title":"Testing Disruptive actions (1/n)",
|
|
"expected":{
|
|
"debug_log": " Running action: deny",
|
|
"http_code":403
|
|
},
|
|
"rules":[
|
|
"SecRuleEngine On",
|
|
"SecDebugLog \/tmp\/modsec_debug.log",
|
|
"SecDefaultAction \"phase:2,deny,status:404\"",
|
|
"SecAction \"id:'900001',phase:request,nolog,status:403,t:none\""
|
|
]
|
|
},
|
|
{
|
|
"enabled":1,
|
|
"version_min":300000,
|
|
"title":"Testing Disruptive actions (2/n)",
|
|
"expected":{
|
|
"debug_log": " Running action: deny",
|
|
"http_code":404
|
|
},
|
|
"rules":[
|
|
"SecRuleEngine On",
|
|
"SecDebugLog \/tmp\/modsec_debug.log",
|
|
"SecDefaultAction \"phase:2,deny,status:404\"",
|
|
"SecAction \"'id:'1',phase:request,nolog,t:none\""
|
|
]
|
|
},
|
|
{
|
|
"enabled":1,
|
|
"version_min":300000,
|
|
"title":"Testing Disruptive actions (3/n)",
|
|
"expected":{
|
|
"debug_log": " Running action: deny",
|
|
"http_code":404
|
|
},
|
|
"rules":[
|
|
"SecRuleEngine On",
|
|
"SecDebugLog \/tmp\/modsec_debug.log",
|
|
"SecDefaultAction \"phase:2,deny,status:404\"",
|
|
"SecAction \"id:'1',phase:request,nolog,block,t:none\""
|
|
]
|
|
},
|
|
{
|
|
"enabled":1,
|
|
"version_min":300000,
|
|
"title":"Testing Disruptive actions (4/n)",
|
|
"expected":{
|
|
"http_code":200
|
|
},
|
|
"rules":[
|
|
"SecRuleEngine On",
|
|
"SecDebugLog \/tmp\/modsec_debug.log",
|
|
"SecAction \"id:'1',phase:request,nolog,t:none\""
|
|
]
|
|
},
|
|
{
|
|
"enabled":1,
|
|
"version_min":300000,
|
|
"title":"Testing Disruptive actions (5/n)",
|
|
"expected":{
|
|
"http_code":200
|
|
},
|
|
"rules":[
|
|
"SecRuleEngine On",
|
|
"SecDebugLog \/tmp\/modsec_debug.log",
|
|
"SecDefaultAction \"phase:2,deny,status:404\"",
|
|
"SecAction \"id:'1',phase:request,nolog,pass,t:none\""
|
|
]
|
|
}
|
|
] |