vendor:
N/A
by:
Anonymous
8.8
CVSS
HIGH
Type Confusion
843
CWE
Product Name: N/A
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: N/A
2020
PoC for Type Confusion Vulnerability in JavaScript
A type confusion vulnerability exists in JavaScript due to the LdaNamedProperty operation 'opt.x' being lowered to a graph exit in the graph builder. This set the current environment to nullptr, which caused the context value to remain as 'undefined'. However, GetSpecializationContext directly casted the context value to Context* which resulted in type confusion.
Mitigation:
Ensure that the environment is not set to nullptr when the LdaNamedProperty operation is lowered to a graph exit.