vendor:
Chakra
by:
Project Zero
7,8
CVSS
HIGH
Heap Overflow
119
CWE
Product Name: Chakra
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
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2017
Heap Overflow in Array.splice in Chakra
When an array is spliced, and overflow check is performed, but ArraySpeciesCreate, which can execute code and alter the array is called after this. This can allow an Array with boundaries that cause integer overflows to be spliced, leading to heap overflows in several situations. A minimal PoC is as follows and a full PoC is attached. The PoC is a bit unreliable, it may need to be refreshed a few times to crash.
Mitigation:
Ensure that all user input is validated and sanitized before being used in any operations.