mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Improves the accuracy of version identification on status calls
Trying to differentiate among IIS, Apache, NGINX, and Standalone builds.
This commit is contained in:
@@ -70,4 +70,54 @@
|
||||
"arg1=val1&arg2=val2",
|
||||
),
|
||||
},
|
||||
# On and SecServerSignature
|
||||
{
|
||||
type => "misc",
|
||||
comment => "SecStatusEngine On/SecServerSignature - checking signature",
|
||||
conf => qq(
|
||||
SecRuleEngine On
|
||||
SecServerSignature "SpiderServer v0.1a"
|
||||
SecStatusEngine On
|
||||
),
|
||||
match_log => {
|
||||
error => {
|
||||
apache => [ qr/StatusEngine call: \"[0-9]+.[0-9]+.[0-9]+[-RC]*[0-9]*\,Apache/, 1],
|
||||
nginx => [ qr/StatusEngine call: \"[0-9]+.[0-9]+.[0-9]+[-RC]*[0-9]*\,nginx/, 1],
|
||||
}
|
||||
},
|
||||
match_response => {
|
||||
status => qr/^200$/,
|
||||
},
|
||||
request => new HTTP::Request(
|
||||
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
|
||||
[
|
||||
"Content-Type" => "application/x-www-form-urlencoded",
|
||||
],
|
||||
"arg1=val1&arg2=val2",
|
||||
),
|
||||
},
|
||||
# On and SecServerSignature
|
||||
{
|
||||
type => "misc",
|
||||
comment => "SecStatusEngine On - checking signature",
|
||||
conf => qq(
|
||||
SecStatusEngine On
|
||||
),
|
||||
match_log => {
|
||||
error => {
|
||||
apache => [ qr/StatusEngine call: \"[0-9]+.[0-9]+.[0-9]+[-RC]*[0-9]*\,Apache/, 1],
|
||||
nginx => [ qr/StatusEngine call: \"[0-9]+.[0-9]+.[0-9]+[-RC]*[0-9]*\,nginx/, 1],
|
||||
}
|
||||
},
|
||||
match_response => {
|
||||
status => qr/^200$/,
|
||||
},
|
||||
request => new HTTP::Request(
|
||||
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
|
||||
[
|
||||
"Content-Type" => "application/x-www-form-urlencoded",
|
||||
],
|
||||
"arg1=val1&arg2=val2",
|
||||
),
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user