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

目标: 1000 元 · 已筹: 1310

100%

CWE-434 危险类型文件的不加限制上传 类漏洞列表 2062

CWE-434 危险类型文件的不加限制上传 类弱点 2062 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-434 属于不安全的文件上传漏洞,指系统允许上传并自动处理危险类型的文件。攻击者通常利用此缺陷上传恶意脚本或可执行文件,进而通过服务器自动执行功能获取系统控制权或植入后门。开发者应避免仅依赖文件扩展名验证,需结合内容检测、白名单机制及隔离存储策略,严格限制可上传的文件类型,从而有效阻断此类攻击路径。

MITRE CWE 官方描述
CWE:CWE-434 不受限制的危险类型文件上传 英文:该产品允许上传或传输危险的文件类型,这些文件会在其环境中被自动处理。
常见影响 (1)
Integrity, Confidentiality, AvailabilityExecute Unauthorized Code or Commands
Arbitrary code execution is possible if an uploaded file is interpreted and executed as code by the recipient. This is especially true for web-server extensions such as .asp and .php because these file types are often treated as automatically executable, even when file system permissions do not spec…
缓解措施 (5)
Architecture and DesignGenerate a new, unique filename for an uploaded file instead of using the user-supplied filename, so that no external input is used at all.[REF-422] [REF-423]
Architecture and DesignWhen the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs.
Architecture and DesignConsider storing the uploaded files outside of the web document root entirely. Then, use other mechanisms to deliver the files dynamically. [REF-423]
ImplementationAssume 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…
Architecture and DesignDefine a very limited set of allowable extensions and only generate filenames that end in these extensions. Consider the possibility of XSS (CWE-79) before allowing .html or .htm file types.
代码示例 (2)
The following code intends to allow a user to upload a picture to the web server. The HTML code that drives the form on the user end has an input field of type "file".
<form action="upload_picture.php" method="post" enctype="multipart/form-data"> Choose a file to upload: <input type="file" name="filename"/> <br/> <input type="submit" name="submit" value="Submit"/> </form>
Good · HTML
// Define the target location where the picture being // uploaded is going to be saved. $target = "pictures/" . basename($_FILES['uploadedfile']['name']); // Move the uploaded file to the new location. if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target)) { echo "The picture has been successfully uploaded."; } else { echo "There was an error uploading the picture, please try again."; }
Bad · PHP
The following code demonstrates the unrestricted upload of a file with a Java servlet and a path traversal vulnerability. The action attribute of an HTML form is sending the upload file request to the Java servlet.
<form action="FileUploadServlet" method="post" enctype="multipart/form-data"> Choose a file to upload: <input type="file" name="filename"/> <br/> <input type="submit" name="submit" value="Submit"/> </form>
Good · HTML
public class FileUploadServlet extends HttpServlet { ... protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); String contentType = request.getContentType(); // the starting position of the boundary header int ind = contentType.indexOf("boundary="); String boundary = contentType.substring(ind+9); String pLine = new String(); String uploadLocation = new String(UPLOAD_DIRECTORY_STRING); //Constant value // verify that content type is multipart form data i
Bad · Java
CVE ID标题CVSS风险等级Published
CVE-2026-40548 SOPlanning 不受限制的危险文件上传漏洞 — SOPlanning--2026-06-01
CVE-2026-10205 MetaCRM upload.jsp 任意文件上传漏洞 — MetaCRM 6.3 Medium2026-06-01
CVE-2026-10172 Bdtask Multi-Store Inventory Management System 代码问题漏洞 — Multi-Store Inventory Management System 6.3 Medium2026-05-31
CVE-2018-25409 SIM-PKH 代码问题漏洞 — SIM-PKH 8.8 High2026-05-30
CVE-2018-25388 Sitejo HaPe PKH 代码问题漏洞 — HaPe PKH 8.8 High2026-05-29
CVE-2026-10072 Interinfo DreamMaker 代码问题漏洞 — DreamMaker 7.2 High2026-05-29
CVE-2026-10071 Interinfo DreamMaker 代码问题漏洞 — DreamMaker 9.8 Critical2026-05-29
CVE-2026-9227 WordPress plugin GutenBee – Gutenberg Blocks 代码问题漏洞 — GutenBee – Gutenberg Blocks 8.8 High2026-05-28
CVE-2026-9009 WordPress plugin Crawlomatic Multipage Scraper Post Generator 代码问题漏洞 — Crawlomatic Multipage Scraper Post Generator 8.8 High2026-05-28
CVE-2026-42748 WordPress plugin WPify Woo Czech 代码问题漏洞 — WPify Woo Czech 9.9 Critical2026-05-27
CVE-2026-9445 SourceCodester Simple POS and Inventory System 代码问题漏洞 — Simple POS and Inventory System 6.3 Medium2026-05-25
CVE-2026-9421 KLiK SocialMediaWebsite 代码问题漏洞 — KLiK SocialMediaWebsite 7.3 High2026-05-25
CVE-2026-9374 RuoYi 代码问题漏洞 — RuoYi-Vue 6.3 Medium2026-05-24
CVE-2026-40412 Microsoft Azure Orbital Spatio 代码问题漏洞 — Azure Orbital Spatio 10.0 Critical2026-05-22
CVE-2026-6960 WordPress plugin BookingPress Pro 代码问题漏洞 — BookingPress Appointment Booking Pro 9.8 Critical2026-05-21
CVE-2026-45444 wordpress plugin Gift Cards For WooCommerce Pro 代码问题漏洞 — Gift Cards For WooCommerce Pro 10.0 Critical2026-05-20
CVE-2026-6555 WordPress plugin ProSolution WP Client 代码问题漏洞 — ProSolution WP Client 9.8 Critical2026-05-20
CVE-2026-4883 WordPress plugin Piotnet Forms 代码问题漏洞 — Piotnet Forms 9.8 Critical2026-05-19
CVE-2026-4885 WordPress plugin Piotnet Addons for Elementor Pro 代码问题漏洞 — Piotnet Addons For Elementor Pro 9.8 Critical2026-05-19
CVE-2026-8758 Metasoft MetaCRM 访问控制错误漏洞 — MetaCRM 7.3 High2026-05-17
CVE-2020-37227 WordPress plugin HS Brand Logo Slider 代码问题漏洞 — HS Brand Logo Slider 8.8 High2026-05-16
CVE-2021-47965 WordPress plugin WP Super Edit 代码问题漏洞 — WP Super Edit 9.8 Critical2026-05-15
CVE-2026-44088 Krajowa Izba Rozliczeniowa SzafirHost 代码问题漏洞 — SzafirHost--2026-05-15
CVE-2026-22707 Strapi 代码问题漏洞 — strapi--2026-05-14
CVE-2026-41937 Vvveb 安全漏洞 — Vvveb 7.2 High2026-05-14
CVE-2026-6271 WordPress plugin Career Section 代码问题漏洞 — Career Section 9.8 Critical2026-05-14
CVE-2026-45053 CubeCart 代码问题漏洞 — v6 9.1 Critical2026-05-13
CVE-2026-42844 Grav 安全漏洞 — grav--2026-05-12
CVE-2021-47943 Textpattern CMS 代码问题漏洞 — TextPattern CMS 8.8 High2026-05-10
CVE-2021-47937 e107 代码问题漏洞 — e107 CMS 8.8 High2026-05-10

CWE-434(危险类型文件的不加限制上传) 是常见的弱点类别,本平台收录该类弱点关联的 2062 条 CVE 漏洞。