copyright | disclaimer | privacy | contact  
Australia's Leading Computer Emergency Response Team
 
Search this site

 
On this site

 > HOME
 > About AusCERT
 > Membership
 > Contact Us
 > PKI Services
 > Training
 > Publications
 > Sec. Bulletins
 > Conferences
 > News & Media
 > Services
 > Web Log
 > Site Map
 > Site Help
 > Member login





 

ESB-2007.0404 -- [Win][UNIX/Linux] -- Mozilla Firefox allows cross-domain iframe access via JavaScript

Date: 12 June 2007
References: ESB-2007.0550  ESB-2007.1030  

Click here for printable version
Click here for PGP verifiable version
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                    ESB-2007.0404 -- [Win][UNIX/Linux]
     Mozilla Firefox allows cross-domain iframe access via JavaScript
                               12 June 2007

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:              Firefox 2.0.0.4 and prior
Publisher:            US-CERT
Operating System:     Windows
                      UNIX variants (UNIX, Linux, OSX)
Impact:               Cross-site Scripting
                      Access Privileged Data
Access:               Remote/Unauthenticated
CVE Names:            CVE-2007-3089

Original Bulletin:    http://www.kb.cert.org/vuls/id/143297
                      http://marc.info/?l=bugtraq&m=118097185402772&w=2

- --------------------------BEGIN INCLUDED TEXT--------------------

US-CERT Vulnerability Note VU#143297
Mozilla Firefox allows cross-domain iframe access via JavaScript

Overview

	Mozilla Firefox allows cross-domain access to an iframe. This
	vulnerability could allow an attacker to interact with a web site in
	a different domain. The attacker could read content and cookies,
	capture keystrokes, and modify content.

I. Description
	
	An iframe is an HTML element which allows an HTML document to be
	embedded inside a master HTML document.

	The Mozilla same origin policy says:

	   The same origin policy prevents document or script loaded from
	   one origin from getting or setting properties of a document
	   from a different origin. The policy dates from Netscape Navigator 2.0.

	   Mozilla considers two pages to have the same origin if the
	   protocol, port (if given), and host are the same for both pages.

	Firefox does not properly enforce the same origin policy to web pages
	that use IFrames.

	From Mozilla Bugzilla Bug ID 382686:

	   The problem you fixed there is that document.write() could be
	   used to overwrite frames that originate from Internet-based
	   SRC= pointing to non-same-domain site. This is fixed and throws
	   a security exception.

	   Unfortunately, the check implemented means that about:blank
	   frames can be overwritten freely; and unfortunately, *all*
	   frames, even with Internet SRC= specified, will be vulnerable
	   to a race condition while the document loads.

	Note that some websites that allow users to supply content may allow
	iframes to be included.

II. Impact

	An attacker may be able to obtain sensitive data from a user, modify
	the appearance of a webpage or track keystrokes. Depending on the
	nature of the web site the user was visiting, this data may include
	passwords, credit card numbers, and any arbitrary information provided
	by the user.

III. Solution

	We are currently unaware of a practical solution to this problem.

	Workarounds for users

	    * Disable JavaScript
	    * Use the NoScript Firefox Add-on to whitelist what sites can run
	      JavaScript. https://addons.mozilla.org/en-US/firefox/addon/722
	    * Type in URLs directly in the web browser's address bar, or use
	      bookmarks to navigate to websites
	    * See the Cross-Site Scripting Vulnerabilities document for general
	      information. http://www.cert.org/archive/pdf/cross_site_scripting.pdf

	Workarounds for administrators

	    * Do not allow user submitted content to include JavaScript.
	    * Do not allow users to submit content to a shared resource that
	      includes iframes. A shared resource may include the comments
	      section of a blog or a web forum.
	    * Monitor the content submitted by third parties for malicious
	      JavaScript or iframes.

Systems Affected

	Vendor   Status      Date Updated
	Mozilla  Vulnerable  8-Jun-2007

References

	http://archives.neohapsis.com/archives/fulldisclosure/2007-06/0026.html
	https://bugzilla.mozilla.org/show_bug.cgi?id=382686
	http://www.w3schools.com/tags/tag_iframe.asp
	http://www.w3.org/TR/html401/present/frames.html#h-16.5
	https://addons.mozilla.org/en-US/firefox/addon/722
	http://www.mozilla.org/projects/security/components/same-origin.html
	http://www.cert.org/archive/pdf/cross_site_scripting.pdf
	http://www.stopbadware.org/home/security#preventing
	http://www.antiphishing.org/consumer_recs.html

Credit

	This vulnerability was reported by Michal Zalewski on the
	Full-Disclosure mailing list.

	This document was written by Ryan Giobbi.

Other Information

	Date Public	06/04/2007
	Date First Published	06/08/2007 01:28:14 PM
	Date Last Updated	06/11/2007
	CERT Advisory	 
	CVE Name	 
	Metric	8.51
	Document Revision	22

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================

-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBRm3+Eyh9+71yA2DNAQK6XgQAl26YblE5BABrTJd58ENxK7O7R+kojfIt
DZ6lsWcELmrlTKPXnF/dOFBFM8czv496DhpyY92UAZEEtev66/R32iPVtzKrqtZy
+zrXE7WRM9GPtRZ6slHWvuzDmNSqnHa+matJAdlI70kFmvaemqMwXVJGGQYt5R8I
OSCWs5JMsoA=
=YzXN
-----END PGP SIGNATURE-----