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-1186682026-10-28CVE-2026-1175749.12026-10-28CVE-2026-599798.32026-10-28CVE-2026-591858.52026-10-28CVE-2026-870983.12026-10-28CVE-2026-1119613.82026-10-28CVE-2026-1176065.42026-10-28CVE-2026-1176054.32026-10-28CVE-2026-1098484.22026-10-28CVE-2026-1052724.22026-10-28CVE-2026-1166728.82026-10-27CVE-2026-163074.32026-10-27CVE-2026-1175635.42026-10-27CVE-2026-1175625.32026-10-27CVE-2026-1168996.52026-10-27CVE-2026-1168987.12026-10-27CVE-2026-1168105.32026-10-27CVE-2026-22705.92026-10-26CVE-2026-1167465.32026-10-26CVE-2026-1167456.52026-10-26