vendor:
N/A
by:
Anonymous
7.5
CVSS
HIGH
Bypassing BailOutOnInvalidatedArrayHeadSegment Check
20
CWE
Product Name: N/A
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: N/A
2020
Bypassing BailOutOnInvalidatedArrayHeadSegment Check
The BailOutOnInvalidatedArrayHeadSegment check uses the JavascriptArray::GetArrayForArrayOrObjectWithArray method to check whether the given object is an array. Since wrapping an object with the CrossSite class replaces the vtable of the object, this can be used to bypass it. The PoC code shows how an attacker can use this vulnerability to bypass the BailOutOnInvalidatedArrayHeadSegment check and perform in-place type conversion.
Mitigation:
Ensure that the JavascriptArray::GetArrayForArrayOrObjectWithArray method is properly implemented and that the vtable of the given object is not replaced.