Skip to content

CWE-302: Authentication Bypass by Assumed-Immutable Data

Base

The authentication scheme or implementation uses key data elements that are assumed to be immutable, but can be controlled or modified by the attacker.

Consequences

  • Access Control: Bypass Protection Mechanism

How to prevent it

  • Architecture and Design, Operation, Implementation: Implement proper protection for immutable data (e.g. environment variable, hidden form fields, etc.)

Recent advisories

All advisories for CWE-302

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor