CVE-2002-2314

Mozilla 1.0 - Cookie Theft via JavaScript URL with Leading Slashes and Newline

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2002-2314. PoCs published by Andreas Sandblad.

AI-analyzed exploit summary This exploit leverages a vulnerability in Mozilla browsers where a crafted javascript: URL can bypass domain restrictions to access cookies from arbitrary domains. The PoC demonstrates stealing a Google cookie by embedding malicious JavaScript in an iframe.

Description

Mozilla 1.0 allows remote attackers to steal cookies from other domains via a javascript: URL with a leading "//" and ending in a newline, which causes the host/path check to fail.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Andreas Sandblad · textremotemultiple
https://www.exploit-db.com/exploits/21638

This exploit leverages a vulnerability in Mozilla browsers where a crafted javascript: URL can bypass domain restrictions to access cookies from arbitrary domains. The PoC demonstrates stealing a Google cookie by embedding malicious JavaScript in an iframe.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: Mozilla Browser (versions affected in 2002)
No auth needed
Prerequisites: Victim must have a session cookie for the targeted domain (e.g., Google) · Victim must visit a malicious page hosting the exploit
devstral-2 · analyzed Feb 18, 2026 Full analysis →

References (7)

Core 7
Core References
Exploit, Patch vdb-entry x_refsource_xf
http://www.iss.net/security_center/static/9656.php
Various Sources mailing-list x_refsource_bugtraq
http://cert.uni-stuttgart.de/archive/bugtraq/2002/09/msg00230.html
Exploit mailing-list x_refsource_bugtraq
http://seclists.org/bugtraq/2002/Jul/0260.html
Various Sources vendor-advisory x_refsource_mandrake
http://www.mandrakesoft.com/security/advisories?name=MDKSA-2002:074
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/5293

Scores

EPSS 0.0854
EPSS Percentile 94.4%

Details

CWE
CWE-20
Status published
Products (1)
mozilla/mozilla 1.0
Published Dec 31, 2002
Tracked Since Feb 18, 2026