Blame SOURCES/mod_security.conf

81f72a
<IfModule mod_security2.c>
81f72a
    # Default recommended configuration
81f72a
    SecRuleEngine On
81f72a
    SecRequestBodyAccess On
81f72a
    SecRule REQUEST_HEADERS:Content-Type "text/xml" \
81f72a
         "id:'200000',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=XML"
81f72a
    SecRequestBodyLimit 13107200
81f72a
    SecRequestBodyNoFilesLimit 131072
81f72a
    SecRequestBodyInMemoryLimit 131072
81f72a
    SecRequestBodyLimitAction Reject
81f72a
    SecRule REQBODY_ERROR "!@eq 0" \
81f72a
    "id:'200001', phase:2,t:none,log,deny,status:400,msg:'Failed to parse request body.',logdata:'%{reqbody_error_msg}',severity:2"
81f72a
    SecRule MULTIPART_STRICT_ERROR "!@eq 0" \
81f72a
    "id:'200002',phase:2,t:none,log,deny,status:400,msg:'Multipart request body \
81f72a
    failed strict validation: \
81f72a
    PE %{REQBODY_PROCESSOR_ERROR}, \
81f72a
    BQ %{MULTIPART_BOUNDARY_QUOTED}, \
81f72a
    BW %{MULTIPART_BOUNDARY_WHITESPACE}, \
81f72a
    DB %{MULTIPART_DATA_BEFORE}, \
81f72a
    DA %{MULTIPART_DATA_AFTER}, \
81f72a
    HF %{MULTIPART_HEADER_FOLDING}, \
81f72a
    LF %{MULTIPART_LF_LINE}, \
81f72a
    SM %{MULTIPART_MISSING_SEMICOLON}, \
81f72a
    IQ %{MULTIPART_INVALID_QUOTING}, \
81f72a
    IP %{MULTIPART_INVALID_PART}, \
81f72a
    IH %{MULTIPART_INVALID_HEADER_FOLDING}, \
81f72a
    FL %{MULTIPART_FILE_LIMIT_EXCEEDED}'"
81f72a
81f72a
    SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
81f72a
    "id:'200003',phase:2,t:none,log,deny,status:44,msg:'Multipart parser detected a possible unmatched boundary.'"
81f72a
81f72a
    SecPcreMatchLimit 1000
81f72a
    SecPcreMatchLimitRecursion 1000
81f72a
81f72a
    SecRule TX:/^MSC_/ "!@streq 0" \
81f72a
            "id:'200004',phase:2,t:none,deny,msg:'ModSecurity internal error flagged: %{MATCHED_VAR_NAME}'"
81f72a
81f72a
    SecResponseBodyAccess Off
81f72a
    SecDebugLog $sec_logdir/modsec_debug.log
81f72a
    SecDebugLogLevel 0
81f72a
    SecAuditEngine RelevantOnly
81f72a
    SecAuditLogRelevantStatus "^(?:5|4(?!04))"
81f72a
    SecAuditLogParts ABIJDEFHZ
81f72a
    SecAuditLogType Serial
81f72a
    SecAuditLog $sec_logdir/modsec_audit.log
81f72a
    SecArgumentSeparator &
81f72a
    SecCookieFormat 0
81f72a
    SecTmpDir $sec_statedir
81f72a
    SecDataDir $sec_statedir
81f72a
81f72a
    # ModSecurity Core Rules Set and Local configuration
81f72a
	Include modsecurity.d/*.conf
81f72a
	Include modsecurity.d/activated_rules/*.conf
81f72a
	Include modsecurity.d/local_rules/*.conf
81f72a
    
81f72a
</IfModule>