WebKit ContentEditable Inline Style Remote Code Execution Vulnerability

July 27th, 2011

Vulnerability Details

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Webkit as utilized by either Apple Safari, or Google's Chrome browser. 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 how the library handles implicitly defined styles. When processing a specific case for a style, the application will dispatch an event. During this dispatch, code can be executed that can be used to manipulate the DOM tree causing a type-switch. This type-switch 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:
https://support.apple.com/kb/HT4808

Disclosure Timeline

  • 2011-03-31 - Vulnerability reported to vendor
  • 2011-07-27 - Coordinated public release of advisory
  • 2020-07-30 - Advisory Updated

Credit

J23 -- http://twitter.com/HansJ23

Back to Advisories