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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-732 (关键资源的不正确权限授予) — Vulnerability Class 595

595 vulnerabilities classified as CWE-732 (关键资源的不正确权限授予). AI Chinese analysis included.

CWE-732 represents a critical access control weakness where software assigns overly permissive security attributes to vital resources, such as files, directories, or registry keys. This misconfiguration allows unintended actors to read or modify data that should remain restricted, often leading to sensitive information disclosure or unauthorized system changes. Attackers typically exploit this by identifying these loose permissions to access confidential data or alter critical configurations, potentially escalating privileges or compromising system integrity. To prevent this, developers must adhere to the principle of least privilege, ensuring resources are accessible only to necessary processes and users. Rigorous code reviews, automated static analysis tools, and strict adherence to secure coding standards help identify and correct improper permission assignments before deployment, thereby safeguarding critical assets against unauthorized access and manipulation.

MITRE CWE Description
The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. When a resource is given a permission setting that provides access to a wider range of actors than required, it could lead to the exposure of sensitive information, or the modification of that resource by unintended parties. This is especially dangerous when the resource is related to program configuration, execution, or sensitive user data. For example, consider a misconfigured storage account for the cloud that can be read or written by a public or anonymous user.
Common Consequences (3)
Confidentiality Read Application Data, Read Files or Directories
An attacker may be able to read sensitive information from the associated resource, such as credentials or configuration information stored in a file.
Access Control Gain Privileges or Assume Identity
An attacker may be able to modify critical properties of the associated resource to gain privileges, such as replacing a world-writable executable with a Trojan horse.
Integrity, Other Modify Application Data, Other
An attacker may be able to destroy or corrupt critical data in the associated resource, such as deletion of records from a database.
Mitigations (5)
Implementation When using a critical resource such as a configuration file, check to see if the resource has insecure permissions (such as being modifiable by any regular user) [REF-62], and generate an error or even exit the software if there is a possibility that the resource could have been modified by an unauthorized party.
Architecture and Design Divide the software into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully defining distinct user groups, privileges, and/or roles. Map these against data, functionality, and the related resources. Then set the permissions accordingly. This will allow you to maintain more fine-grained control over your resources. [REF-207]
Effectiveness: Moderate
Architecture and Design, Operation Run the code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which files can be accessed in a particular directory or which commands can be executed by the software. OS-level examples include the Unix chroot jail, AppArmor, and SELinux. In general, managed code may provide some protection. For ex…
Effectiveness: Limited
Implementation, Installation During program startup, explicitly set the default permissions or umask to the most restrictive setting possible. Also set the appropriate permissions during program installation. This will prevent you from inheriting insecure permissions from any user who installs or runs the program.
Effectiveness: High
System Configuration For all configuration files, executables, and libraries, make sure that they are only readable and writable by the software's administrator.
Effectiveness: High
Examples (2)
The following code sets the umask of the process to 0 before creating a file and writing "Hello world" into the file.
#define OUTFILE "hello.out" umask(0); FILE *out; /* Ignore link following (CWE-59) for brevity */ out = fopen(OUTFILE, "w"); if (out) { fprintf(out, "hello world!\n"); fclose(out); }
Bad · C
-rw-rw-rw- 1 username 13 Nov 24 17:58 hello.out
Result
This code creates a home directory for a new user, and makes that user the owner of the directory. If the new directory cannot be owned by the user, the directory is deleted.
function createUserDir($username){ $path = '/home/'.$username; if(!mkdir($path)){ return false; } if(!chown($path,$username)){ rmdir($path); return false; } return true; }
Bad · PHP
CVE ID Title CVSS Severity Published
CVE-2023-31238 Siemens POWER METER SICAM 安全漏洞 — SICAM P850 5.5 Medium 2023-06-13
CVE-2023-30897 Siemens SIMATIC WinCC 安全漏洞 — SIMATIC WinCC 7.8 High 2023-06-13
CVE-2023-32114 Denial of Service in SAP NetWeaver — SAP NetWeaver (Change and Transport System) 2.7 Low 2023-06-13
CVE-2023-31453 Apache InLong: IDOR make users can delete others' subscription — Apache InLong 7.5 - 2023-05-22
CVE-2023-31454 Apache InLong: IDOR make users can bind any cluster — Apache InLong 9.8 - 2023-05-22
CVE-2023-32303 Planet's secret file is created with excessive permissions — planet-client-python 5.2 Medium 2023-05-12
CVE-2021-40331 Permissions problem in the Apache Ranger Hive Plugin — Apache Ranger Hive Plugin 6.5 - 2023-05-05
CVE-2023-28068 Dell Command | Monitor 访问控制错误漏洞 — Dell Command Monitor (DCM) 7.3 High 2023-05-05
CVE-2023-0834 HYPR 安全漏洞 — Workforce Access 7.0 High 2023-04-28
CVE-2023-0207 NVIDIA DGX-2 安全漏洞 — NVIDIA DGX servers 7.5 High 2023-04-22
CVE-2023-28123 UI Desktop 安全漏洞 — UI Desktop for Windows 6.6 - 2023-04-19
CVE-2023-30606 Multisite denial of service through unsanitized dynamic dispatch to SiteSetting in Discourse — discourse 4.2 Medium 2023-04-18
CVE-2023-22294 Privilege escalation in Checkmk Appliance — Checkmk Appliance 8.8 High 2023-04-18
CVE-2023-28960 Junos OS Evolved: Docker repository is world-writeable, allowing low-privileged local user to inject files into Docker containers — Junos OS Evolved 8.2 High 2023-04-17
CVE-2022-43946 Fortinet FortiClientWindows 安全漏洞 — FortiClientWindows 7.3 High 2023-04-11
CVE-2022-43773 Hitachi Vantara Pentaho Business Analytics Server - Incorrect Permission Assignment for Critical Resource — Pentaho Business Analytics Server 8.8 High 2023-04-03
CVE-2023-0225 Samba 安全漏洞 — Samba 6.5 - 2023-04-03
CVE-2023-1516 RoboDK 安全漏洞 — RoboDK 7.9 High 2023-03-28
CVE-2023-1135 Delta Electronics InfraSuite Device Master 安全漏洞 — InfraSuite Device Master 7.8 High 2023-03-27
CVE-2023-23939 Azure/setup-kubectl: Escalation of privilege vulnerability for v3 and lower — setup-kubectl 3.9 Low 2023-03-06
CVE-2023-22326 iControl REST and tmsh vulnerability — BIG-IP 4.9 Medium 2023-02-01
CVE-2022-42972 Schneider Electric Easy UPS Online Monitoring Software 安全漏洞 — APC Easy UPS Online Monitoring Software 7.8 High 2023-02-01
CVE-2022-43517 Siemens Simcenter STAR-CCM+ 安全漏洞 — Simcenter STAR-CCM+ 7.8 High 2022-12-13
CVE-2022-41926 Nextcloud Talk Android broadcast incorrect permission handling — security-advisories 3.3 Low 2022-11-25
CVE-2022-3258 HYPR 安全漏洞 — Workforce Access 3.7 Low 2022-11-03
CVE-2022-22248 Junos OS Evolved: Incorrect file permissions can allow low-privileged user to cause another user to execute arbitrary commands — Junos OS Evolved 7.3 High 2022-10-18
CVE-2022-2332 Honeywell SoftMaster Incorrect Permission Assignment for Critical Resource — SoftMaster 6.2 Medium 2022-09-16
CVE-2022-36103 Talos worker join token can be used to get elevated access level to the Talos API — talos 7.2 High 2022-09-13
CVE-2022-37435 Apache ShenYu Admin Improper Privilege Management — Apache ShenYu 8.8 - 2022-09-01
CVE-2022-32778 WWBN AVideo 安全漏洞 — AVideo 7.5 - 2022-08-22

Vulnerabilities classified as CWE-732 (关键资源的不正确权限授予) represent 595 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.