Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit d16b82c

Browse files
authored
Merge pull request #1577 from dune73/new-tests-for-941280
Adding new test for 941280 based on XSS cheatsheet by portswigger
2 parents ad41433 + b83dbc1 commit d16b82c

File tree

1 file changed

+21
-0
lines changed
  • util/regression-tests/tests/REQUEST-941-APPLICATION-ATTACK-XSS

1 file changed

+21
-0
lines changed

util/regression-tests/tests/REQUEST-941-APPLICATION-ATTACK-XSS/941280.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,24 @@
2121
version: HTTP/1.0
2222
output:
2323
log_contains: id "941280"
24+
-
25+
test_title: 941280-2
26+
desc: "XSS test based on portswigger XSS cheatsheet"
27+
stages:
28+
-
29+
stage:
30+
input:
31+
dest_addr: 127.0.0.1
32+
headers:
33+
Host: localhost
34+
Content-Length: 113
35+
User-Agent: ModSecurity CRS 3 Tests
36+
Content-Type: application/x-www-form-urlencoded
37+
method: POST
38+
port: 80
39+
uri: "/"
40+
version: HTTP/1.0
41+
data: 'payload=<a href=abc style="width:101%;height:100%;position:absolute;font-size:1000px;">xss<base href="//evil/</a>'
42+
stop_magic: true
43+
output:
44+
log_contains: id "941280"

0 commit comments

Comments
 (0)