目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CWE-639 通过用户控制密钥绕过授权机制 类漏洞列表 1664

CWE-639 通过用户控制密钥绕过授权机制 类弱点 1664 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-639 属于授权绕过漏洞,指系统依赖用户可控的键值检索数据时,未验证该键值是否属于当前请求用户。攻击者通过篡改标识符(如ID),直接访问其他用户的数据记录。开发者应避免使用直接暴露的键值,转而采用间接引用或会话上下文验证,确保每次数据访问前严格校验资源归属权,从而防止越权访问。

MITRE CWE 官方描述
CWE:CWE-639 通过用户可控密钥绕过授权(Authorization Bypass Through User-Controlled Key) 英文:系统的授权功能未能阻止用户通过修改标识数据的密钥值,从而获取其他用户的数据或记录。 系统中基于某个受用户控制的密钥值来检索用户记录。该密钥通常用于标识系统中存储的与用户相关的记录,并用于查找该记录以呈现给用户。攻击者很可能需要是系统中的已认证用户。然而,授权过程未能正确检查数据访问操作,以确保执行该操作的已认证用户拥有执行所请求数据访问的足够权限,从而绕过了系统中存在的任何其他授权检查。例如,攻击者可以查看检索特定用户数据的位置(例如搜索界面),并确定正在查找的项目的密钥是否可外部控制。该密钥可能是 HTML 表单中的隐藏字段,也可能作为 URL 参数或未加密的 Cookie 变量传递,在这些情况下,都有可能篡改密钥值。这种弱点的一种表现形式是,当系统使用顺序生成或易于猜测的会话 ID(Session IDs)时,允许一个用户轻松切换到另一个用户的会话并读取/修改其数据。
常见影响 (3)
Access Control Bypass Protection Mechanism
Access control checks for specific user data or functionality can be bypassed.
Access Control Gain Privileges or Assume Identity
Horizontal escalation of privilege is possible (one user can view/modify information of another user).
Access Control Gain 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.
缓解措施 (3)
Architecture and Design For each and every data access, ensure that the user has sufficient privilege to access the record that is being requested.
Architecture and Design, Implementation Make 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 Design Use 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.
代码示例 (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 ID 标题 CVSS 风险等级 Published
CVE-2022-0613 urijs 安全漏洞 — medialize/uri.js 7.4 - 2022-02-16
CVE-2022-0512 NPM url-parse 安全漏洞 — unshiftio/url-parse 9.1 - 2022-02-14
CVE-2021-25096 Wordpress Plugin IP2Location Country Blocker 访问控制错误漏洞 — IP2Location Country Blocker 6.5 - 2022-02-07
CVE-2022-0266 livehelperchat 安全漏洞 — livehelperchat/livehelperchat 6.8 - 2022-01-19
CVE-2021-3852 Weseek growi 安全漏洞 — weseek/growi 8.1 - 2022-01-12
CVE-2021-44160 Carinal Tien Hospital Health Report System 安全漏洞 — Health Report System 7.3 High 2021-12-29
CVE-2021-24739 WordPress 插件授权问题漏洞 — Logo Carousel – Logo Slider, Logo Showcase, and Clients Logo Gallery 8.1 - 2021-12-21
CVE-2021-43820 Seafile 安全漏洞 — seafile-server 7.4 High 2021-12-14
CVE-2021-3964 elgg 安全漏洞 — elgg/elgg 8.1 - 2021-12-01
CVE-2021-36329 Dell Emc Streaming Data Platform 安全漏洞 — Dell EMC Streaming Data Platform 6.5 Medium 2021-11-30
CVE-2021-24892 WordPress 安全漏洞 — Advanced Forms Ppro 8.8 - 2021-11-23
CVE-2021-22967 PortlandLabs Concrete CMS 安全漏洞 — https://github.com/concrete5/concrete5 7.5 - 2021-11-19
CVE-2021-22951 PortlandLabs Concrete CMS 安全漏洞 — https://github.com/concrete5/concrete5 7.5 - 2021-11-19
CVE-2021-24840 WordPress 插件安全漏洞 — Squaretype 5.3 - 2021-11-08
CVE-2021-39225 Nextcloud 安全漏洞 — security-advisories 8.1 High 2021-10-25
CVE-2021-40355 Teamcenter 代码问题漏洞 — Teamcenter V12.4 8.8 - 2021-09-14
CVE-2021-37184 Siemens Industrial Edge Management 授权问题漏洞 — Industrial Edge Management 9.1 - 2021-09-14
CVE-2021-37628 Nextcloud 信息泄露漏洞 — security-advisories 7.5 High 2021-09-07
CVE-2021-37630 Nextcloud 安全漏洞 — security-advisories 6.5 Medium 2021-09-07
CVE-2021-37631 Nextcloud安全漏洞 — security-advisories 6.5 Medium 2021-09-07
CVE-2021-24562 WordPress 插件跨站脚本漏洞 — LMS by LifterLMS – Online Course, Membership & Learning Management System Plugin for WordPress 7.5 - 2021-08-23
CVE-2021-36801 Akaunting 安全漏洞 — Akaunting 8.1 High 2021-08-04
CVE-2021-24473 WordPress 插件访问控制错误漏洞 — User Profile Picture 5.4 - 2021-08-02
CVE-2021-32744 Collabora Online 安全漏洞 — online 9.8 Critical 2021-07-21
CVE-2021-24374 WordPress plugin Jetpack Carousel module of the JetPack 安全漏洞 — Jetpack – WP Security, Backup, Speed, & Growth 5.3 - 2021-06-21
CVE-2021-32654 Nextcloud 安全漏洞 — security-advisories 8.1 High 2021-06-01
CVE-2021-21324 GLPI 安全漏洞 — glpi 6.8 Medium 2021-03-08
CVE-2020-8297 Nextcloud Deck 安全漏洞 — Nextcloud Deck 4.3 - 2021-02-23
CVE-2021-21022 Adobe Magento 授权问题漏洞 — Magento Commerce 5.3 - 2021-02-11
CVE-2021-21012 Adobe Bridge 缓冲区错误漏洞 — Magento Commerce 5.3 - 2021-01-13

CWE-639(通过用户控制密钥绕过授权机制) 是常见的弱点类别,本平台收录该类弱点关联的 1664 条 CVE 漏洞。