Lucene search

K
certMichal ZalewskiVU:885753
HistoryFeb 15, 2007 - 12:00 a.m.

Mozilla browsers "location.hostname" cross-domain vulnerability

2007-02-1500:00:00
Michal Zalewski
www.kb.cert.org
19

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.967 High

EPSS

Percentile

99.6%

Overview

Mozilla-based browsers contain a cross-domain vulnerability, which may allow an attacker to access data in other sites.

Description

Mozilla uses a same origin security model to maintain separation between browser frames from different sources. This model is designed to prevent code in one domain from accessing data in a different domain. From the same origin policy:

_Mozilla considers two pages to have the same origin if the protocol, port (if given), and host are the same for both pages. _
Mozilla fails to properly handle location.hostname parameters that have embedded null characters, which can cause a cross-domain violation. Note that this only affects web sites that have specify the document.domain setting for relaxed same origin protection. This vulnerability appears to affect all Mozilla-based browsers, including Firefox.


Impact

By convincing a victim to view an HTML document (web page), an attacker could modify data in another domain. For example, web page script in one domain could set a cookie for a web page in another domain.


Solution

Apply an update
This vulnerability is addressed in Firefox 2.0.0.2, Firefox 1.5.0.10, and SeaMonkey 1.0.8, as specified in MFSA 2007-07.


Disable the ability to set**location.hostname**

This vulnerability can be mitigated by disabling the ability for a web site to set the location.hostname property. This can be accomplished by adding the following line to the user.js file:

user_pref("capability.policy.default.Location.hostname.set", "noAccess");Disable JavaScript

Disable JavaScript in your browser’s preferences. Instructions for disabling JavaScript can be found in the Securing Your Web Browser document and the Malicious Web Scripts FAQ. Some Mozilla add-ons can simplify the ability to enable or disable JavaScript, or set up site-specific rules for doing so.

Vendor Information

885753

Filter by status: All Affected Not Affected Unknown

Filter by content: __ Additional information available

__ Sort by: Status Alphabetical

Expand all

Javascript is disabled. Click here to view vendors.

Mozilla Affected

Notified: February 15, 2007 Updated: February 15, 2007

Status

Affected

Vendor Statement

We have not received a statement from the vendor.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

This vulnerability was publicly disclosed by Michal Zalewski.

This document was written by Will Dormann.

Other Information

CVE IDs: CVE-2007-0981
Severity Metric: 6.76 Date Public:

References

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.967 High

EPSS

Percentile

99.6%