Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1732 from lifeforms/severity
Browse files Browse the repository at this point in the history
Make severities and scores consistent
  • Loading branch information
airween committed Apr 6, 2020
2 parents 0962388 + 55c6b7c commit cf57fd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ SecRule REQUEST_LINE "!@rx ^(?i:(?:[a-z]{3,10}\s+(?:\w{3,7}?://[\w\-\./]*(?::\d+
tag:'CAPEC-272',\
ver:'OWASP_CRS/3.2.0',\
severity:'WARNING',\
setvar:'tx.anomaly_score_pl1=+%{tx.notice_anomaly_score}'"
setvar:'tx.anomaly_score_pl1=+%{tx.warning_anomaly_score}'"


#
Expand Down Expand Up @@ -247,7 +247,7 @@ SecRule REQUEST_PROTOCOL "!@within HTTP/2 HTTP/2.0" \
SecRule &REQUEST_HEADERS:Content-Length "@eq 0" \
"chain"
SecRule &REQUEST_HEADERS:Transfer-Encoding "@eq 0" \
"setvar:'tx.anomaly_score_pl1=+%{tx.notice_anomaly_score}'"
"setvar:'tx.anomaly_score_pl1=+%{tx.warning_anomaly_score}'"

#
# As per RFC7230 3.3.2: A sender MUST NOT send a Content-Length
Expand All @@ -273,7 +273,7 @@ SecRule &REQUEST_HEADERS:Transfer-Encoding "!@eq 0" \
chain"
SecRule &REQUEST_HEADERS:Content-Length "!@eq 0" \
"t:none,\
setvar:'tx.anomaly_score_pl1=+%{tx.critical_anomaly_score}'"
setvar:'tx.anomaly_score_pl1=+%{tx.warning_anomaly_score}'"


#
Expand Down Expand Up @@ -517,7 +517,7 @@ SecRule REQUEST_URI|REQUEST_HEADERS|ARGS|ARGS_NAMES "@validateByteRange 1-255" \
tag:'OWASP_CRS/PROTOCOL_VIOLATION/EVASION',\
ver:'OWASP_CRS/3.2.0',\
severity:'CRITICAL',\
setvar:'tx.anomaly_score_pl1=+%{tx.error_anomaly_score}'"
setvar:'tx.anomaly_score_pl1=+%{tx.critical_anomaly_score}'"


#
Expand Down

0 comments on commit cf57fd5

Please sign in to comment.