CWE-315: Cleartext Storage of Sensitive Information in a Cookie
Description
The product stores sensitive information in cleartext in a cookie.
Submission Date :
July 19, 2006, midnight
Modification Date :
2023-06-29 00:00:00+00:00
Organization :
MITRE
Extended Description
Attackers can use widely-available tools to view the cookie and read the sensitive information. Even if the information is encoded in a way that is not human-readable, certain techniques could determine which encoding is being used, then decode the information.
Example - 1
The following code excerpt stores a plaintext user account ID in a browser cookie. Because the account ID is in plaintext, the user's account information is exposed if their computer is compromised by an attacker.response.addCookie( new Cookie("userAccountID", acctID);
Related Weaknesses
This table shows the weaknesses and high level categories that are related to this weakness. These relationships are defined to give an overview of the different insight to similar items that may exist at higher and lower levels of abstraction.
Visit http://cwe.mitre.org/ for more details.