Skip to content

Commit dd251f8

Browse files
authored
Update 5.2.1.yaml
Signed-off-by: AmirHossein Raeisi <[email protected]>
1 parent 8edcf6f commit dd251f8

File tree

1 file changed

+45
-67
lines changed

1 file changed

+45
-67
lines changed

templates/5.2.1.yaml

Lines changed: 45 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -13,78 +13,56 @@ info:
1313
description: |
1414
Verify that all untrusted HTML input from WYSIWYG editors or similar is properly sanitized with an HTML sanitizer library or framework feature.
1515
16-
requests:
17-
- name: EditorJS Payloads
18-
method: POST
19-
path:
20-
- "{{BaseURL}}"
21-
headers:
22-
Content-Type: application/json
23-
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
24-
25-
attack: clusterbomb
16+
variables:
17+
first: "{{rand_int(10000, 99999)}}"
18+
19+
http:
20+
- pre-condition:
21+
- type: dsl
22+
dsl:
23+
- method == POST
24+
- len(body) > 0
25+
2626
payloads:
27-
payload: "templates/dast/assets/5.2.1Payloads.txt"
27+
reflection:
28+
- "'\"><{{first}}>"
29+
- "'><{{first}}>"
30+
- "\"><{{first}}>"
31+
32+
fuzzing:
33+
- part: body
34+
type: postfix
35+
mode: multiple
36+
keys:
37+
- "ops"
38+
- "insert"
39+
- "ops"
40+
- "insert"
41+
- "attributes"
42+
- "bold"
43+
- "italic"
44+
- "link"
45+
- "time"
46+
- "blocks"
47+
- "type"
48+
- "data"
49+
- "text"
50+
- "level"
51+
- "style"
52+
- "items"
53+
- "version"
54+
fuzz:
55+
- "{{reflection}}"
56+
57+
stop-at-first-match: true
58+
matchers-condition: and
2859
matchers:
2960
- type: word
3061
part: body
3162
words:
32-
- "{{payload}}"
33-
body: |
34-
{
35-
"time": "{{payload}}",
36-
"blocks": [
37-
{
38-
"type": "{{payload}}",
39-
"data": {
40-
"text": "{{payload}}",
41-
"level": "{{payload}}"
42-
}
43-
},
44-
{
45-
"type": "{{payload}}",
46-
"data": {
47-
"text": "{{payload}}"
48-
}
49-
},
50-
{
51-
"type": "{{payload}}",
52-
"data": {
53-
"style": "{{payload}}",
54-
"items": [
55-
"{{payload}}",
56-
"{{payload}}",
57-
"{{payload}}"
58-
]
59-
}
60-
}
61-
],
62-
"version": "{{payload}}"
63-
}
63+
- "{{reflection}}"
6464

65-
- name: QuillJS Payload
66-
method: POST
67-
path:
68-
- "{{BaseURL}}"
69-
headers:
70-
Content-Type: application/json
71-
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
72-
73-
attack: clusterbomb
74-
payloads:
75-
payload: "templates/dast/assets/5.2.1Payloads.txt"
76-
matchers:
7765
- type: word
78-
part: body
66+
part: header
7967
words:
80-
- "{{payload}}"
81-
body: |
82-
{
83-
"ops": [
84-
{ "insert": "{{payload}}" },
85-
{ "insert": "{{payload}}", "attributes": { "bold": "{{payload}}" } },
86-
{ "insert": "{{payload}}", "attributes": { "italic": "{{payload}}" } },
87-
{ "insert": "{{payload}}", "attributes": { "link": "{{payload}}" } }
88-
]
89-
}
90-
# digest: 4b0a00483046022100a20be37f2680adcf6cf30f46a2f79aafdf0803c10b2ac628e4c62486dc3a02a3022100c7779a6e7e643411096a7e95856f07ed3b830671418285575851c6c317c2ee87:236a7c23afe836fbe231d6e037cff444
68+
- "text/html"

0 commit comments

Comments
 (0)