{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/3136?format=json","vulnerability_id":"VCID-f2kp-75dy-juep","summary":"Michal Zalewski demonstrated that setting location.hostname\nto a value with embedded null characters can confuse the browsers domain\nchecks. Setting the value triggers a load, but the networking software reads\nthe hostname only up to the null character while other checks for \"parent\ndomain\" start at the right and so can have a completely different idea of what\nthe current host is.This cannot be used for a direct same-origin violation to perform cross-site\nscripting: those checks are performed on the complete hostname including\nthe nulls. However, other mechanisms rely on matching parent domains and those\ncan be fooled by this trick. For example, this flaw allows a malicious page\nto set domain cookies for any arbitrary site, which might be useful in a\nsession-fixation attack. This also allows setting document.domain to any\narbitrary value which could be used to perform a cross-site scripting\nattack against any page which also sets document.domain.","aliases":[{"alias":"CVE-2007-0981"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/1265?format=json","purl":"pkg:mozilla/SeaMonkey@1.0.8","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:mozilla/SeaMonkey@1.0.8"}],"affected_packages":[],"references":[{"reference_url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0981","reference_id":"CVE-2007-0981","reference_type":"","scores":[],"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0981"},{"reference_url":"https://www.mozilla.org/en-US/security/advisories/mfsa2007-07","reference_id":"mfsa2007-07","reference_type":"","scores":[{"value":"high","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://www.mozilla.org/en-US/security/advisories/mfsa2007-07"}],"weaknesses":[],"exploits":[],"severity_range_score":"7.0 - 8.9","exploitability":null,"weighted_severity":null,"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-f2kp-75dy-juep"}