Mozilla Firefox nsTreeSelection Dangling Pointer Remote Code Execution Vulnerability

July 20th, 2010

Vulnerability Details

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Mozilla Firefox. 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 XUL <tree> element's "selection" attribute. There is an integer overflow when calculating the bounds of a new selection range. When calling adjustSelection on this manged range both ranges are deleted leaving a dangling reference. A remote attacker can exploit this vulnerability to execute arbitrary code under the context of the browser.

Additional Details

Mozilla Firefox has issued an update to correct this vulnerability. More details can be found at:
http://www.mozilla.org/security/announce/2010/mfsa2010-40.html

Disclosure Timeline

  • 2010-06-09 - Vulnerability reported to vendor
  • 2010-07-20 - Coordinated public release of advisory

Credit

regenrecht

Back to Advisories