Fix some improperly formatted test cases

This commit is contained in:
Felipe Zimmerle 2016-06-14 14:47:26 -03:00
parent 8cdb138076
commit 1e6b40ebea
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
4 changed files with 378 additions and 439 deletions

View File

@ -95,7 +95,7 @@ if test $color_tests = yes; then
wht='' # White. wht='' # White.
std='' # No color. std='' # No color.
else else
red= grn= lgn= blu= mgn= std= red= grn= lgn= blu= mgn= std= wht=
fi fi
do_exit='rm -f $log_file $trs_file; (exit $st); exit $st' do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'

View File

@ -40,7 +40,7 @@
"version_min":300000, "version_min":300000,
"title":"Testing XML request body parser (validate ok)", "title":"Testing XML request body parser (validate ok)",
"expected":{ "expected":{
"debug_log": "Target value: \"39.95\" \(Variable: XML:\/bookstore\/book\/price\[text\(\)\]\)" "debug_log": "Target value: \"39.95\" \\(Variable: XML:\/bookstore\/book\/price\\[text\\(\\)\\]\\)"
}, },
"client":{ "client":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
@ -104,4 +104,4 @@
"SecRule XML:/bookstore/book/price[text()] \"Fred\" \"phase:3,id:123,xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'\"" "SecRule XML:/bookstore/book/price[text()] \"Fred\" \"phase:3,id:123,xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'\""
] ]
} }
] ]

View File

@ -1,67 +1,67 @@
[ [
{ {
"enabled":1, "enabled":1,
"version_min":300000, "version_min":300000,
"title":"multipart parser (final CRLF)", "title":"multipart parser (final CRLF)",
"client":{ "client":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":123 "port":123
}, },
"server":{ "server":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":80 "port":80
}, },
"request":{ "request":{
"headers":{ "headers":{
"Host":"localhost", "Host":"localhost",
"User-Agent":"curl/7.38.0", "User-Agent":"curl/7.38.0",
"Accept":"*/*", "Accept":"*/*",
"Content-Length":"330", "Content-Length":"330",
"Content-Type":"multipart/form-data; boundary=---------------------------69343412719991675451336310646", "Content-Type":"multipart/form-data; boundary=---------------------------69343412719991675451336310646",
"Expect":"100-continue" "Expect":"100-continue"
}, },
"uri":"/", "uri":"/",
"method":"POST", "method":"POST",
"body":[ "body":[
"-----------------------------69343412719991675451336310646", "-----------------------------69343412719991675451336310646",
"Content-Disposition: form-data; name=\"a\"\r", "Content-Disposition: form-data; name=\"a\"\r",
"\r", "\r",
"1\r", "1\r",
"1.1\r", "1.1\r",
"1.2\r", "1.2\r",
"1.3\r", "1.3\r",
"-----------------------------69343412719991675451336310646", "-----------------------------69343412719991675451336310646",
"Content-Disposition: form-data; name=\"b\"\r", "Content-Disposition: form-data; name=\"b\"\r",
"\r", "\r",
"2\r", "2\r",
"2.1\r", "2.1\r",
"2.2\r", "2.2\r",
"2.3\r", "2.3\r",
"-----------------------------69343412719991675451336310646--" "-----------------------------69343412719991675451336310646--"
] ]
}, },
"response":{ "response":{
"headers":{ "headers":{
"Date":"Mon, 13 Jul 2015 20:02:41 GMT", "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
"Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
"Content-Type":"text/html" "Content-Type":"text/html"
}, },
"body":[ "body":[
"no need." "no need."
] ]
}, },
"expected":{ "expected":{
"debug_log":"Target value: \"Adding request argument (BODY): name \"b\", value \"22\.12\.22\.3\"" "debug_log":"Adding request argument \\(BODY\\): name \"b\", value \"22.12.22.3\"",
}, "http_code":403
"rules":[ },
"SecRuleEngine On", "rules":[
"SecRequestBodyAccess On", "SecRuleEngine On",
"SecRule MULTIPART_STRICT_ERROR \"@eq 1\" \"phase:2,deny,id:500055\"", "SecRequestBodyAccess On",
"SecRule MULTIPART_UNMATCHED_BOUNDARY \"@eq 1\" \"phase:2,deny,id:500056\"", "SecRule MULTIPART_STRICT_ERROR \"@eq 1\" \"phase:2,deny,id:500055\"",
"SecRule REQBODY_PROCESSOR_ERROR \"@eq 1\" \"phase:2,deny,id:500057\"", "SecRule MULTIPART_UNMATCHED_BOUNDARY \"@eq 1\" \"phase:2,deny,id:500056\"",
"SecRule ARGS_POST \"@eq 1231\" \"phase:2,deny,id:500067\"" "SecRule REQBODY_PROCESSOR_ERROR \"@eq 1\" \"phase:2,deny,id:500057\"",
] "SecRule ARGS_POST \"@eq 1231\" \"phase:2,deny,id:500067\""
} ]
] }
]

View File

@ -1,369 +1,308 @@
[ [
{ {
"enabled":1, "enabled":1,
"version_min":300000, "version_min":300000,
"title":"Testing Variables :: MULTIPART_STRICT_ERROR", "title":"Testing Variables :: MULTIPART_STRICT_ERROR",
"client":{ "client":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":123 "port":123
}, },
"server":{ "server":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":80 "port":80
}, },
"request":{ "request":{
"headers":{ "headers":{
"Host":"localhost", "Host":"localhost",
"User-Agent":"curl/7.38.0", "User-Agent":"curl/7.38.0",
"Accept":"*/*", "Accept":"*/*",
"Content-Length":"330", "Content-Length":"330",
"Content-Type":"multipart/form-data; boundary= --------------------------756b6d74fa1a8ee2", "Content-Type":"multipart/form-data; boundary= --------------------------756b6d74fa1a8ee2",
"Expect":"100-continue" "Expect":"100-continue"
}, },
"uri":"/", "uri":"/",
"method":"POST", "method":"POST",
"body":[ "body":[
"--------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"name\"", "Content-Disposition: form-data; name=\"name\"",
"", "",
"test", "test",
"--------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", "Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"",
"Content-Type: text/plain", "Content-Type: text/plain",
"", "",
"This is a very small test file..", "This is a very small test file..",
"--------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", "Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"",
"Content-Type: text/plain", "Content-Type: text/plain",
"", "",
"This is another very small test file..", "This is another very small test file..",
"--------------------------756b6d74fa1a8ee2--" "--------------------------756b6d74fa1a8ee2--"
] ]
}, },
"response":{ "response":{
"headers":{ "headers":{
"Date":"Mon, 13 Jul 2015 20:02:41 GMT", "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
"Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
"Content-Type":"text/html" "Content-Type":"text/html"
}, },
"body":[ "body":[
"no need." "no need."
] ]
}, },
"expected":{ "expected":{
"debug_log":"Multipart: Boundary starts with white space, setting MULTIPART_STRICT_ERROR to 1" "debug_log":"Multipart: Warning: boundary whitespace in C-T header"
}, },
"rules":[ "rules":[
"SecRuleEngine On", "SecRuleEngine On",
"SecDebugLog \/tmp\/modsec_debug.log", "SecDebugLog \/tmp\/modsec_debug.log",
"SecDebugLogLevel 9", "SecDebugLogLevel 9",
"SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" "SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\""
] ]
}, },
{ {
"enabled":1, "enabled":1,
"version_min":300000, "version_min":300000,
"title":"Testing Variables :: MULTIPART_STRICT_ERROR", "title":"Testing Variables :: MULTIPART_STRICT_ERROR",
"client":{ "client":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":123 "port":123
}, },
"server":{ "server":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":80 "port":80
}, },
"request":{ "request":{
"headers":{ "headers":{
"Host":"localhost", "Host":"localhost",
"User-Agent":"curl/7.38.0", "User-Agent":"curl/7.38.0",
"Accept":"*/*", "Accept":"*/*",
"Content-Length":"330", "Content-Length":"330",
"Content-Type":"multipart/form-data; boundary=\"--------------------------756b6d74fa1a8ee2\"", "Content-Type":"multipart/form-data; boundary=\"--------------------------756b6d74fa1a8ee2\"",
"Expect":"100-continue" "Expect":"100-continue"
}, },
"uri":"/", "uri":"/",
"method":"POST", "method":"POST",
"body":[ "body":[
"--------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"name\"", "Content-Disposition: form-data; name=\"name\"",
"", "",
"test", "test",
"--------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", "Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"",
"Content-Type: text/plain", "Content-Type: text/plain",
"", "",
"This is a very small test file..", "This is a very small test file..",
"--------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", "Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"",
"Content-Type: text/plain", "Content-Type: text/plain",
"", "",
"This is another very small test file..", "This is another very small test file..",
"--------------------------756b6d74fa1a8ee2--" "--------------------------756b6d74fa1a8ee2--"
] ]
}, },
"response":{ "response":{
"headers":{ "headers":{
"Date":"Mon, 13 Jul 2015 20:02:41 GMT", "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
"Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
"Content-Type":"text/html" "Content-Type":"text/html"
}, },
"body":[ "body":[
"no need." "no need."
] ]
}, },
"expected":{ "expected":{
"debug_log":"Multipart: Boundary is quoted, setting MULTIPART_STRICT_ERROR to 1" "debug_log":"Multipart: Warning: boundary was quoted."
}, },
"rules":[ "rules":[
"SecRuleEngine On", "SecRuleEngine On",
"SecDebugLog \/tmp\/modsec_debug.log", "SecDebugLog \/tmp\/modsec_debug.log",
"SecDebugLogLevel 9", "SecDebugLogLevel 9",
"SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" "SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\""
] ]
}, },
{ {
"enabled":1, "enabled":1,
"version_min":300000, "version_min":300000,
"title":"Testing Variables :: MULTIPART_STRICT_ERROR", "title":"Testing Variables :: MULTIPART_STRICT_ERROR",
"client":{ "client":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":123 "port":123
}, },
"server":{ "server":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":80 "port":80
}, },
"request":{ "request":{
"headers":{ "headers":{
"Host":"localhost", "Host":"localhost",
"User-Agent":"curl/7.38.0", "User-Agent":"curl/7.38.0",
"Accept":"*/*", "Accept":"*/*",
"Content-Length":"330", "Content-Length":"330",
"Content-Type":"multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2", "Content-Type":"multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2",
"Expect":"100-continue" "Expect":"100-continue"
}, },
"uri":"/", "uri":"/",
"method":"POST", "method":"POST",
"body":[ "body":[
"--------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"name\"", "Content-Disposition: form-data; name=\"name\"",
"", "",
"test", "test",
"--------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", "Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"",
"Content-Type: text/plain", "Content-Type: text/plain",
"", "",
"This is a very small test file..", "This is a very small test file..",
"--------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", "Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"",
"Content-Type: text/plain", "Content-Type: text/plain",
"", "",
"This is another very small test file..", "This is another very small test file..",
"--------------------------756b6d74fa1a8ee2--whee." "--------------------------756b6d74fa1a8ee2--whee."
] ]
}, },
"response":{ "response":{
"headers":{ "headers":{
"Date":"Mon, 13 Jul 2015 20:02:41 GMT", "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
"Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
"Content-Type":"text/html" "Content-Type":"text/html"
}, },
"body":[ "body":[
"no need." "no need."
] ]
}, },
"expected":{ "expected":{
"debug_log":"Multipart: There is data after the boundary, setting MULTIPART_STRICT_ERROR to 1" "debug_log":"Multipart: Warning: seen data before first boundary"
}, },
"rules":[ "rules":[
"SecRuleEngine On", "SecRuleEngine On",
"SecDebugLog \/tmp\/modsec_debug.log", "SecDebugLog \/tmp\/modsec_debug.log",
"SecDebugLogLevel 9", "SecDebugLogLevel 9",
"SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" "SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\""
] ]
}, },
{ {
"enabled":1, "enabled":1,
"version_min":300000, "version_min":300000,
"title":"Testing Variables :: MULTIPART_STRICT_ERROR", "title":"Testing Variables :: MULTIPART_STRICT_ERROR",
"client":{ "client":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":123 "port":123
}, },
"server":{ "server":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":80 "port":80
}, },
"request":{ "request":{
"headers":{ "headers":{
"Host":"localhost", "Host":"localhost",
"User-Agent":"curl/7.38.0", "User-Agent":"curl/7.38.0",
"Accept":"*/*", "Accept":"*/*",
"Content-Length":"330", "Content-Length":"330",
"Content-Type":"multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2", "Content-Type":"multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2",
"Expect":"100-continue" "Expect":"100-continue"
}, },
"uri":"/", "uri":"/",
"method":"POST", "method":"POST",
"body":[ "body":[
"--------------------------756b6d74fa1a8ee2", "----------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"name\"", "Content-Disposition: form-data; name=\"name\"",
"", "",
"test", "test",
"--------------------------756b6d74fa1a8ee2", "----------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", "Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"",
"Content-Type: text/plain", "Content-Type: text/plain",
"", "",
"This is a very small test file..", "This is a very small test file..",
"--------------------------756b6d74fa1a8ee2", "----------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", "Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"",
"Content-Type: text/plain", "Content-Type: text/plain",
"", "",
"This is another very small test file..", "This is another very small test file..",
"--------------------------756b6d74fa1a8ee2--" "----------------------------756b6d74fa1a8ee2--"
] ]
}, },
"response":{ "response":{
"headers":{ "headers":{
"Date":"Mon, 13 Jul 2015 20:02:41 GMT", "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
"Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
"Content-Type":"text/html" "Content-Type":"text/html"
}, },
"body":[ "body":[
"no need." "no need."
] ]
}, },
"expected":{ "expected":{
"debug_log":"Multipart: Lines are LF-terminated, setting MULTIPART_STRICT_ERROR to 1" "debug_log":"Warning: incorrect line endings used \\(LF\\)"
}, },
"rules":[ "rules":[
"SecRuleEngine On", "SecRuleEngine On",
"SecDebugLog \/tmp\/modsec_debug.log", "SecDebugLog \/tmp\/modsec_debug.log",
"SecDebugLogLevel 9", "SecDebugLogLevel 9",
"SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" "SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\""
] ]
}, },
{ {
"enabled":1, "enabled":1,
"version_min":300000, "version_min":300000,
"title":"Testing Variables :: MULTIPART_STRICT_ERROR", "title":"Testing Variables :: MULTIPART_STRICT_ERROR",
"client":{ "client":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":123 "port":123
}, },
"server":{ "server":{
"ip":"200.249.12.31", "ip":"200.249.12.31",
"port":80 "port":80
}, },
"request":{ "request":{
"headers":{ "headers":{
"Host":"localhost", "Host":"localhost",
"User-Agent":"curl/7.38.0", "User-Agent":"curl/7.38.0",
"Accept":"*/*", "Accept":"*/*",
"Content-Length":"330", "Content-Length":"330",
"Content-Type":"multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2", "Content-Type":"multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2",
"Expect":"100-continue" "Expect":"100-continue"
}, },
"uri":"/", "uri":"/",
"method":"POST", "method":"POST",
"body":[ "body":[
"----------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"name\"", "Content-Disposition: form-data; name=\"name\"",
"", "",
"test", "test",
"----------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", "Content-Disposition: form-data; name='filedata'; filename=\"small_text_file.txt\"",
"Content-Type: text/plain", "Content-Type: text/plain",
"", "",
"This is a very small test file..", "This is a very small test file..",
"----------------------------756b6d74fa1a8ee2", "--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", "Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"",
"Content-Type: text/plain", "Content-Type: text/plain",
"", "",
"This is another very small test file..", "This is another very small test file..",
"----------------------------756b6d74fa1a8ee2--" "--------------------------756b6d74fa1a8ee2--"
] ]
}, },
"response":{ "response":{
"headers":{ "headers":{
"Date":"Mon, 13 Jul 2015 20:02:41 GMT", "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
"Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
"Content-Type":"text/html" "Content-Type":"text/html"
}, },
"body":[ "body":[
"no need." "no need."
] ]
}, },
"expected":{ "expected":{
"debug_log":"Warning: incorrect line endings used \(LF\)" "debug_log":"Multipart: Warning: seen data before first boundary"
}, },
"rules":[ "rules":[
"SecRuleEngine On", "SecRuleEngine On",
"SecDebugLog \/tmp\/modsec_debug.log", "SecDebugLog \/tmp\/modsec_debug.log",
"SecDebugLogLevel 9", "SecDebugLogLevel 9",
"SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" "SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\""
] ]
}, }
{ ]
"enabled":1,
"version_min":300000,
"title":"Testing Variables :: MULTIPART_STRICT_ERROR",
"client":{
"ip":"200.249.12.31",
"port":123
},
"server":{
"ip":"200.249.12.31",
"port":80
},
"request":{
"headers":{
"Host":"localhost",
"User-Agent":"curl/7.38.0",
"Accept":"*/*",
"Content-Length":"330",
"Content-Type":"multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2",
"Expect":"100-continue"
},
"uri":"/",
"method":"POST",
"body":[
"--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"name\"",
"",
"test",
"--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name='filedata'; filename=\"small_text_file.txt\"",
"Content-Type: text/plain",
"",
"This is a very small test file..",
"--------------------------756b6d74fa1a8ee2",
"Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"",
"Content-Type: text/plain",
"",
"This is another very small test file..",
"--------------------------756b6d74fa1a8ee2--"
]
},
"response":{
"headers":{
"Date":"Mon, 13 Jul 2015 20:02:41 GMT",
"Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
"Content-Type":"text/html"
},
"body":[
"no need."
]
},
"expected":{
"debug_log":"Multipart: Warning: seen data before first boundary"
},
"rules":[
"SecRuleEngine On",
"SecDebugLog \/tmp\/modsec_debug.log",
"SecDebugLogLevel 9",
"SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\""
]
}
]