mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-13 06:57:10 +03:00
Update regression tests.
This commit is contained in:
@@ -134,9 +134,7 @@
|
|||||||
SecAction "phase:1,pass,nolog,auditlog"
|
SecAction "phase:1,pass,nolog,auditlog"
|
||||||
),
|
),
|
||||||
match_log => {
|
match_log => {
|
||||||
-error => [ qr/ModSecurity: /, 1 ],
|
audit => [ qr/-H--\s+Message: .*Stopwatch: /s, 1 ],
|
||||||
# No message, but should have data. This may need changed
|
|
||||||
audit => [ qr/-H--\s+Stopwatch: /s, 1 ],
|
|
||||||
},
|
},
|
||||||
match_response => {
|
match_response => {
|
||||||
status => qr/^200$/,
|
status => qr/^200$/,
|
||||||
|
|||||||
@@ -30,11 +30,11 @@
|
|||||||
q(
|
q(
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data; name="a"
|
Content-Disposition: form-data; name="a"
|
||||||
|
|
||||||
1
|
1
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data; name="b"
|
Content-Disposition: form-data; name="b"
|
||||||
|
|
||||||
2
|
2
|
||||||
-----------------------------69343412719991675451336310646--
|
-----------------------------69343412719991675451336310646--
|
||||||
),
|
),
|
||||||
@@ -70,11 +70,11 @@
|
|||||||
q(
|
q(
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data; name="a"
|
Content-Disposition: form-data; name="a"
|
||||||
|
|
||||||
1
|
1
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data; name="b"
|
Content-Disposition: form-data; name="b"
|
||||||
|
|
||||||
2
|
2
|
||||||
-----------------------------69343412719991675451336310646--),
|
-----------------------------69343412719991675451336310646--),
|
||||||
),
|
),
|
||||||
@@ -111,11 +111,11 @@
|
|||||||
q(
|
q(
|
||||||
--------------------------------------------------boundary
|
--------------------------------------------------boundary
|
||||||
Content-Disposition: form-data; name="a"
|
Content-Disposition: form-data; name="a"
|
||||||
|
|
||||||
1
|
1
|
||||||
--------------------------------------------------boundary
|
--------------------------------------------------boundary
|
||||||
Content-Disposition: form-data; name="b"
|
Content-Disposition: form-data; name="b"
|
||||||
|
|
||||||
2
|
2
|
||||||
--------------------------------------------------boundary--
|
--------------------------------------------------boundary--
|
||||||
),
|
),
|
||||||
@@ -154,11 +154,11 @@
|
|||||||
q(
|
q(
|
||||||
----------0xKhTmLbOuNdArY
|
----------0xKhTmLbOuNdArY
|
||||||
Content-Disposition: form-data; name="a"
|
Content-Disposition: form-data; name="a"
|
||||||
|
|
||||||
1
|
1
|
||||||
----------0xKhTmLbOuNdArY
|
----------0xKhTmLbOuNdArY
|
||||||
Content-Disposition: form-data; name="b"
|
Content-Disposition: form-data; name="b"
|
||||||
|
|
||||||
2
|
2
|
||||||
----------0xKhTmLbOuNdArY--
|
----------0xKhTmLbOuNdArY--
|
||||||
),
|
),
|
||||||
@@ -195,11 +195,11 @@
|
|||||||
q(
|
q(
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data; name="a"
|
Content-Disposition: form-data; name="a"
|
||||||
|
|
||||||
--test
|
--test
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data; name="b"
|
Content-Disposition: form-data; name="b"
|
||||||
|
|
||||||
--
|
--
|
||||||
-----------------------------69343412719991675451336310646--),
|
-----------------------------69343412719991675451336310646--),
|
||||||
),
|
),
|
||||||
@@ -235,11 +235,11 @@
|
|||||||
q(
|
q(
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data; name="a"
|
Content-Disposition: form-data; name="a"
|
||||||
|
|
||||||
1
|
1
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data; name="b"
|
Content-Disposition: form-data; name="b"
|
||||||
|
|
||||||
2
|
2
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -273,10 +273,10 @@
|
|||||||
normalize_raw_request_data(
|
normalize_raw_request_data(
|
||||||
q(
|
q(
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
|
|
||||||
1
|
1
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
|
|
||||||
2
|
2
|
||||||
-----------------------------69343412719991675451336310646--
|
-----------------------------69343412719991675451336310646--
|
||||||
),
|
),
|
||||||
@@ -311,11 +311,11 @@
|
|||||||
q(
|
q(
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data name="a"
|
Content-Disposition: form-data name="a"
|
||||||
|
|
||||||
1
|
1
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data name="b"
|
Content-Disposition: form-data name="b"
|
||||||
|
|
||||||
2
|
2
|
||||||
-----------------------------69343412719991675451336310646--
|
-----------------------------69343412719991675451336310646--
|
||||||
),
|
),
|
||||||
@@ -351,11 +351,11 @@
|
|||||||
q(
|
q(
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data;
|
Content-Disposition: form-data;
|
||||||
|
|
||||||
1
|
1
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data;
|
Content-Disposition: form-data;
|
||||||
|
|
||||||
2
|
2
|
||||||
-----------------------------69343412719991675451336310646--
|
-----------------------------69343412719991675451336310646--
|
||||||
),
|
),
|
||||||
@@ -391,13 +391,13 @@
|
|||||||
q(
|
q(
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data; name="a"
|
Content-Disposition: form-data; name="a"
|
||||||
|
|
||||||
1
|
1
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
:
|
:
|
||||||
-----------------------------69343412719991675451336310646
|
-----------------------------69343412719991675451336310646
|
||||||
Content-Disposition: form-data; name="b"
|
Content-Disposition: form-data; name="b"
|
||||||
|
|
||||||
2
|
2
|
||||||
-----------------------------69343412719991675451336310646--
|
-----------------------------69343412719991675451336310646--
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user