Skip to content

Commit b58f713

Browse files
Chaim SandersFelipe Zimmerle
Chaim Sanders
authored and
Felipe Zimmerle
committed
add support for soap+xml
As was talked about by @emphazer in SpiderLabs/owasp-modsecurity-crs#721, RFC 3902 adds support for the application/soap+xml header used by SOAP 1.2.
1 parent e2bbe98 commit b58f713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modsecurity.conf-recommended

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ SecRequestBodyAccess On
1919
# Enable XML request body parser.
2020
# Initiate XML Processor in case of xml content-type
2121
#
22-
SecRule REQUEST_HEADERS:Content-Type "(?:text|application)/xml" \
22+
SecRule REQUEST_HEADERS:Content-Type "(?:application(?:/soap\+|/)|text/)xml" \
2323
"id:'200000',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=XML"
2424

2525
# Enable JSON request body parser.

0 commit comments

Comments
 (0)