Mod_security only blocks Internet Explorer

I installed mod_security with apache server and now it only blocks ie7 / 8/9 browser. (I can browse web pages using firefox / chromium / etc)

The magazines say:

Message: String match within "Proxy-Connection Lock-Token Content-Range Translate via if" at REQUEST_HEADERS_NAMES:Connection. [file "/etc/apache2/mod_security/modsecurity_crs_30_http_policy.conf"] [line "99"] [id "960038"] [msg "HTTP header is restricted by policy"] [data "Connection"] [severity "WARNING"] [tag "POLICY/HEADER_RESTRICTED"] [tag "POLICY/FILES_NOT_ALLOWED"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/12.1"] [tag "WASCTC/WASC-15"] [tag "OWASP_TOP_10/A7"] [tag "PCI/12.1"]
Message: Access denied with code 403 (phase 2). [file "/etc/apache2/mod_security/modsecurity_crs_49_enforcement.conf"] [line "25"] [msg "Anomaly Score Exceeded (score 20): Common SPAM/Email Harvester crawler"]
Action: Intercepted (phase 2)
Stopwatch: 1337888078594451 2694 (918 2353 -)
Producer: ModSecurity for Apache/2.5.12 (http://www.modsecurity.org/); core ruleset/2.0.6.
Server: Apache

And the rule identifier is "960038":

SecRule REQUEST_HEADERS_NAMES "@within %{tx.restricted_headers}""phase:2,t:none,pass,nolog,auditlog,msg:'HTTP header is restricted by policy',id:'960038',tag:'POLICY/HEADER_RESTRICTED',tag:'POLICY/FILES_NOT_ALLOWED',tag:'WASCTC/WASC-21',tag:'OWASP_TOP_10/A7',tag:'PCI/12.1',tag:'WASCTC/WASC-15',tag:'OWASP_TOP_10/A7',tag:'PCI/12.1',severity:'4',logdata:'%{matched_var}',setvar:'tx.msg=%{rule.msg}',setvar:tx.anomaly_score=+%{tx.warning_anomaly_score},setvar:tx.policy_score=+%{tx.warning_anomaly_score},setvar:tx.%{rule.id}-POLICY/HEADERS_RESTRICTED-%{matched_var_name}=%{matched_var}"

I have one main question and two others derived from the first:

  • How do you know what this rule does?
    • Can this rule be ignored?
    • Is there a way to change the rule so that you can move around the network?
+3
source share
1 answer
  • Answering your first Mod-Security question, we have very detailed documentation about the syntax of the rule language. Below is a link to its documentation. ModSecurity Rule Language

  • TX tx.restricted_headers, HTTP,

    SecAction ": 1, t: , nolog, pass, setvar: 'tx.restricted_headers =/Proxy-Connection//Lock-Token//Content-Range//Translate//via//if/'" . HTTP

  • , , , , , HTTP, .

  • , IE,

    : 403 ( 2). [ "/etc/apache2/mod_security/modsecurity_crs_49_enforcement.conf" ] [ "25" ] [msg " ( 20): / " ]

HTTP. , , . ,

+1

All Articles