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

Commit 5206485

Browse files
csanders-gitlifeforms
authored andcommitted
Updating XSS rules, travis, and updating 920430 because it'll never fire in phase 2
(cherry picked from commit 401561e)
1 parent 13b1233 commit 5206485

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
2324
branches:
2425
only:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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
-
@@ -38,4 +38,4 @@
3838
output:
3939
log_contains: id "941160"
4040

41-
41+

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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"
@@ -19,7 +19,7 @@
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
-
@@ -36,7 +36,7 @@
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
-
@@ -53,6 +53,6 @@
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"

0 commit comments

Comments
 (0)