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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

2084 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-2022-39910 SAMSUNG Pass 安全漏洞 — Samsung Pass 3.9 Low2022-12-08
CVE-2022-39915 SAMSUNG Mobile devices 安全漏洞 — Samsung Calendar 3.3 Low2022-12-08
CVE-2022-35843 Fortinet FortiOS授权问题漏洞 — FortiOS 7.7 High2022-12-06
CVE-2022-41970 Nextcloud Server's disabled download shares still allow download through preview images — security-advisories 2.6 Low2022-12-01
CVE-2022-4229 SourceCodester Book Store Management System index.php access control — Book Store Management System 7.3 High2022-11-30
CVE-2022-38377 Fortinet FortiAnalyzer和FortiManager 安全漏洞 — FortiManager 4.1 Medium2022-11-25
CVE-2022-4087 iPXE TLS tls.c tls_new_ciphertext information exposure — iPXE 2.6 Low2022-11-21
CVE-2022-41135 WordPress Modula plugin <= 2.6.9 - Unauth. Plugin Settings Change vulnerability — Modula Image Gallery (WordPress plugin) 6.5 Medium2022-11-18
CVE-2022-24038 Unauthorized modification in Karmasis Informatics Infraskope SIEM+ — Infraskope SIEM+ 6.5 Medium2022-11-18
CVE-2022-24036 Unauthorized modification in Karmasis Informatics Infraskope SIEM+ — Infraskope SIEM+ 8.6 High2022-11-16
CVE-2022-20918 Cisco Firepower Management Center 授权问题漏洞 — Cisco Firepower Management Center 7.5 High2022-11-10
CVE-2022-25932 InHand Networks InRouter302 访问控制错误漏洞 — InRouter302 9.8 -2022-11-09
CVE-2022-39884 SAMSUNG Mobile devices 安全漏洞 — Samsung Mobile Devices 4.3 Medium2022-11-09
CVE-2022-39887 SAMSUNG Mobile devices 安全漏洞 — Samsung Mobile Devices 4.3 Medium2022-11-09
CVE-2022-39889 SAMSUNG Galaxy Watch4 Plugin 安全漏洞 — GalaxyWatch4Plugin 4.0 Medium2022-11-09
CVE-2022-39370 Improper access to debug panel in GLPI — glpi 4.3 Medium2022-11-03
CVE-2022-44622 JetBrains TeamCity 安全漏洞 — TeamCity 2.7 Low2022-11-03
CVE-2022-3780 Devolutions Remote Desktop Manager 安全漏洞 — Remote Desktop Manager 7.5 -2022-11-01
CVE-2022-27805 Abode Iota 访问控制错误漏洞 — iota All-In-One Security Kit 9.8 -2022-10-25
CVE-2021-26732 spx_restservice First_network_func Broken Access Control — IAC-AST2500A 6.5 Medium2022-10-24
CVE-2021-26733 spx_restservice FirstReset_handler_func Broken Access Control — IAC-AST2500A 5.3 Medium2022-10-24
CVE-2021-44467 spx_restservice KillDupUsr_func Broken Access Control — IAC-AST2500A 5.3 Medium2022-10-24
CVE-2021-44776 spx_restservice SubNet_handler_func Broken Access Control — IAC-AST2500A 6.5 Medium2022-10-24
CVE-2020-8973 ZGR TPS200 NG Improper access control — ZGR TPS200 NG 9.3 Critical2022-10-17
CVE-2022-3382 HIWIN Robot System Software 安全漏洞 — HIWIN Robot System Software 7.5 High2022-10-17
CVE-2022-2052 TRUMPF TruTops default user accounts vulnerability — TruTops Monitor 9.8 Critical2022-10-17
CVE-2022-38743 Rockwell Automation Factory Talk VantagePoint 安全漏洞 — FactoryTalk VantagePoint 8.8 -2022-10-17
CVE-2022-35689 Adobe Commerce Improper Access Control Security feature bypass — Magento Commerce 5.3 Medium2022-10-14
CVE-2022-28761 Zoom On-Premise Deployments: Improper Access Control — Zoom On-Premise Meeting Connector MMR 6.5 Medium2022-10-14
CVE-2022-28759 Zoom On-Premise Deployments: Improper Access Control — Zoom On-Premise Meeting Connector MMR 8.2 High2022-10-14

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