Advisory Details

November 23rd, 2010

Apple Webkit WholeText Integer Overflow Remote Code Execution Vulnerability

ZDI-10-257
ZDI-CAN-874

CVE ID CVE-2010-3812
CVSS SCORE 9, (AV:N/AC:L/Au:N/C:P/I:P/A:C)
AFFECTED VENDORS Apple
AFFECTED PRODUCTS WebKit
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Apple Webkit. 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 wholeText method of the Text element. When calculating the total size of all the text containing it, the application will wrap a 32-bit integer. The application will use this in an allocation and then later use a different value for populating the buffer. This can lead to code execution under the context of the application.

ADDITIONAL DETAILS

iOS 4.2: http://support.apple.com/kb/HT4456


DISCLOSURE TIMELINE
  • 2010-08-12 - Vulnerability reported to vendor
  • 2010-11-23 - Coordinated public release of advisory
CREDIT J23 (http://twitter.com/HansJ23)
BACK TO ADVISORIES