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

Goal: 1000 CNY · Raised: 1020 CNY

100%

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

460 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)
ConfidentialityRead 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 ControlGain 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, OtherModify 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)
ImplementationWhen 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 DesignDivide 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, OperationRun 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, InstallationDuring 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 ConfigurationFor 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 IDTitleCVSSSeverityPublished
CVE-2024-25645 Information Disclosure vulnerability in SAP NetWeaver (Enterprise Portal) — SAP NetWeaver (Enterprise Portal) 5.3 Medium2024-03-12
CVE-2024-28163 Information Disclosure vulnerability in SAP NetWeaver Process Integration (Support Web Pages) — SAP NetWeaver Process Integration (Support Web Pages) 5.3 Medium2024-03-12
CVE-2024-25644 Information Disclosure vulnerability in NetWeaver (WSRM) — NetWeaver (WSRM) 5.3 Medium2024-03-12
CVE-2024-27294 dp-golang Go installation could be owned by wrong user — puppet-golang 7.3 High2024-02-29
CVE-2024-21915 Rockwell Automation FactoryTalk® Service Platform Elevated Privileges Vulnerability Through Web Service Functionality — FactoryTalk® Service Platform 9.0 Critical2024-02-16
CVE-2024-24740 Information Disclosure vulnerability in SAP NetWeaver Application Server ABAP (SAP Kernel) — SAP NetWeaver Application Server ABAP (SAP Kernel) 5.3 Medium2024-02-13
CVE-2023-50292 Apache Solr: Solr Schema Designer blindly "trusts" all configsets, possibly leading to RCE by unauthenticated users — Apache Solr 9.8 -2024-02-09
CVE-2023-47564 Qsync Central — Qsync Central 8.0 High2024-02-02
CVE-2020-24681 Automation Studio and PVI Multiple incorrect permission assignments for services — Automation Studio 8.2 High2024-02-02
CVE-2024-22016 Incorrect Permission Assignment for Critical Resource in Rapid SCADA — Rapid SCADA 7.8 High2024-02-01
CVE-2023-49257 Command execution using the certificate upload utility — H8951-4G-ESP 8.8 -2024-01-12
CVE-2024-21305 Hypervisor-Protected Code Integrity (HVCI) Security Feature Bypass Vulnerability — Windows 10 Version 1809 4.4 Medium2024-01-09
CVE-2023-44120 Siemens Spectrum Power 安全漏洞 — Spectrum Power 7 7.8 High2024-01-09
CVE-2023-41776 Local Privilege Escalation Vulnerability of ZTE's ZXCLOUD iRAI — ZXCLOUD iRAI 6.7 Medium2024-01-03
CVE-2023-46142 PHOENIX CONTACT: Insufficient Read and Write Protection to Logic and Runtime Data in PLCnext Control — AXC F 1152 8.8 High2023-12-14
CVE-2023-46141 Phoenix Contact: Automation Worx and classic line controllers prone to Incorrect Permission Assignment for Critical Resource — Automation Worx Software Suite 9.8 Critical2023-12-14
CVE-2023-0757 Phoenix Contact ProConOS prone to Incorrect Permission Assignment for Critical Resource — MULTIPROG 9.8 Critical2023-12-14
CVE-2023-25648 Weak Folder Permission Vulnerability in ZTE ZXCLOUD iRAI — ZXCLOUD iRAI 6.5 Medium2023-12-14
CVE-2023-49580 Information disclosure in SAP GUI for Windows and SAP GUI for Java — SAP GUI for Windows and SAP GUI for Java 7.3 High2023-12-12
CVE-2023-49578 Denial of service (DOS) in SAP Cloud Connector — SAP Cloud Connector 3.5 Low2023-12-12
CVE-2023-6179 Incorrect Permission assignment to program executable folders — ProWatch 7.8 High2023-11-17
CVE-2023-28134 Local Privliege Escalation in Check Point Endpoint Security Remediation Service — Harmony Endpoint. 7.8 -2023-11-12
CVE-2023-3282 Cortex XSOAR: Local Privilege Escalation (PE) Vulnerability in Cortex XSOAR Engine — Cortex XSOAR 6.4 Medium2023-11-08
CVE-2023-42489 EisBaer Scada - CWE-732: Incorrect Permission Assignment for Critical Resource — v3.0.6433.1964 7.5 High2023-10-25
CVE-2023-34437 Baker Hughes Bently Nevada 3500 System Incorrect Permission Assignment for Critical Resource — Bently Nevada 3500 System 7.5 High2023-10-18
CVE-2023-44201 Junos OS and Junos OS Evolved: A local attacker can retrieve sensitive information and elevate privileges on the device to an authorized user. — Junos OS 5.0 Medium2023-10-12
CVE-2023-32724 JavaScript engine memory pointers are directly available for Zabbix users for modification — Zabbix 9.1 Critical2023-10-12
CVE-2023-32723 Inefficient permission check in class CControllerAuthenticationUpdate — Zabbix 8.5 High2023-10-12
CVE-2023-45205 Siemens SICAM PAS/PQS 安全漏洞 — SICAM PAS/PQS 7.8 High2023-10-10
CVE-2023-38640 Siemens SICAM PAS/PQS 安全漏洞 — SICAM PAS/PQS 6.6 Medium2023-10-10

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