目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CWE-73 文件名或路径的外部可控制 类漏洞列表 482

CWE-73 文件名或路径的外部可控制 类弱点 482 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-73 属于路径遍历漏洞,指应用程序允许用户输入控制文件系统操作中的文件名或路径。攻击者通常利用此缺陷构造恶意路径,以访问或修改系统关键文件及敏感数据,从而破坏应用完整性。开发者应避免直接拼接用户输入,需通过白名单验证、规范化路径及严格过滤特殊字符,确保最终路径位于预期的安全目录内,从而有效阻断非法访问。

MITRE CWE 官方描述
CWE:CWE-73 外部控制文件名或路径 (External Control of File Name or Path) 英文:产品允许用户输入控制或影响在文件系统操作 (filesystem operations) 中使用的路径或文件名。 这可能导致攻击者访问或修改对应用程序至关重要的系统文件或其他文件。路径操纵错误 (Path manipulation errors) 在满足以下两个条件时发生:1. 攻击者可以指定在文件系统操作 (operation on the filesystem) 中使用的路径。2. 通过指定资源,攻击者获得了原本不被允许的能力。例如,程序可能赋予攻击者覆盖指定文件或运行由攻击者控制的配置的能力。
常见影响 (3)
Integrity, Confidentiality Read Files or Directories, Modify Files or Directories
The application can operate on unexpected files. Confidentiality is violated when the targeted filename is not directly readable by the attacker.
Integrity, Confidentiality, Availability Modify Files or Directories, Execute Unauthorized Code or Commands
The application can operate on unexpected files. This may violate integrity if the filename is written to, or if the filename is for a program or other form of executable code.
Availability DoS: Crash, Exit, or Restart, DoS: Resource Consumption (Other)
The application can operate on unexpected files. Availability can be violated if the attacker specifies an unexpected file that the application modifies. Availability can also be affected if the attacker specifies a filename for a large file, or points to a special device or a file that does not hav…
缓解措施 (5)
Architecture and Design When the set of filenames is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames, and reject all other inputs. For example, ID 1 could map to "inbox.txt" and ID 2 could map to "profile.txt". Features such as the ESAPI AccessReferenceMap provide this capability.
Architecture and Design, Operation Run your code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict all access to files within a particular directory. Examples include the Unix chroot jail and AppArmor. In general, managed code may provide some protection. This may not be a feasible solution, and it only limits the impact to the oper…
Architecture and Design For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Implementation Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range…
Effectiveness: High
Implementation Use a built-in path canonicalization function (such as realpath() in C) that produces the canonical version of the pathname, which effectively removes ".." sequences and symbolic links (CWE-23, CWE-59).
代码示例 (2)
The following code uses input from an HTTP request to create a file name. The programmer has not considered the possibility that an attacker could provide a file name such as "../../tomcat/conf/server.xml", which causes the application to delete one of its own configuration files (CWE-22).
String rName = request.getParameter("reportName"); File rFile = new File("/usr/local/apfr/reports/" + rName); ... rFile.delete();
Bad · Java
The following code uses input from a configuration file to determine which file to open and echo back to the user. If the program runs with privileges and malicious users can change the configuration file, they can use the program to read any file on the system that ends with the extension .txt.
fis = new FileInputStream(cfg.getProperty("sub")+".txt"); amt = fis.read(arr); out.println(arr);
Bad · Java
CVE ID 标题 CVSS 风险等级 Published
CVE-2024-2155 Best POS Management System 安全漏洞 — Best POS Management System 4.3 Medium 2024-03-04
CVE-2024-2150 Insurance Management System 安全漏洞 — Insurance Management System 5.3 Medium 2024-03-03
CVE-2024-25117 php-svg-lib安全漏洞 — php-svg-lib 6.8 Medium 2024-02-21
CVE-2020-36772 CloudLinux CageFS 安全漏洞 — cagefs 7.1 - 2024-01-22
CVE-2024-0728 ForU CMS 安全漏洞 — CMS 4.7 Medium 2024-01-19
CVE-2023-47171 WWBN AVideo 安全漏洞 — AVideo 6.5 Medium 2024-01-10
CVE-2023-49864 WWBN AVideo 安全漏洞 — AVideo 6.5 Medium 2024-01-10
CVE-2023-49738 WWBN AVideo 安全漏洞 — AVideo 7.5 High 2024-01-10
CVE-2023-49862 WWBN AVideo 安全漏洞 — AVideo 6.5 Medium 2024-01-10
CVE-2023-49863 WWBN AVideo 安全漏洞 — AVideo 6.5 Medium 2024-01-10
CVE-2023-47862 WWBN AVideo 安全漏洞 — AVideo 9.8 Critical 2024-01-10
CVE-2024-20652 Microsoft Windows Scripting 安全漏洞 — Windows 10 Version 1809 8.1 High 2024-01-09
CVE-2024-0265 Clinic Queuing System 安全漏洞 — Clinic Queuing System 6.3 Medium 2024-01-07
CVE-2023-6569 h2o 安全漏洞 — h2oai/h2o-3 7.1AI High AI 2023-12-14
CVE-2023-36019 Microsoft Power Platform Connector 安全漏洞 — Microsoft Power Platform 9.6 Critical 2023-12-12
CVE-2023-6618 SourceCodester Simple Student Attendance System 安全漏洞 — Simple Student Attendance System 5.5 Medium 2023-12-08
CVE-2023-5247 Mitsubishi Electric FA Engineering Software 安全漏洞 — GX Works3 7.8 High 2023-11-30
CVE-2023-39542 Foxit Reader 安全漏洞 — Foxit Reader 8.8 High 2023-11-27
CVE-2023-40194 Foxit Reader 安全漏洞 — Foxit Reader 8.8 High 2023-11-27
CVE-2023-35985 Foxit Reader 安全漏洞 — Foxit Reader 8.8 High 2023-11-27
CVE-2023-34982 AVEVA Operations Control Logger 安全漏洞 — SystemPlatform 5.5 Medium 2023-11-15
CVE-2023-20114 Cisco Firepower Management Center 安全漏洞 — Cisco Firepower Management Center 6.5 Medium 2023-11-01
CVE-2023-43074 Dell Unity 安全漏洞 — Unity 5.2 Medium 2023-10-23
CVE-2023-36634 Fortinet FortiAP-U 安全漏洞 — FortiAP-U 6.5 High 2023-09-13
CVE-2023-36764 Microsoft SharePoint 安全漏洞 — Microsoft SharePoint Enterprise Server 2016 8.8 High 2023-09-12
CVE-2023-4634 WordPress plugin Media Library Assistant 安全漏洞 — Media Library Assistant 9.8 Critical 2023-09-06
CVE-2023-32615 Open Automation Software OAS Platform 安全漏洞 — OAS Platform 6.5 Medium 2023-09-05
CVE-2023-4749 Inventory Management System 安全漏洞 — Inventory Management System 6.3 Medium 2023-09-04
CVE-2023-20234 Cisco FXOS Software 安全漏洞 — Cisco Adaptive Security Appliance (ASA) Software 4.4 Medium 2023-08-23
CVE-2023-35384 Microsoft Windows HTML Platform 安全漏洞 — Windows 10 Version 1507 5.4 Medium 2023-08-08

CWE-73(文件名或路径的外部可控制) 是常见的弱点类别,本平台收录该类弱点关联的 482 条 CVE 漏洞。