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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-862 (授权机制缺失) — Vulnerability Class 5581

5581 vulnerabilities classified as CWE-862 (授权机制缺失). AI Chinese analysis included.

CWE-862 represents a critical access control weakness where software fails to verify an actor’s permissions before granting access to resources or executing actions. Attackers typically exploit this flaw by manipulating requests to access sensitive data or perform privileged operations that should be restricted to authorized users. Without proper checks, malicious actors can bypass authentication mechanisms entirely, leading to unauthorized data exposure, modification, or system compromise. Developers mitigate this risk by implementing robust authorization logic at every entry point, ensuring that identity verification is coupled with strict permission validation. This involves checking user roles and access rights against the requested resource before processing any request. By integrating these checks into the application’s core architecture and utilizing established frameworks, teams can prevent unauthorized access and maintain the integrity of their systems against exploitation.

MITRE CWE Description
The product does not perform an authorization check when an actor attempts to access a resource or perform an action.
Common Consequences (4)
ConfidentialityRead Application Data, Read Files or Directories
An attacker could read sensitive data, either by reading the data directly from a data store that is not restricted, or by accessing insufficiently-protected, privileged functionality to read the data.
IntegrityModify Application Data, Modify Files or Directories
An attacker could modify sensitive data, either by writing the data directly to a data store that is not restricted, or by accessing insufficiently-protected, privileged functionality to write the data.
Access ControlGain Privileges or Assume Identity, Bypass Protection Mechanism
An attacker could gain privileges by modifying or reading critical data directly, or by accessing privileged functionality.
AvailabilityDoS: Crash, Exit, or Restart, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory), DoS: Resource Consumption (Other)
An attacker could gain unauthorized access to resources on the system and excessively consume those resources, leading to a denial of service.
Mitigations (5)
Architecture and DesignDivide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the …
Architecture and DesignEnsure that access control checks are performed related to the business logic. These checks may be different than the access control checks that are applied to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible…
Architecture and DesignUse a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, consider using authorization frameworks such as the JAAS Authorization Framework [REF-233] and the OWASP ESAPI Access Control feature [REF-45].
Architecture and DesignFor web applications, make sure that the access control mechanism is enforced correctly at the server side on every page. Users should not be able to access any unauthorized functionality or information by simply requesting direct access to that page. One way to do this is to ensure that all pages containing sensitive information are not cached, and that all such pages restrict access to requests …
System Configuration, InstallationUse the access control capabilities of your operating system and server environment and define your access control lists accordingly. Use a "default deny" policy when defining these ACLs.
Examples (2)
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
The following program could be part of a bulletin board system that allows users to send private messages to each other. This program intends to authenticate the user before deciding whether a private message should be displayed. Assume that LookupMessageObject() ensures that the $id argument is numeric, constructs a filename based on that id, and reads the message details from that file. Also ass…
sub DisplayPrivateMessage { my($id) = @_; my $Message = LookupMessageObject($id); print "From: " . encodeHTML($Message->{from}) . "<br>\n"; print "Subject: " . encodeHTML($Message->{subject}) . "\n"; print "<hr>\n"; print "Body: " . encodeHTML($Message->{body}) . "\n"; } my $q = new CGI; # For purposes of this example, assume that CWE-309 and # CWE-523 do not apply. if (! AuthenticateUser($q->param('username'), $q->param('password'))) { ExitError("invalid username or password"); } my $id = $q->param('id'); DisplayPrivateMessage($id);
Bad · Perl
CVE IDTitleCVSSSeverityPublished
CVE-2021-3653 KVM 权限许可和访问控制问题漏洞 — kernel 8.8 -2021-09-29
CVE-2021-24633 Countdown Block < 1.1.2 - Missing Authorisation in AJAX action — Countdown Block 4.3 -2021-09-27
CVE-2021-24639 OMGF < 4.5.4 - Subscriber+ Arbitrary File/Folder Deletion — OMGF | Host Google Fonts Locally 8.1 -2021-09-20
CVE-2021-33704 SAP Business One 安全漏洞 — SAP Business One 8.8 -2021-09-15
CVE-2021-38164 SAP ERP 安全漏洞 — SAP ERP Financial Accounting (RFOPENPOSTING_FR) 5.4 -2021-09-14
CVE-2020-24672 ABB Base Software for SoftControl Remote Code Execution vulnerability — Base Software for SoftControl 9.8 Critical2021-09-08
CVE-2021-34629 SendGrid <= 1.11.8 – Authorization Bypass — SendGrid 4.3 Medium2021-07-30
CVE-2020-36239 Atlassian JIRA Data Center 访问控制错误漏洞 — Jira Data Center 9.8 -2021-07-29
CVE-2021-32748 WOPI API not protected by credentials/IP check — security-advisories 4.3 Medium2021-07-27
CVE-2021-24352 Simple 301 Redirects by BetterLinks - 2.0.0 – 2.0.3 - Unauthenticated Redirect Export — Simple 301 Redirects by BetterLinks 6.1 -2021-06-14
CVE-2021-24353 Simple 301 Redirects by BetterLinks - 2.0.0 – 2.0.3 - Unauthenticated Redirect Import — Simple 301 Redirects by BetterLinks 6.1 -2021-06-14
CVE-2021-24354 Simple 301 Redirects by BetterLinks - 2.0.0-2.0.3 - Arbitrary Plugin Installation — Simple 301 Redirects by BetterLinks 8.8 -2021-06-14
CVE-2021-24355 Simple 301 Redirects by BetterLinks - 2.0.0 – 2.0.3 - Update and Retrieve Wildcard Value — Simple 301 Redirects by BetterLinks 4.3 -2021-06-14
CVE-2021-24356 Simple 301 Redirects by BetterLinks - 2.0.0 – 2.0.3 - Arbitrary Plugin Activation — Simple 301 Redirects by BetterLinks 8.8 -2021-06-14
CVE-2021-22896 Nextcloud Mail 访问控制错误漏洞 — Nextcloud Mail 4.3 -2021-06-11
CVE-2020-10701 Red Hat libvirt 安全漏洞 — libvirt 6.5 -2021-05-27
CVE-2020-10697 Red Hat Ansible 安全漏洞 — Tower 3.3 -2021-05-27
CVE-2021-22891 Citrix Systems Citrix ShareFile 安全漏洞 — Citrix ShareFile Storage Zones Controller 9.8 -2021-05-27
CVE-2018-10866 Red Hat Certification 授权问题漏洞 — redhat-certification 9.1 -2021-05-26
CVE-2018-10865 Red Hat Certification 安全漏洞 — redhat-certification 7.5 -2021-05-26
CVE-2021-21264 Bypass of fix for CVE-2020-26231, Twig sandbox escape — october 5.2 Medium2021-05-03
CVE-2021-22513 Jenkins 安全漏洞 — Micro Focus Application Automation Tools Plugin - Jenkins plugin. 7.1 -2021-04-08
CVE-2021-24184 Tutor LMS < 1.7.7 - Unprotected AJAX including Privilege Escalation — Tutor LMS – eLearning and online course solution 8.8 -2021-04-05
CVE-2021-21326 Horizontal Privilege Escalation — glpi 7.7 High2021-03-08
CVE-2021-21327 Unsafe Reflection in getItemForItemtype() — glpi 6.8 Medium2021-03-08
CVE-2021-21255 entities switch IDOR — glpi 5.8 Medium2021-03-02
CVE-2021-21307 Remote Code Exploit in Lucee Admin — Lucee 8.6 High2021-02-11
CVE-2020-7343 Improper Authorization vulnerability in MA — McAfee Agent 5.5 Medium2021-01-18
CVE-2021-21246 Pre-Auth Access token leak — onedev 8.6 High2021-01-15
CVE-2020-27220 Eclipse Hono 安全漏洞 — Eclipse Hono 8.8 -2021-01-14

Vulnerabilities classified as CWE-862 (授权机制缺失) represent 5581 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.