Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-315 (在Cookie中的明文存储) — Vulnerability Class 6

6 vulnerabilities classified as CWE-315 (在Cookie中的明文存储). AI Chinese analysis included.

CWE-315 represents a critical data exposure weakness where applications store sensitive information in cleartext within HTTP cookies. This vulnerability allows attackers to easily intercept and read confidential data, such as session tokens or personal identifiers, using widely available browser developer tools or network sniffers. Even if the data appears encoded, attackers can often identify the encoding scheme and decode it to reveal the original content. To mitigate this risk, developers must avoid storing any sensitive data in cookies altogether. If session management is required, they should use secure, HttpOnly, and SameSite cookie attributes to restrict access and transmission. Additionally, implementing robust server-side session management ensures that sensitive state information remains on the server, significantly reducing the attack surface for client-side data theft.

MITRE CWE Description
The product stores sensitive information in cleartext in a cookie. 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.
Common Consequences (1)
ConfidentialityRead Application Data
Examples (1)
The following code excerpt stores a plaintext user account ID in a browser cookie.
response.addCookie( new Cookie("userAccountID", acctID) );
Bad · Java

Vulnerabilities classified as CWE-315 (在Cookie中的明文存储) represent 6 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.