{"vuid":"VU#885753","idnumber":"885753","name":"Mozilla browsers \"location.hostname\" cross-domain vulnerability","keywords":["Firefox","authentication bypass","location.hostname","DOM property"],"overview":"Mozilla-based browsers contain a cross-domain vulnerability, which may allow an attacker to access data in other sites.","clean_desc":"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.","resolution":"Apply an update\nThis 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.","workarounds":"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.","sysaffected":"","thanks":"This vulnerability was publicly disclosed by Michal Zalewski.","author":"This document was written by Will Dormann.","public":["https://bugzilla.mozilla.org/show_bug.cgi?id=370445","http://www.mozilla.org/projects/security/components/same-origin.html","http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/domain.asp","https://addons.mozilla.org/","http://secunia.com/advisories/24175/","http://securitytracker.com/alerts/2007/Feb/1017654.html","http://www.securityfocus.com/bid/22566","http://www.mozilla.org/security/announce/2007/mfsa2007-07.html","http://secunia.com/advisories/24238/","http://secunia.com/advisories/24287/","http://secunia.com/advisories/24205/","http://secunia.com/advisories/24290/","http://secunia.com/advisories/24320/","http://secunia.com/advisories/24328/","http://secunia.com/advisories/24293/","http://secunia.com/advisories/24327/","http://secunia.com/advisories/24289/","http://secunia.com/advisories/24343/","http://secunia.com/advisories/24333/","http://secunia.com/advisories/24393/","http://secunia.com/advisories/24352/","http://www.ciac.org/ciac/bulletins/r-164.shtml","http://secunia.com/advisories/24384/","http://secunia.com/advisories/24455/","http://secunia.com/advisories/24457/","http://www.securityfocus.com/bid/22566"],"cveids":["CVE-2007-0981"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2007-02-15T12:37:38Z","publicdate":"2007-02-14T00:00:00Z","datefirstpublished":"2007-02-15T19:38:56Z","dateupdated":"2007-03-09T15:41:04Z","revision":54,"vrda_d1_directreport":"0","vrda_d1_population":"3","vrda_d1_impact":"3","cam_widelyknown":"20","cam_exploitation":"0","cam_internetinfrastructure":"6","cam_population":"8","cam_impact":"17","cam_easeofexploitation":"6","cam_attackeraccessrequired":"17","cam_scorecurrent":"6.7626","cam_scorecurrentwidelyknown":"6.7626","cam_scorecurrentwidelyknownexploited":"11.9646","ipprotocol":"","cvss_accessvector":"","cvss_accesscomplexity":"","cvss_authentication":null,"cvss_confidentialityimpact":"","cvss_integrityimpact":"","cvss_availabilityimpact":"","cvss_exploitablity":null,"cvss_remediationlevel":"","cvss_reportconfidence":"","cvss_collateraldamagepotential":"","cvss_targetdistribution":"","cvss_securityrequirementscr":"","cvss_securityrequirementsir":"","cvss_securityrequirementsar":"","cvss_basescore":"","cvss_basevector":"","cvss_temporalscore":"","cvss_environmentalscore":"","cvss_environmentalvector":"","metric":6.7626,"vulnote":null}