@@ -13,78 +13,56 @@ info:
13
13
description : |
14
14
Verify that all untrusted HTML input from WYSIWYG editors or similar is properly sanitized with an HTML sanitizer library or framework feature.
15
15
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
+
26
26
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
28
59
matchers :
29
60
- type : word
30
61
part : body
31
62
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}}"
64
64
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 :
77
65
- type : word
78
- part : body
66
+ part : header
79
67
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