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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-284 (访问控制不恰当) — Vulnerability Class 2062

2062 vulnerabilities classified as CWE-284 (访问控制不恰当). AI Chinese analysis included.

CWE-284 represents a critical security weakness where software fails to properly restrict access to sensitive resources, allowing unauthorized actors to interact with data or functions they should not reach. This flaw typically arises when developers neglect to implement robust authentication or authorization checks, enabling attackers to bypass security controls through direct URL manipulation, token forgery, or privilege escalation techniques. Exploitation often leads to severe consequences, including data breaches, unauthorized system modifications, or complete service disruption. To mitigate this risk, developers must enforce strict access control policies at every layer of the application architecture. This involves implementing comprehensive identity verification, applying the principle of least privilege, and rigorously validating user permissions before granting access to any protected resource, ensuring that only authenticated and authorized users can perform specific actions.

MITRE CWE Description
The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. Access control involves the use of several protection mechanisms such as: Authentication (proving the identity of an actor) Authorization (ensuring that a given actor can access a resource), and Accountability (tracking of activities that were performed) When any mechanism is not applied or otherwise fails, attackers can compromise the security of the product by gaining privileges, reading sensitive information, executing commands, evading detection, etc. There are two distinct behaviors that can introduce access control weaknesses: Specification: incorrect privileges, permissions, ownership, etc. are explicitly specified for either the user or the resource (for example, setting a password file to be world-writable, or giving administrator capabilities to a guest user). This action could be performed by the program or the administrator. Enforcement: the mechanism contains errors that prevent it from properly enforcing the specified access control requirements (e.g., allowing the user to specify their own privileges, or allowing a syntactically-incorrect ACL to produce insecure settings). This problem occurs within the program itself, in that it does not actually enforce the intended security policy that the administrator specifies.
Common Consequences (1)
OtherVaries by Context
Mitigations (2)
Architecture and Design, OperationVery carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
Architecture and DesignCompartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separatio…
Examples (2)
This code temporarily raises the program's privileges to allow creation of a new user folder.
def makeNewUserDir(username): if invalidUsername(username): #avoid CWE-22 and CWE-78 print('Usernames cannot contain invalid characters') return False try: raisePrivileges() os.mkdir('/home/' + username) lowerPrivileges() except OSError: print('Unable to create new user directory for user:' + username) return False return True
Bad · Python
This function runs an arbitrary SQL query on a given database, returning the result of the query.
function runEmployeeQuery($dbName, $name){ mysql_select_db($dbName,$globalDbHandle) or die("Could not open Database".$dbName); //Use a prepared statement to avoid CWE-89 $preparedStatement = $globalDbHandle->prepare('SELECT * FROM employees WHERE name = :name'); $preparedStatement->execute(array(':name' => $name)); return $preparedStatement->fetchAll(); } /.../ $employeeRecord = runEmployeeQuery('EmployeeDB',$_GET['EmployeeName']);
Bad · PHP
CVE IDTitleCVSSSeverityPublished
CVE-2021-4201 Pre-authentication session hijacking — Access Management 9.6 Critical2022-02-14
CVE-2022-24924 Google Android 安全漏洞 — LiveWallpaper 2.2 Low2022-02-11
CVE-2022-24923 Google Android 安全漏洞 — SearchWidget 4.0 Medium2022-02-11
CVE-2022-23997 Samsung Wear Os 安全漏洞 — Samsung Wearable Devices 4.0 Medium2022-02-11
CVE-2022-23996 Samsung Wear Os 访问控制错误漏洞 — Samsung Wearable Devices 4.0 Medium2022-02-11
CVE-2022-23994 SAMSUNG Wear Os 安全漏洞 — Samsung Wearable Devices 3.3 Low2022-02-11
CVE-2022-23995 Samsung Wear OS 访问控制错误漏洞 — Samsung Wearable Devices 4.0 Medium2022-02-11
CVE-2022-23433 SAMSUNG Device 安全漏洞 — Reminder 4.3 Medium2022-02-11
CVE-2020-13677 Drupal 安全漏洞 — Core 5.9 -2022-02-11
CVE-2020-13676 Drupal 访问控制错误漏洞 — Core 6.5 -2022-02-11
CVE-2020-13675 Drupal 代码问题漏洞 — Core 9.1 -2022-02-11
CVE-2022-21825 Citrix Systems Workspace App 安全漏洞 — Citrix Workspace App for Linux 7.8 -2022-02-09
CVE-2022-21816 Nvidia vGPU Software 访问控制错误漏洞 — NVIDIA Virtual GPU Software and NVIDIA Cloud Gaming 5.5 Medium2022-02-07
CVE-2022-21813 Nvidia GPU Display Driver for Linux 安全漏洞 — NVIDIA GPU Display Driver 6.1 Medium2022-02-07
CVE-2021-21964 Sealevel Systems SeaConnect 370W 访问控制错误漏洞 — Sealevel 8.6 -2022-02-04
CVE-2021-21965 Sealevel Systems SeaConnect 370w 授权问题漏洞 — Sealevel 8.6 -2022-02-04
CVE-2022-0273 Improper Access Control in janeczku/calibre-web — janeczku/calibre-web 6.5 -2022-01-30
CVE-2021-40416 Reolink Rlc-410W 访问控制错误漏洞 — n/a 8.8 -2022-01-28
CVE-2021-40415 Reolink Rlc-410W 访问控制错误漏洞 — n/a 6.5 -2022-01-28
CVE-2021-40413 Reolink Rlc-410W 访问控制错误漏洞 — n/a 8.2 -2022-01-28
CVE-2021-40414 Reolink Rlc-410W 访问控制错误漏洞 — n/a 7.1 -2022-01-28
CVE-2021-40404 Reolink Rlc-410W 授权问题漏洞 — n/a 9.8 -2022-01-28
CVE-2022-0203 Improper Access Control in crater-invoice/crater — crater-invoice/crater 4.3 -2022-01-26
CVE-2022-0270 Improper header sanitization in bored-agent causes escalation of privilege — bored-agent 8.8 High2022-01-25
CVE-2021-23233 Fresenius Kabi Agilia Connect Infusion System — Agilia Link+ 7.3 High2022-01-21
CVE-2021-4016 Rapid7 Insight Agent Improper Access Control — Insight Agent 4.0 Medium2022-01-21
CVE-2021-34402 Nvidia NVIDIA Shield TV 缓冲区错误漏洞 — SHIELD TV 6.7 Medium2022-01-18
CVE-2021-34401 Nvidia NVIDIA Shield TV 访问控制错误漏洞 — SHIELD TV 7.8 High2022-01-18
CVE-2021-37864 Users can view the contents of an archived channel when access is explicitly denied by the system admin — Mattermost 2.6 Low2022-01-18
CVE-2021-28507 An issue has recently been discovered in Arista EOS where, under certain conditions, the service ACL configured for OpenConfig gNOI and OpenConfig RESTCONF might be bypassed, which results in the denied requests being forwarded to the agent. — EOS 5.5 Medium2022-01-14

Vulnerabilities classified as CWE-284 (访问控制不恰当) represent 2062 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.