@@ -102,23 +102,22 @@ FL %{MULTIPART_FILE_LIMIT_EXCEEDED}'"
102
102
# is wrong, then parser returns with value 1 (also a non-zero).
103
103
#
104
104
# You can choose, which one is what you need. The example below contains the
105
- # 'strict' mode, which means if there are any lines with start of "--", then
106
- # ModSecurity blocked the content . But the next, commented example contains
105
+ # 'strict' logging mode, which means if there are any lines with start of "--", then
106
+ # ModSecurity warns about the request . But the next, example contains
107
107
# the 'permissive' mode, then you check only if the necessary lines exists in
108
108
# correct order. Whit this, you can enable to upload PEM files (eg "----BEGIN.."),
109
109
# or other text files, which contains eg. HTTP headers.
110
110
#
111
- # The difference is only the operator - in strict mode (first) the content blocked
111
+ # The difference is only the operator - in strict mode (first) the content logs
112
112
# in case of any non-zero value. In permissive mode (second, commented) the
113
113
# content blocked only if the value is explicit 1. If it 0 or 2, the content will
114
114
# allowed.
115
115
#
116
116
117
117
SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
118
- "id:'200004',phase:2,t:none,log,deny,msg:'Multipart parser detected a possible unmatched boundary.'"
119
- #SecRule MULTIPART_UNMATCHED_BOUNDARY "@eq 1" \
120
- #"id:'200004',phase:2,t:none,log,deny,msg:'Multipart parser detected a possible unmatched boundary.'"
121
-
118
+ "id:'200004',phase:2,t:none,log,pass,msg:'Multipart parser detected a possible unmatched boundary.'"
119
+ SecRule MULTIPART_UNMATCHED_BOUNDARY "@eq 1" \
120
+ "id:'200006',phase:2,t:none,log,deny,msg:'Multipart parser detected a possible unmatched boundary.'"
122
121
123
122
# PCRE Tuning
124
123
# We want to avoid a potential RegEx DoS condition
0 commit comments