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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-434 (危险类型文件的不加限制上传) — Vulnerability Class 2034

2034 vulnerabilities classified as CWE-434 (危险类型文件的不加限制上传). AI Chinese analysis included.

CWE-434 represents a critical input validation weakness where applications permit the upload of file types that are inherently dangerous or automatically processed by the system. Attackers typically exploit this vulnerability by uploading malicious scripts, such as web shells or executable binaries, disguised as legitimate documents or images. Once uploaded, these files are executed by the server, granting the attacker remote code execution capabilities and potentially full system compromise. To mitigate this risk, developers must implement strict allowlists that define only the specific, safe file extensions permitted for upload. Additionally, files should be stored outside the web root directory to prevent direct execution, and content verification techniques, such as checking file headers rather than relying solely on extensions, should be employed to ensure integrity and prevent evasion of basic validation checks.

MITRE CWE Description
The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.
Common Consequences (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…
Mitigations (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.
Examples (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 IDTitleCVSSSeverityPublished
CVE-2024-45644 IBM Security ReaQta file upload — Security ReaQta 4.7 Medium2025-03-19
CVE-2025-24801 GLPI allows authenticated remote code execution — glpi 8.6 High2025-03-18
CVE-2025-2494 Unrestricted file upload vulnerability in Softdial Contact Center — Softdial Contact Center 9.8 -2025-03-18
CVE-2025-2396 e-Excellence U-Office Force - Arbitrary File Upload — U-Office Force 8.8 High2025-03-17
CVE-2025-2350 IROAD Dash Cam FX2 upload_file unrestricted upload — Dash Cam FX2 6.3 Medium2025-03-16
CVE-2025-2219 LoveCards LoveCardsV2 image unrestricted upload — LoveCardsV2 7.3 High2025-03-12
CVE-2025-2216 zzskzy Warehouse Refinement Management System SaveCrash.ashx UploadCrash unrestricted upload — Warehouse Refinement Management System 6.3 Medium2025-03-12
CVE-2025-28915 WordPress ThemeEgg ToolKit plugin <= 1.2.9 - Arbitrary File Upload vulnerability — ThemeEgg ToolKit 9.1 Critical2025-03-11
CVE-2025-22213 [20250301] - Core - Malicious file uploads via Media Manager — Joomla! CMS 8.8 -2025-03-11
CVE-2025-2115 zzskzy Warehouse Refinement Management System AcceptZip.ashx ProcessRequest unrestricted upload — Warehouse Refinement Management System 6.3 Medium2025-03-09
CVE-2024-13359 Product Input Fields for WooCommerce <= 1.12.0 - Unauthenticated Limited File Upload — Product Input Fields for WooCommerce 8.1 High2025-03-08
CVE-2024-13882 Aiomatic - AI Content Writer, Editor, ChatBot & AI Toolkit <= 2.3.8 - Missing Authorization to Authenticated (Contributor+) Arbitrary File Upload — Aiomatic - Automatic AI Content Writer & Editor, GPT-3 & GPT-4, ChatGPT ChatBot & AI Toolkit 8.8 High2025-03-08
CVE-2024-13908 SMTP by BestWebSoft <= 1.1.9 - Authenticated (Administrator+) Arbitrary File Upload — SMTP by BestWebSoft 7.2 High2025-03-08
CVE-2025-2035 s-a-zhd Ecommerce-Website-using-PHP customer_register.php unrestricted upload — Ecommerce-Website-using-PHP 6.3 Medium2025-03-06
CVE-2025-2031 ChestnutCMS upload uploadFile unrestricted upload — ChestnutCMS 6.3 Medium2025-03-06
CVE-2025-27411 REDAXO allows Arbitrary File Upload in the mediapool page — redaxo 5.4 Medium2025-03-05
CVE-2024-47259 AXIS OS 代码问题漏洞 — AXIS OS 3.5 Low2025-03-04
CVE-2025-1890 shishuocms ManageUpLoadAction.java handleRequest unrestricted upload — shishuocms 6.3 Medium2025-03-03
CVE-2025-1835 osuuu LightPicture Api.php upload unrestricted upload — LightPicture 6.3 Medium2025-03-02
CVE-2025-1834 zj1983 zz resolve unrestricted upload — zz 6.3 Medium2025-03-02
CVE-2025-1818 zj1983 zz ZfileAction.upload unrestricted upload — zz 6.3 Medium2025-03-02
CVE-2025-1791 Zorlan SkyCaiji Tool.php fileAction unrestricted upload — SkyCaiji 6.3 Medium2025-03-01
CVE-2024-8425 WooCommerce Ultimate Gift Card <= 2.9.2 - Unauthenticated Arbitrary File Upload — WooCommerce Ultimate Gift Card 9.8 Critical2025-02-28
CVE-2025-0731 SMA: Sunny Portal Remote Code Execution — www.sunnyportal.com 6.5 Medium2025-02-26
CVE-2025-1128 Everest Forms <= 3.0.9.4 - Unauthenticated Arbitrary File Upload, Read, and Deletion — Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder 9.8 Critical2025-02-25
CVE-2025-1646 Lumsoft ERP ASPX File UploadAjaxAPI.ashx unrestricted upload — ERP 7.3 High2025-02-25
CVE-2025-1598 SourceCodester Best Church Management Software asset_crud.php unrestricted upload — Best Church Management Software 6.3 Medium2025-02-23
CVE-2025-1593 SourceCodester Best Employee Management System Profile Picture unrestricted upload — Best Employee Management System 4.7 Medium2025-02-23
CVE-2025-1590 SourceCodester E-Learning System List of Lessons Page index.php unrestricted upload — E-Learning System 4.7 Medium2025-02-23
CVE-2025-26776 WordPress Chaty Pro Plugin <= 3.3.3 - Arbitrary File Upload vulnerability — Chaty Pro 10.0 Critical2025-02-22

Vulnerabilities classified as CWE-434 (危险类型文件的不加限制上传) represent 2034 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.