mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Check if response body inspection is enabled before process it
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
},
|
||||
"rules": [
|
||||
"SecRuleEngine On",
|
||||
"SecResponseBodyAccess On",
|
||||
"SecRule ARGS \"@contains test\" \"id:1,t:trim,deny\""
|
||||
]
|
||||
},
|
||||
@@ -352,6 +353,7 @@
|
||||
},
|
||||
"rules": [
|
||||
"SecRuleEngine On",
|
||||
"SecResponseBodyAccess On",
|
||||
"SecRule ARGS \"@contains test\" \"id:1,phase:4,t:trim,status:500,deny\""
|
||||
]
|
||||
}
|
||||
|
@@ -77,6 +77,7 @@
|
||||
"SecRuleEngine On",
|
||||
"SecRule ARGS:key \"@contains other_value\" \"chain,pass,phase:response,id:28\"",
|
||||
"SecRule MATCHED_VAR \"@contains Aasdf\" \"\"",
|
||||
"SecResponseBodyAccess On",
|
||||
"SecRule MATCHED_VAR \"@contains other_value\" \"id:29,phase:response,pass\"",
|
||||
"SecRule MATCHED_VAR \"@contains other_value\" \"id:30,phase:response,pass\""
|
||||
]
|
||||
|
@@ -35,6 +35,7 @@
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecResponseBodyAccess On",
|
||||
"SecResponseBodyMimeType text\/plain text\/html text\/xml",
|
||||
"SecRule RESPONSE_BODY \"@contains RESPONSE_CONTENT_TYPE\" \"id:9,pass,t:trim,phase:4\""
|
||||
]
|
||||
@@ -75,6 +76,7 @@
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecResponseBodyAccess On",
|
||||
"SecResponseBodyMimeType application\/something",
|
||||
"SecRule RESPONSE_BODY \"@contains RESPONSE_CONTENT_TYPE\" \"id:9,pass,t:trim,phase:4\""
|
||||
]
|
||||
@@ -115,6 +117,7 @@
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecResponseBodyAccess On",
|
||||
"SecResponseBodyMimeType text\/plain text\/tml text\/xml",
|
||||
"SecResponseBodyMimeTypesClear",
|
||||
"SecRule RESPONSE_BODY \"@contains RESPONSE_CONTENT_TYPE\" \"id:9,pass,t:trim,phase:4\""
|
||||
|
@@ -35,6 +35,7 @@
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecResponseBodyAccess On",
|
||||
"SecRule OUTBOUND_DATA_ERROR \"@eq 1\" \"id:1,phase:4,pass,t:trim\""
|
||||
]
|
||||
},
|
||||
@@ -108,6 +109,7 @@
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecResponseBodyAccess On",
|
||||
"SecResponseBodyLimit 2",
|
||||
"SecRule OUTBOUND_DATA_ERROR \"@eq 1\" \"id:1,phase:4,pass,t:trim\""
|
||||
]
|
||||
|
@@ -28,6 +28,7 @@
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecResponseBodyAccess On",
|
||||
"SecRule RESPONSE_BODY \"@contains denystring\" \"id:1,phase:4,deny\""
|
||||
]
|
||||
}
|
||||
|
@@ -36,6 +36,7 @@
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecResponseBodyAccess On",
|
||||
"SecRule RESPONSE_CONTENT_LENGTH \"@contains test \" \"id:1,phase:4,pass,t:trim\""
|
||||
]
|
||||
}
|
||||
|
@@ -37,6 +37,7 @@
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecResponseBodyAccess On",
|
||||
"SecRequestBodyAccess On",
|
||||
"SecRule RESPONSE_BODY \"@rx ([0-9]+)\" \"id:1,phase:4,capture,id:105\"",
|
||||
"SecRule TX \"@rx ([A-z]+)\" \"phase:4,id:106\""
|
||||
|
Reference in New Issue
Block a user