Debian Codegraph @

others/libinjection/misc/xsstest.html

raw
1 {% autoescape None %}
2 <!DOCTYPE HTML>
3 <html>
4 <head>
5 <meta charset="utf-8">
6 <title>XSS TEST</title>
7 <meta name="viewport" content="width=device-width" />
8 <meta name="format-detection" content="telephone=no">
9 <link rel="icon" type="image/gif" href="/static/favicon.gif" />
10 <style>
11 body { font-family: sans-serif; width: 640px; }
12 textarea { width: 100% }
13 table { width: 100% }
14 td { font-family: monospace; vertical-align: top }
15 th { text-align: left }
16 .red { background-color: #FFaaaa; overflow: hidden }
17 .green { background-color: #aaFFaa }
18 </style>
19 <script>
20 function alert() { document.write("YES"); }
21 </script>
22 </head>
23 <body>
24 <h1>XSS Test</h1>
25
26 <div><div>{{ args[1] }}</div></div>
27
28 <div><div style="background:{{ args[2] }}"></div></div>
29
30 <div><div {{ args[3] }}></div></div>
31
32 <div><div foo='{{ args[4] }}'></div></div>
33
34 </body>
35 </html>