32104 : Mozilla Multiple Products location.hostname Null Byte URI Security Bypass
Printer | http://osvdb.org/32104 | Email This | Edit Vulnerability

Views This Week Views All Time Added to OSVDB Last Modified Modified (since 2008) Percent Complete
11 1515 over 4 years ago about 1 year ago 2 times 90%

Timeline

Disclosure Date Exploit Publish Date
2007-02-14 2007-02-14

Description

Mozilla Firefox, Mozilla SeaMonkey, and other Mozilla-based browsers contain a flaw that may allow a remote attacker to bypass security restrictions and gain knowledge of sensitive information. The issue is due to Mozilla-based browsers improperly handling writes to the 'location.hostname' DOM property. The flaw is triggered when a malicious web page writes a hostname value containing NULL characters ('\x00') to the 'location.hostname' DOM property, allowing for alteration of the 'document.domain' in order to bypass the same-origin policy for cross-frame/cross-window data access. This may allow an attacker the ability to manipulate authentication cookies for third party web pages and tamper with the way these sites are displayed or how they work, resulting in a loss of confidentiality.

Classification

Location: Remote / Network Access
Attack Type: Input Manipulation
Impact: Loss of Confidentiality
Exploit: Exploit Public
Disclosure: OSVDB Verified, Vendor Verified

Solution

Upgrade to the following product versions, as they have been reported to fix this vulnerability:
Mozilla Firefox: version 1.5.0.10 or higher
Mozilla Firefox 2: version 2.0.0.2 or higher
Mozilla SeaMonkey: version 1.0.8 or higher

It is also possible to correct the flaw by implementing the following workaround:
Deny setting location.hostname by placing the following line in your user.js file:
user_pref("capability.policy.default.Location.hostname.set", "noAccess");
If you don't have one, create one in notepad and place it in your profile directory (e.g. C:\Program Files\Mozilla Firefox\defaults\profile).

Products

Mozilla Organization
Watch-list
Firefox
Watch-list
1.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.5
1.5.0.1
1.5.0.2
1.5.0.3
1.5.0.4
1.5.0.5
1.5.0.7
1.5.0.8
1.5.0.9
1.5.0.10
2.0
2.0.0.1
2.0.0.2
0.1
0.2
0.3
0.4
0.5
0.6
0.6.1
0.7
0.7.1
0.8
0.9
0.9.1
0.9.2
0.9.3
0.10
1.5.0.6
SeaMonkey
Watch-list
1.0
1.0.1
1.0.2
1.0.3
1.0.5
1.0.6
1.0.7
1.0.8
1.1.1

References

Tools & Filters

24701 24707 24708 24735 24748 24753 24771 24774 24800 25318 25779 27118 27119 27439 27440 28021 28022 29359
3922 3927 3931 3942

Manual Testing Notes

Credit

  • Michał Zalewski - lcamtufcoredump.cx - http://lcamtuf.coredump.cx/

CVSSv2 Score

CVSSv2 Base Score = 7.5
Source: nvd.nist.gov | Generated: 2007-02-19 | Disagree?

Access_vector_2 Access_complexity_2 Authentication_2 Confidentiality_impact_1 Integrity_impact_1 Availability_impact_1

Blogs

This section lists the latest news and blogs found via the daylife API (and for older items, the technorati API), which mention or otherwise discuss this vulnerability.

None found at this time

Comments

No Comments.

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2012 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use