CWE•Base•Incomplete•20 recent CVEs
CWE-639Authorization Bypass Through User-Controlled Key
Description
The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.
[object Object]
Common consequences
- Access Control→Bypass Protection MechanismAccess control checks for specific user data or functionality can be bypassed.
- Access Control→Gain Privileges or Assume IdentityHorizontal escalation of privilege is possible (one user can view/modify information of another user).
- Access Control→Gain Privileges or Assume IdentityVertical escalation of privilege is possible if the user-controlled key is actually a flag that indicates administrator status, allowing the attacker to gain administrative access.
Potential mitigations
- Architecture and DesignFor each and every data access, ensure that the user has sufficient privilege to access the record that is being requested.
- Architecture and Design,ImplementationMake sure that the key that is used in the lookup of a specific user's record is not controllable externally by the user or that any tampering can be detected.
- Architecture and DesignUse encryption in order to make it more difficult to guess other legitimate values of the key or associate a digital signature with the key so that the server can verify that there has been no tampering.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-905216.32026-09-13CVE-2026-905175.32026-09-13CVE-2026-889124.22026-09-13CVE-2026-905524.32026-09-12CVE-2026-905425.42026-09-12CVE-2026-905342026-09-12CVE-2026-878945.32026-09-12CVE-2026-840252.22026-09-12CVE-2026-828512.72026-09-12CVE-2026-777057.22026-09-12CVE-2026-542586.52026-09-11CVE-2026-494648.12026-09-11CVE-2026-819162026-09-11CVE-2026-819152026-09-11CVE-2026-621405.32026-09-11CVE-2026-621344.32026-09-11CVE-2026-621134.32026-09-11CVE-2026-892644.32026-09-11CVE-2026-892627.52026-09-11CVE-2026-892575.42026-09-11