CWE-434 危险类型文件的不加限制上传 类弱点 2222 条 CVE 漏洞汇总,含 AI 中文分析。
CWE-434 属于不安全的文件上传漏洞,指系统允许上传并自动处理危险类型的文件。攻击者通常利用此缺陷上传恶意脚本或可执行文件,进而通过服务器自动执行功能获取系统控制权或植入后门。开发者应避免仅依赖文件扩展名验证,需结合内容检测、白名单机制及隔离存储策略,严格限制可上传的文件类型,从而有效阻断此类攻击路径。
<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>// 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."; }<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>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| CVE ID | 标题 | CVSS | 风险等级 | Published |
|---|---|---|---|---|
| CVE-2021-39154 | XStream 代码问题漏洞 — xstream | 8.5 | High | 2021-08-23 |
| CVE-2021-37608 | Apache OFBiz 代码问题漏洞 — Apache OFBiz | 9.8 | - | 2021-08-18 |
| CVE-2021-22937 | Pulse Secure Pulse Connect Secure 代码问题漏洞 — Pulse Connect Secure | 6.5 | - | 2021-08-16 |
| CVE-2021-24499 | WordPress 代码问题漏洞 — Workreap | 9.8 | - | 2021-08-09 |
| CVE-2021-35963 | LearningDigital Orca HCM digital learning platform 代码问题漏洞 — Orca HCM | 9.8 | Critical | 2021-07-19 |
| CVE-2021-32538 | ARTWARE CMS 代码问题漏洞 — CMS | 9.8 | Critical | 2021-07-07 |
| CVE-2021-34624 | WordPress 代码问题漏洞 — ProfilePress | 9.8 | Critical | 2021-07-07 |
| CVE-2021-34623 | WordPress 代码问题漏洞 — ProfilePress | 9.8 | Critical | 2021-07-07 |
| CVE-2010-1433 | Joomla 代码问题漏洞 — Joomla | 9.8 | - | 2021-06-21 |
| CVE-2021-24376 | WordPress 代码问题漏洞 — Autoptimize | 9.8 | - | 2021-06-21 |
| CVE-2021-24370 | WordPress和Fancy Product Designer 代码问题漏洞 — Fancy Product Designer | 9.8 | - | 2021-06-21 |
| CVE-2021-27489 | ZOLL Defibrillator Dashboard 代码问题漏洞 — ZOLL Defibrillator Dashboard | 8.8 | - | 2021-06-16 |
| CVE-2020-7864 | Raonwiz DEXT5 代码问题漏洞 — DEXT5Editor | 7.8 | High | 2021-06-15 |
| CVE-2021-24311 | WordPress 插件代码问题漏洞 — External Media | 8.1 | - | 2021-06-01 |
| CVE-2021-29092 | Synology Photo Station 代码问题漏洞 — Synology Photo Station | 8.8 | High | 2021-06-01 |
| CVE-2021-32630 | Admidio 代码问题漏洞 — admidio | 9.6 | Critical | 2021-05-20 |
| CVE-2021-27459 | Emerson Rosemount X-STREAM Gas Analyzer 代码问题漏洞 — Emerson Rosemount X-STREAM Gas Analyzer | 9.8 | - | 2021-05-20 |
| CVE-2021-24284 | WordPress plugin 代码问题漏洞 — Kaswara Modern VC Addons | 9.8 | - | 2021-05-14 |
| CVE-2021-24254 | WordPress plugin College publisher Import 代码问题漏洞 — College publisher Import | 7.2 | - | 2021-05-05 |
| CVE-2021-24248 | WordPress 代码问题漏洞 — Business Directory Plugin – Easy Listing Directories for WordPress | 7.2 | - | 2021-05-05 |
| CVE-2021-24252 | WordPress 代码问题漏洞 — Event Banner | 9.8 | - | 2021-05-05 |
| CVE-2021-24253 | WordPress 代码问题漏洞 — Classyfrieds | 8.8 | - | 2021-05-05 |
| CVE-2021-24236 | WordPress 代码问题漏洞 — Imagements | 9.8 | - | 2021-05-05 |
| CVE-2021-24240 | WordPress 代码问题漏洞 — Business Hours Pro | 9.8 | - | 2021-04-22 |
| CVE-2021-23280 | Eaton Intelligent Power Manager 代码问题漏洞 — Intelligent Power manager (IPM) | 8.0 | High | 2021-04-13 |
| CVE-2021-24224 | Easy Form Builder WordPress插件代码问题漏洞 — Easy Form Builder | 8.8 | - | 2021-04-12 |
| CVE-2021-24223 | WordPress 插件 代码问题漏洞 — N5 Upload Form | 9.8 | - | 2021-04-12 |
| CVE-2021-24222 | WordPress 插件 代码问题漏洞 — WP-Curriculo Vitae Free | 9.8 | - | 2021-04-12 |
| CVE-2021-24220 | Wordpress插件 代码问题漏洞 — Rise by Thrive Themes | 9.1 | - | 2021-04-12 |
| CVE-2021-20022 | Sonicwall SonicWall Email Security Appliance 代码问题漏洞 — Email Security | 7.2 | - | 2021-04-09 |
CWE-434(危险类型文件的不加限制上传) 是常见的弱点类别,本平台收录该类弱点关联的 2222 条 CVE 漏洞。