SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com






Category:   Application (Web Browser)  >   Mozilla Firefox Vendors:   Mozilla.org
Mozilla Firefox onUnload Event and document.write() Race Condition May Let Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1017701
SecurityTracker URL:  http://securitytracker.com/id/1017701
CVE Reference:   CVE-2007-1092   (Links to External Site)
Updated:  May 18 2008
Original Entry Date:  Feb 26 2007
Impact:   Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  Exploit Included:  Yes  
Version(s): 1.5.0.9 and 2.0.0.1 only
Description:   A vulnerability was reported in Mozilla Firefox. A remote user may be able to cause arbitrary code to be executed on the target user's system.

A remote user can create specially crafted HTML that, when loaded by the target user, will trigger a memory corruption error and potentially execute arbitrary code on the target system. The code will run with the privileges of the target user.

A race condition between the onUnload event handler and self-modifying document.write() calls can trigger the vulnerability.

The vulnerability was introduced in Firefox 2.0.0.1 and 1.5.0.9. Earlier versions are not affected.

A demonstration exploit is available at:

http://lcamtuf.coredump.cx/ietrap/testme.html

Michal Zalewski reported this vulnerability.

The Mozilla bug report is available at:

https://bugzilla.mozilla.org/show_bug.cgi?id=371321

Impact:   A remote user can create HTML that, when loaded by the target user, will execute arbitrary code on the target user's system.
Solution:   The vendor has issued a fix (1.5.0.10, 2.0.0.2).

The Mozilla advisory is available at:

http://www.mozilla.org/security/announce/2007/mfsa2007-08.html

Vendor URL:  www.mozilla.org/security/announce/2007/mfsa2007-08.html (Links to External Site)
Cause:   Boundary error
Underlying OS:   Linux (Any), UNIX (Any), Windows (Any)

Message History:   None.


 Source Message Contents

Date:  Fri, 23 Feb 2007 02:36:44 +0100 (CET)
Subject:  [Full-disclosure] Firefox onUnload + document.write() memory

While researching my previous report on MSIE7 browser entrapment, I
noticed that Firefox is susceptible to a pretty nasty, and apparently
easily exploitable memory corruption vulnerability. When a location
transition occurs and the structure of a document is modified from within
onUnload event handler, freed memory structures are left in inconsistent
state, possibly leading to a remote compromise.

A quick test case that crashes while trying to follow partly
user-dependent corrupted pointers near valid memory regions (can be forced
to write, too):

  http://lcamtuf.coredump.cx/ietrap/testme.html

This also crashes MSIE7 with a seemingly harmless NULL pointer bug (didn't
research it - do your homework).

Firefox problem is being tracked here:
  https://bugzilla.mozilla.org/show_bug.cgi?id=371321

/mz

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

Copyright 2014, SecurityGlobal.net LLC