vendor:
N/A
by:
Project Zero
7,5
CVSS
HIGH
Integer Overflow
190
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
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2018
IntegerCheckCombiningPhase::handleBlock Signed Comparison Vulnerability
When compiling Javascript code into machine code, bound checks for all accesses to a typed array are also inserted. These bound checks are re-optimized and the unnecessary checks are removed, which is performed by IntegerCheckCombiningPhase::handleBlock. The problem is that the check |data.m_addend > range.m_maxBound| is a signed comparison. This vulnerability can be exploited by setting a negative index to the typed array, which will bypass the signed comparison check and allow the attacker to write to arbitrary memory locations.
Mitigation:
Ensure that all typed array accesses are properly validated and that the signed comparison check is not bypassed.