mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds sanity check to confirm that the rule has an ID and it is not duplicated
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
"SecRuleEngine On",
|
||||
"SecDebugLog \/tmp\/modsec_debug.log",
|
||||
"SecDebugLogLevel 9",
|
||||
"SecRule &REQUEST_HEADERS \"@contains test \" \"t:lowercase,t:none\""
|
||||
"SecRule &REQUEST_HEADERS \"@contains test \" \"id:1,t:lowercase,t:none\""
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -114,7 +114,7 @@
|
||||
"SecRuleEngine On",
|
||||
"SecDebugLog \/tmp\/modsec_debug.log",
|
||||
"SecDebugLogLevel 9",
|
||||
"SecRule &REQUEST_HEADERS:Accept \"@contains test \" \"t:lowercase,t:none\""
|
||||
"SecRule &REQUEST_HEADERS:Accept \"@contains test \" \"id:1,t:lowercase,t:none\""
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -173,7 +173,7 @@
|
||||
"SecRuleEngine On",
|
||||
"SecDebugLog \/tmp\/modsec_debug.log",
|
||||
"SecDebugLogLevel 9",
|
||||
"SecRule &REQUEST_HEADERS:missing \"@contains test \" \"t:lowercase,t:none\""
|
||||
"SecRule &REQUEST_HEADERS:missing \"@contains test \" \"id:1,t:lowercase,t:none\""
|
||||
]
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user