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
2017
Integer Overflow in Bytecode Generator
The bytecode generator uses the "EmitNew" function to handle new operators. Here's the code how the function checks for integer overflow. The "Js::ArgSlot" is a 16 bit unsigned integer type. And "argCount" is of the type "Js::ArgSlot". So "if (argCount != (Js::ArgSlot)argCount)" has no point. It can't prevent the integer overflow at all. The PoC code creates an array with 0x10000 elements and fills it with 0x1234.
Mitigation:
Ensure that the code is properly checked for integer overflow.