This repository was archived by the owner on May 14, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,33 @@ SecRule REQUEST_METHOD "@rx ^(?:GET|HEAD)$" \
264264 setvar:'tx.%{rule.id}-OWASP_CRS/PROTOCOL_VIOLATION/INVALID_HREQ-%{matched_var_name}=%{matched_var}'"
265265
266266
267+ #
268+ # This is a sibling of rule 920170
269+ #
270+ SecRule REQUEST_METHOD "@rx ^(?:GET|HEAD)$" \
271+ "id:920171,\
272+ phase:2,\
273+ block,\
274+ t:none,\
275+ msg:'GET or HEAD Request with Transfer-Encoding.',\
276+ logdata:'%{matched_var}',\
277+ tag:'application-multi',\
278+ tag:'language-multi',\
279+ tag:'platform-multi',\
280+ tag:'attack-protocol',\
281+ tag:'OWASP_CRS/PROTOCOL_VIOLATION/INVALID_HREQ',\
282+ tag:'CAPEC-272',\
283+ ver:'OWASP_CRS/3.1.0',\
284+ rev:1,\
285+ severity:'CRITICAL',\
286+ chain"
287+ SecRule &REQUEST_HEADERS:Transfer-Encoding "!@eq 0" \
288+ "t:none,\
289+ setvar:'tx.msg=%{rule.msg}',\
290+ setvar:'tx.anomaly_score=+%{tx.critical_anomaly_score}',\
291+ setvar:'tx.%{rule.id}-OWASP_CRS/PROTOCOL_VIOLATION/INVALID_HREQ-%{matched_var_name}=%{matched_var}'"
292+
293+
267294#
268295# Require Content-Length to be provided with every POST request.
269296#
You can’t perform that action at this time.
0 commit comments