Skip to content

Commit

Permalink
Merge pull request #3083 from coreruleset/status_page_test_921120
Browse files Browse the repository at this point in the history
fix: add status page test for rule 921120
  • Loading branch information
fzipi committed Jan 21, 2023
2 parents f38fd14 + 8c2dcf9 commit 7396baa
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/regression/tests/REQUEST-921-PROTOCOL-ATTACK/921120.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,22 @@ tests:
version: HTTP/1.1
output:
no_log_contains: id "921120"
- test_title: 921120-4
desc: "Status Page Test - Parameter with value 'CR.LF.Content-Length: 0' to match the rule's regular expression"
stages:
- stage:
input:
dest_addr: 127.0.0.1
headers:
Host: localhost
Proxy-Connection: keep-alive
Referer: http
User-Agent: OWASP ModSecurity Core Rule Set
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
method: POST
port: 80
uri: "/post"
data: "var=%0d%0aContent-Length: 0"
version: HTTP/1.1
output:
log_contains: id "921120"

0 comments on commit 7396baa

Please sign in to comment.