File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ id : ASVS-4-0-3-V5-2-1
2
+
3
+ info :
4
+ name : ASVS 5.2.1 Check
5
+ author : Masoud Abdaal,AmirHossein Raeisi
6
+ severity : high
7
+ classification :
8
+ cwe-id : CWE-116
9
+ reference :
10
+ - https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side_Testing/03-Testing_for_HTML_Injection
11
+ - https://github.com/OWASP/ASVS/blob/master/4.0/en/0x13-V5-Validation-Sanitization-Encoding.md#v52-sanitization-and-sandboxing
12
+ tags : asvs,5.2.1
13
+ description : |
14
+ Verify that all untrusted HTML input from WYSIWYG editors or similar is properly sanitized with an HTML sanitizer library or framework feature.
15
+
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
+ payloads :
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
59
+ matchers :
60
+ - type : word
61
+ part : body
62
+ words :
63
+ - " {{reflection}}"
64
+
65
+ - type : word
66
+ part : header
67
+ words :
68
+ - " text/html"
You can’t perform that action at this time.
0 commit comments