SkipNavigation
US-CERT
American Flag
  Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information


 
 View Notes By
  Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

Vulnerability Note VU#783400

Mozilla Firefox URI filtering vulnerability

Overview

Mozilla Firefox does not filter input when sending certain URIs to registered protocol handlers. This may allow a remote, authenticated attacker to use Firefox as a vector for executing commands on a vulnerable system.

I. Description

A Uniform Resource Identifier (URI) is a string of characters that can be used to identify a location, resource, or protocol. Mozilla Firefox will rely on Microsoft Windows to determine the appropriate protocol handler for certain URIs that it does not handle internally.

Firefox does not filter data passed to certain URI protocol handlers. This allows Firefox to be used as an attack vector for vulnerabilities in other applications. For example, Firefox can be used as an attack vector for the vulnerability in how Microsoft Windows itself determines the appropriate protocol handler [VU#403150]. Public exploit code for this vulnerability exists, which uses mailto, news, nntp, snews, and telnet URI handlers.

Note this vulnerability is only present in the Windows version of Firefox.

II. Impact

A remote, unauthenticated attacker may be able to execute arbitrary commands, using Firefox as an attack vector.

III. Solution

Mozilla has addressed this issue in Firefox 2.0.0.6.


Workarounds for users

Using the about:config interface, setting the following options to true will make Firefox display a prompt before sending a URI to an external handler.

    network.protocol-handler.warn-external-default
    network.protocol-handler.warn-external.mailto
    network.protocol-handler.warn-external.news
    network.protocol-handler.warn-external.nntp
    network.protocol-handler.warn-external.snews

Workarounds for administrators

Blocking mailto:%00, nntp:%00, news:%00, snews:%00, telnet:%00 strings inside of HTML pages or other network streams using an application layer firewall or IPS may mitigate this vulnerability. See the xs-sniper blog for more information about known vulnerable URIs. Please note that these filters may only work for the public exploit code that is currently available. Other variations of the exploit code can bypass these restrictions.

Systems Affected

VendorStatusDate NotifiedDate Updated
MozillaVulnerable26-Jul-2007

References

http://www.kb.cert.org/vuls/id/403150
http://en-us.www.mozilla.com/en-US/firefox/2.0.0.6/releasenotes/
https://bugzilla.mozilla.org/show_bug.cgi?id=389106
https://bugzilla.mozilla.org/show_bug.cgi?id=389580
http://xs-sniper.com/blog/2007/07/24/remote-command-execution-in-firefox-2005/
http://xs-sniper.com/blog/remote-command-exec-firefox-2005/
http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries
http://support.microsoft.com/kb/224816
http://en.wikipedia.org/wiki/Uniform_Resource_Identifier
http://secunia.com/advisories/26201/
http://www.w3schools.com/tags/ref_urlencode.asp

Credit

This vulnerability was disclosed by Billy (BK) Rios.

This document was written by Ryan Giobbi, Jeff Gennari, and Will Dormann..

Other Information

Date Public:2007-07-25
Date First Published:2007-07-26
Date Last Updated:2007-07-31
CERT Advisory: 
CVE-ID(s):CVE-2007-3845
NVD-ID(s):CVE-2007-3845
US-CERT Technical Alerts: 
Metric:25.51
Document Revision:36

If you have feedback, comments, or additional information about this vulnerability, please send us email.
 

 
Page Corner Image
Produced 2007 by US-CERT, a government organization
Disclaimers and copyright information
Get Adobe Reader Get Adobe Reader