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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-639 (通过用户控制密钥绕过授权机制) — Vulnerability Class 1073

1073 vulnerabilities classified as CWE-639 (通过用户控制密钥绕过授权机制). AI Chinese analysis included.

CWE-639 represents an authorization bypass weakness where systems fail to validate that a user is permitted to access a resource identified by a user-controlled key. Attackers typically exploit this by manipulating identifiers, such as changing a numeric user ID in a URL or API parameter, to retrieve or modify another user’s private data. This insecure direct object reference allows unauthorized access without requiring authentication bypasses. Developers prevent this vulnerability by implementing robust server-side authorization checks that verify the requesting user’s permissions against the requested resource, rather than trusting client-supplied identifiers. Additionally, using indirect references or opaque tokens instead of predictable, sequential keys can mitigate the risk of enumeration and unauthorized access attempts.

MITRE CWE 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. Retrieval of a user record occurs in the system based on some key value that is under user control. The key would typically identify a user-related record stored in the system and would be used to lookup that record for presentation to the user. It is likely that an attacker would have to be an authenticated user in the system. However, the authorization process would not properly check the data access operation to ensure that the authenticated user performing the operation has sufficient entitlements to perform the requested data access, hence bypassing any other authorization checks present in the system. For example, attackers can look at places where user specific data is retrieved (e.g. search screens) and determine whether the key for the item being looked up is controllable externally. The key may be a hidden field in the HTML form field, might be passed as a URL parameter or as an unencrypted cookie variable, then in each of these cases it will be possible to tamper with the key value. One manifestation of this weakness is when a system uses sequential or otherwise easily-guessable session IDs that would allow one user to easily switch to another user's session and read/modify their data.
Common Consequences (3)
Access ControlBypass Protection Mechanism
Access control checks for specific user data or functionality can be bypassed.
Access ControlGain Privileges or Assume Identity
Horizontal escalation of privilege is possible (one user can view/modify information of another user).
Access ControlGain Privileges or Assume Identity
Vertical 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.
Mitigations (3)
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.
Examples (1)
The following code uses a parameterized statement, which escapes metacharacters and prevents SQL injection vulnerabilities, to construct and execute a SQL query that searches for an invoice matching the specified identifier [1]. The identifier is selected from a list of all invoices associated with the current authenticated user.
... conn = new SqlConnection(_ConnectionString); conn.Open(); int16 id = System.Convert.ToInt16(invoiceID.Text); SqlCommand query = new SqlCommand( "SELECT * FROM invoices WHERE id = @id", conn); query.Parameters.AddWithValue("@id", id); SqlDataReader objReader = objCommand.ExecuteReader(); ...
Bad · C#
CVE IDTitleCVSSSeverityPublished
CVE-2023-3289 A BOLA vulnerability in POST /services in EasyAppointments < 1.5.0 — easyappointments 7.7 High2024-07-09
CVE-2023-3290 A BOLA vulnerability in POST /customers in EasyAppointments < 1.5.0 — easyappointments 5.0 Medium2024-07-09
CVE-2023-3286 A BOLA vulnerability in POST /secretaries in EasyAppointments < 1.5.0 — easyappointments 7.7 High2024-07-09
CVE-2023-3287 A BOLA vulnerability in POST /admins in EasyAppointments < 1.5.0 — easyappointments 9.9 Critical2024-07-09
CVE-2023-3285 A BOLA vulnerability in POST /appointments in EasyAppointments < 1.5.0 — easyappointments 7.7 High2024-07-09
CVE-2024-4341 IDOR in ExtremePacs's Extreme XDS — Extreme XDS 6.5 Medium2024-07-08
CVE-2024-39321 Traefik vulnerable to bypassing IP allow-lists via HTTP/3 early data requests in QUIC 0-RTT handshakes — traefik 7.5 High2024-07-05
CVE-2024-31898 IBM InfoSphere Information Server data modification — InfoSphere Information Server 5.4 Medium2024-06-30
CVE-2024-5942 Page and Post Clone <= 6.0 - Insecure Direct Object Reference to Authenticated (Author+) Sensitive Information Exposure — Fast Page & Post Duplicator 4.3 Medium2024-06-29
CVE-2024-1107 IDOR in Talya Informatics' Travel APPS — Travel APPS 9.8 Critical2024-06-27
CVE-2024-4874 Bricks Builder <= 1.9.8 - Insecure Direct Object Reference — Bricks Builder 4.3 Medium2024-06-22
CVE-2024-5639 User Profile Picture <= 2.6.1 - Authenticated (Author+) Insecure Direct Object Reference to Profile Picture Update — User Profile Picture 4.3 Medium2024-06-21
CVE-2024-4873 Replace Image <= 1.1.10 - Insecure Direct Object Reference — Replace Image 4.3 Medium2024-06-19
CVE-2024-37889 MyFinances Allows Unauthorized Access to Other Customer Data — MyFinances 6.5 Medium2024-06-14
CVE-2024-2472 LatePoint Plugin <= 4.9.9 - Missing Authorization and Sensitive Information Exposure via IDOR — LatePoint Plugin 9.1 Critical2024-06-14
CVE-2024-29181 @strapi/plugin-content-manager leaks data via relations via the Admin Panel — strapi 2.3 Low2024-06-12
CVE-2024-5438 Tutor LMS – eLearning and online course solution <= 2.7.1 - Authenticated (Instructor+) Insecure Direct Object Reference to Arbitrary Quiz Attempt Deletion — Tutor LMS – eLearning and online course solution 4.3 Medium2024-06-07
CVE-2024-5131 Improper Access Control in lunary-ai/lunary — lunary-ai/lunary 4.3AIMediumAI2024-06-06
CVE-2024-5128 IDOR Vulnerability in lunary-ai/lunary — lunary-ai/lunary 7.6AIHighAI2024-06-06
CVE-2024-4274 Essential Real Estate <= 4.4.2 - Insecure Direct Object Reference to Arbitrary Attachment Deletion — Essential Real Estate 4.3 Medium2024-06-04
CVE-2024-5258 Authorization Bypass Through User-Controlled Key in GitLab — GitLab 4.4 Medium2024-05-23
CVE-2024-5166 Insecure Direct Object Reference In Looker — Looker 6.5 Medium2024-05-22
CVE-2024-4154 Incorrect Synchronization in lunary-ai/lunary — lunary-ai/lunary 7.1AIHighAI2024-05-21
CVE-2024-4151 Improper Access Control in lunary-ai/lunary — lunary-ai/lunary 7.1AIHighAI2024-05-20
CVE-2024-4843 Trellix ePolicy Orchestrator 安全漏洞 — ePolicy Orchestrator 4.3 Medium2024-05-16
CVE-2024-4279 Tutor LMS – eLearning and online course solution <= 2.7.0 - Authenticated (Instructor+) Insecure Direct Object Reference to Arbitrary Course Deletion — Tutor LMS – eLearning and online course solution 6.5 Medium2024-05-16
CVE-2023-40720 Fortinet FortiVoice 安全漏洞 — FortiVoice 6.7 High2024-05-14
CVE-2024-1693 SP Project & Document Manager <= 4.70 - Authenticated (Subscriber+) Arbitrary Folder Name Update — SP Project & Document Manager 4.3 Medium2024-05-09
CVE-2024-4538 IDOR vulnerability in Janto Ticketing Software — Janto Ticketing Software 7.5 High2024-05-07
CVE-2024-4537 IDOR vulnerability in Janto Ticketing Software — Janto Ticketing Software 7.5 High2024-05-07

Vulnerabilities classified as CWE-639 (通过用户控制密钥绕过授权机制) represent 1073 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.