Apple iPhone Webkit Library Javascript Array sort Method Remote Code Execution Vulnerability

March 2nd, 2011

Vulnerability Details

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Apple's iPhone Webkit library. 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 way the library implements the .sort function for an array. The library will trust the implementation of a particular method which when executed can be used to manipulate elements out from underneath it. This can lead to code execution under the context of the application.

Additional Details

Apple has issued an update to correct this vulnerability. More details can be found at:
http://support.apple.com/kb/HT4554

Disclosure Timeline

  • 2010-09-29 - Vulnerability reported to vendor
  • 2011-03-02 - Coordinated public release of advisory

Credit

Anonymous

Back to Advisories