Apple Safari TypedArray copyWithin Integer Underflow Remote Code Execution Vulnerability
Vulnerability Details
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Apple Safari. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The specific flaw exists within the implementation of the copyWithin method on typed arrays. The issue results from the lack of proper validation of user-supplied data, which can result in an integer underflow before writing to memory. An attacker can leverage this vulnerability to execute code in the context of the current process.
Additional Details
Apple has issued an update to correct this vulnerability. More details can be found at:
https://support.apple.com/en-us/HT213847
Disclosure Timeline
- 2023-05-23 - Vulnerability reported to vendor
- 2023-09-29 - Coordinated public release of advisory
Credit
Anonymous