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

Commit 36dbdce

Browse files
committed
Adding new test for 941150 based on XSS cheatsheet by portswigger
1 parent 021eaef commit 36dbdce

File tree

1 file changed

+33
-16
lines changed
  • util/regression-tests/tests/REQUEST-941-APPLICATION-ATTACK-XSS

1 file changed

+33
-16
lines changed

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

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,37 @@
55
name: "941150.yaml"
66
description: "Tests to trigger, or not trigger 941150"
77
tests:
8+
-
9+
test_title: 941150-1
10+
desc: Disallowed HTML entities, ARGS
11+
stages:
812
-
9-
test_title: 941150-1
10-
desc: Disallowed HTML entities, ARGS
11-
stages:
12-
-
13-
stage:
14-
input:
15-
dest_addr: 127.0.0.1
16-
method: GET
17-
port: 80
18-
uri: '/foo'
19-
headers:
20-
User-Agent: ModSecurity CRS 3 Tests
21-
Host: localhost
22-
data: '941150-1%3D%3Ca%20href%3D%22test%22'
23-
output:
24-
log_contains: id "941150"
13+
stage:
14+
input:
15+
dest_addr: 127.0.0.1
16+
method: GET
17+
port: 80
18+
uri: '/foo'
19+
headers:
20+
User-Agent: ModSecurity CRS 3 Tests
21+
Host: localhost
22+
data: '941150-1%3D%3Ca%20href%3D%22test%22'
23+
output:
24+
log_contains: id "941150"
25+
-
26+
test_title: 941150-2
27+
desc: Disallowed HTML entities, ARGS
28+
stages:
29+
-
30+
stage:
31+
input:
32+
dest_addr: 127.0.0.1
33+
method: POST
34+
port: 80
35+
uri: '/'
36+
headers:
37+
User-Agent: ModSecurity CRS 3 Tests
38+
Host: localhost
39+
data: "payload=<a href=# language=\"JScript.Encode\" onclick=\"#@~^CAAAAA==C^+.D`8#mgIAAA==^#~@\">XSS</a>"
40+
output:
41+
log_contains: id "941150"

0 commit comments

Comments
 (0)