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-143105.42026-07-30CVE-2025-609317.52026-07-29CVE-2026-50606.52026-07-29CVE-2026-632424.32026-07-29CVE-2026-632413.12026-07-29CVE-2026-142245.42026-07-29CVE-2026-575108.82026-07-28CVE-2026-492588.82026-07-28CVE-2026-180282026-07-28CVE-2026-167974.32026-07-28CVE-2026-592402026-07-27CVE-2026-480525.42026-07-27CVE-2026-175704.32026-07-27CVE-2026-175315.02026-07-27CVE-2026-595467.42026-07-27CVE-2026-595397.52026-07-27CVE-2026-175277.72026-07-27CVE-2026-664126.52026-07-27CVE-2026-660132026-07-25CVE-2026-657107.12026-07-24