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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-302 (使用假设不可变数据进行的认证绕过) — Vulnerability Class 38

38 vulnerabilities classified as CWE-302 (使用假设不可变数据进行的认证绕过). AI Chinese analysis included.

CWE-302 represents a critical authentication weakness where systems rely on data elements presumed to be immutable for security decisions, yet these elements remain vulnerable to attacker manipulation. This flaw typically arises when developers trust inputs, such as HTTP headers or client-side tokens, without verifying their integrity or origin. Attackers exploit this by modifying these assumed-constant values to bypass access controls, impersonate users, or escalate privileges, effectively circumventing the intended authentication mechanism. To mitigate this risk, developers must implement robust validation strategies that treat all external inputs as potentially hostile. This includes verifying data integrity through cryptographic signatures, enforcing strict server-side state management, and avoiding reliance on client-controlled variables for critical security logic. By ensuring that authentication data cannot be altered by the user, organizations can prevent unauthorized access and maintain the integrity of their security architecture.

MITRE CWE Description
The authentication scheme or implementation uses key data elements that are assumed to be immutable, but can be controlled or modified by the attacker.
Common Consequences (1)
Access Control Bypass Protection Mechanism
Mitigations (1)
Architecture and Design, Operation, Implementation Implement proper protection for immutable data (e.g. environment variable, hidden form fields, etc.)
Examples (1)
In the following example, an "authenticated" cookie is used to determine whether or not a user should be granted access to a system.
boolean authenticated = new Boolean(getCookieValue("authenticated")).booleanValue(); if (authenticated) { ... }
Bad · Java

Vulnerabilities classified as CWE-302 (使用假设不可变数据进行的认证绕过) represent 38 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.