This repository was archived by the owner on May 14, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
util/regression-tests/tests/REQUEST-941-APPLICATION-ATTACK-XSS Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,9 @@ script:
1717 - py.test -vs util/regression-tests/CRS_Tests.py --ruledir=util/regression-tests/tests/REQUEST-913-SCANNER-DETECTION
1818 - py.test -vs util/regression-tests/CRS_Tests.py --ruledir=util/regression-tests/tests/REQUEST-921-PROTOCOL-ATTACK
1919 - py.test -vs util/regression-tests/CRS_Tests.py --ruledir=util/regression-tests/tests/REQUEST-930-APPLICATION-ATTACK-LFI
20+ - py.test -vs util/regression-tests/CRS_Tests.py --ruledir=util/regression-tests/tests/REQUEST-941-APPLICATION-ATTACK-XSS
2021 - py.test -vs util/regression-tests/CRS_Tests.py --ruledir=util/regression-tests/tests/REQUEST-942-APPLICATION-ATTACK-SQLI
21-
22+ - py.test -vs util/regression-tests/CRS_Tests.py --ruledir=util/regression-tests/tests/REQUEST-943-APPLICATION-ATTACK-SESSION-FIXATION
2223# safelist
2324branches :
2425 only :
Original file line number Diff line number Diff line change 66 description : " Tests to trigger, or not trigger 941160"
77 tests :
88 -
9- test_title : 941160-1
9+ test_title : 941160-1FN
1010 desc : XSS in XML Test as described in http://www.client9.com/article/five-interesting-injection-attacks/
1111 stages :
1212 -
3838 output :
3939 log_contains : id "941160"
4040
41-
41+
Original file line number Diff line number Diff line change 11---
22 meta :
3- author : " zmallen "
3+ author : " csanders-git "
44 enabled : true
55 name : " 941190.yaml"
66 description : " Tests to trigger, or not trigger 941190"
1919 headers :
2020 User-Agent : ModSecurity CRS 3 Tests
2121 Host : localhost
22- data : ' 941190-1=window.location '
22+ data : ' 941190-1=<STYLE>@import ' http://xss.rocks/xss.css';</STYLE> '
2323 output :
2424 log_contains : id "941190"
2525 -
3636 headers :
3737 User-Agent : ModSecurity CRS 3 Tests
3838 Host : localhost
39- data : ' document.cookie=941190-2 '
39+ data : ' x=<STYLE>@im\\port ' \\ja\vasc\\ript:alert('XSS')';</STYLE> '
4040 output :
4141 log_contains : id "941190"
4242 -
5353 headers :
5454 User-Agent : ModSecurity CRS 3 Tests
5555 Host : localhost
56- Cookie : ' window.location=941190-3 '
56+ Cookie : ' <STYLE>BODY{-moz-binding:url("http://xss.rocks/xssmoz.xml#xss")}</STYLE> '
5757 output :
5858 log_contains : id "941190"
You can’t perform that action at this time.
0 commit comments