Lucene search
+L

Microsoft Edge - Chakra Incorrectly Parses Object Patterns

🗓️ 21 Sep 2017 00:00:00Reported by Google Security ResearchType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 45 Views

Microsoft Edge Chakra Object Parsing Vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
Microsoft Edge Chakra - Incorrectly Parses Object Patterns Exploit
22 Sep 201700:00
–zdt
bdu_fstec
BDU FSTEC
Microsoft Edge Memory Execution Code
25 Oct 201700:00
–bdu_fstec
circl
Circl
CVE-2017-8729
21 Sep 201700:00
–circl
cnvd
CNVD
Microsoft Edge Memory Corruption Vulnerability (CNVD-2017-28650)
13 Sep 201700:00
–cnvd
cve
CVE
CVE-2017-8729
13 Sep 201701:00
–cve
cvelist
Cvelist
CVE-2017-8729
13 Sep 201701:00
–cvelist
mskb
Microsoft KB
September 12, 2017—KB4038788 (OS Build 15063.608)
12 Sep 201707:00
–mskb
kaspersky
Kaspersky
KLA11098 Multiple vulnerabilities in Microsoft Edge and Microsoft Internet Explorer
12 Sep 201700:00
–kaspersky
mend
Mend
CVE-2017-11764
13 Sep 201701:00
–mend
mend
Mend
CVE-2017-8660
13 Sep 201701:00
–mend
Rows per page
<!--
Source: https://bugs.chromium.org/p/project-zero/issues/detail?id=1308

When the Chakra's parser meets "{", at first, Chakra treats it as an object literal without distinguishing whether it will be an object literal(i.e., {a: 0x1234}) or an object pattern(i.e., {a} = {a: 1234}). After finishing to parse it using "Parser::ParseTerm", if it's an object pattern, Chakra converts it to an object pattern using the "ConvertObjectToObjectPattern" method.

The problem is that "Parser::ParseTerm" also parses ".", etc. using "ParsePostfixOperators" without proper checks. As a result, an invalid syntax(i.e., {b = 0x1111...}.c) can be parsed and "ConvertObjectToObjectPattern" will fail to convert it to an object pattern.

In the following PoC, "ConvertObjectToObjectPattern" skips "{b = 0x1111...}.c". So the object literal will have incorrect members(b = 0x1111, c = 0x2222), this leads to type confusion(Chakra will think "c" is a setter and try to call it).

PoC:
-->

function f() {
    ({
        a: {
            b = 0x1111,
            c = 0x2222,
        }.c = 0x3333
    } = {});
}

f();

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

21 Sep 2017 00:00Current
7.4High risk
Vulners AI Score7.4
CVSS 37.5
CVSS 27.6
EPSS0.72171
45