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

目标: 1000 元 · 已筹: 1000

100.0%

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

CWE-434 危险类型文件的不加限制上传 类弱点 2034 条 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-2025-23918 WordPress plugin Smallerik File Browser 代码问题漏洞 — Smallerik File Browser 9.9 Critical2025-01-22
CVE-2024-13091 WordPress plugin WPBot Pro Wordpress Chatbot 代码问题漏洞 — WPBot Pro Wordpress Chatbot 9.8 Critical2025-01-21
CVE-2025-22723 WordPress plugin Barcode Scanner with Inventory & Order Manager 代码问题漏洞 — Barcode Scanner with Inventory & Order Manager 9.1 Critical2025-01-21
CVE-2024-51919 WordPress plugin Fancy Product Designer 代码问题漏洞 — Fancy Product Designer 9.0 Critical2025-01-21
CVE-2025-0582 itsourcecode Farm Management System 代码问题漏洞 — Farm Management System 4.7 Medium2025-01-20
CVE-2024-13333 WordPress plugin Advanced File Manager 代码问题漏洞 — Advanced File Manager — Ultimate WordPress File Manager and Document Library Plugin 7.5 High2025-01-17
CVE-2025-0471 PMB platform 代码问题漏洞 — PMB platform 9.9 Critical2025-01-16
CVE-2024-13355 WordPress plugin Admin and Customer Messages After Order for WooCommerce: OrderConvo 代码问题漏洞 — Admin and Customer Messages After Order for WooCommerce: OrderConvo 5.4 Medium2025-01-16
CVE-2025-22782 WordPress plugin WR Price List Manager For Woocommerce 代码问题漏洞 — WR Price List Manager For Woocommerce 9.9 Critical2025-01-15
CVE-2024-13171 Ivanti EPM 代码问题漏洞 — Endpoint Manager 7.8 High2025-01-14
CVE-2025-0463 Lingdang CRM 安全漏洞 — Lingdang CRM 6.3 Medium2025-01-14
CVE-2025-0460 OpenCart 安全漏洞 — Blog Botz for Journal Theme 7.3 High2025-01-14
CVE-2025-0394 WordPress plugin Groundhogg 代码问题漏洞 — Groundhogg — CRM, Newsletters, and Marketing Automation 8.8 High2025-01-14
CVE-2025-0057 SAP NetWeaver AS 代码问题漏洞 — SAP NetWeaver AS JAVA (User Admin Application) 4.8 Medium2025-01-14
CVE-2024-46479 Venki Supravizio BPM 安全漏洞 — Supravizio BPM 9.9 Critical2025-01-13
CVE-2025-0402 reggie 路径遍历漏洞 — reggie 6.3 Medium2025-01-12
CVE-2025-0399 starsea-mall 安全漏洞 — starsea-mall 4.7 Medium2025-01-12
CVE-2024-42180 HCL DRYiCE MyXalytics 安全漏洞 — DRYiCE MyXalytics 1.6 Low2025-01-12
CVE-2025-22504 WordPress plugin 4ECPS Web Forms 代码问题漏洞 — 4ECPS Web Forms 10.0 Critical2025-01-09
CVE-2025-0346 Code-Projects Content Management System 代码问题漏洞 — Content Management System 4.7 Medium2025-01-09
CVE-2024-43662 iocharger 安全漏洞 — Iocharger firmware for AC models 7.0 -2025-01-09
CVE-2025-0341 CampCodes Computer Laboratory Management System 代码问题漏洞 — Computer Laboratory Management System 6.3 Medium2025-01-09
CVE-2025-0335 Code-Projects Online Bike Rental System 代码问题漏洞 — Online Bike Rental System 6.3 Medium2025-01-09
CVE-2024-13212 SingMR HouseRent 代码问题漏洞 — HouseRent 6.3 Medium2025-01-09
CVE-2024-13210 bookstore 代码问题漏洞 — bookstore电商书城系统说明 4.7 Medium2025-01-09
CVE-2024-13201 SpringBoot-Blog 代码问题漏洞 — SpringBoot-Blog 4.7 Medium2025-01-09
CVE-2024-13191 myblog 安全漏洞 — myblog 6.3 Medium2025-01-08
CVE-2024-12853 WordPress plugin Modula Image Gallery 代码问题漏洞 — Modula Image Gallery – Photo Grid & Video Gallery 8.8 High2025-01-08
CVE-2024-12854 WordPress plugin Garden Gnome Package 代码问题漏洞 — Garden Gnome Package 8.8 High2025-01-08
CVE-2025-21624 ClipBucket 代码问题漏洞 — clipbucket-v5 9.8 Critical2025-01-07

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