From 7c84e93a3d385bd622a38ab5be2f5819da14e949 Mon Sep 17 00:00:00 2001 From: Ervin Hegedus Date: Thu, 23 Apr 2020 19:49:22 +0000 Subject: [PATCH] Changed variable to lowercase (modsec3 behavior fix) --- rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf b/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf index 880c8c4b3..49ea35397 100644 --- a/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf +++ b/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf @@ -1130,7 +1130,7 @@ SecRule REQUEST_HEADERS_NAMES "@rx ^.*$" \ severity:'CRITICAL',\ setvar:'tx.header_name_%{tx.0}=/%{tx.0}/',\ chain" - SecRule TX:/^HEADER_NAME_/ "@within %{tx.restricted_headers}" \ + SecRule TX:/^header_name_/ "@within %{tx.restricted_headers}" \ "setvar:'tx.anomaly_score_pl1=+%{tx.critical_anomaly_score}'"