CWE-434 危险类型文件的不加限制上传 类弱点 2219 条 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-24160 | WordPress 代码问题漏洞 — Responsive Menu – Create Mobile-Friendly Menu | 8.8 | - | 2021-04-05 |
| CVE-2021-24155 | WordPress 代码问题漏洞 — WordPress Backup and Migrate Plugin – Backup Guard | 7.2 | - | 2021-04-05 |
| CVE-2021-27274 | NETGEAR ProSAFE Network Management System 代码问题漏洞 — ProSAFE Network Management System | 9.8 | - | 2021-03-29 |
| CVE-2021-21355 | TYPO3 安全漏洞 — TYPO3.CMS | 8.6 | High | 2021-03-23 |
| CVE-2021-21350 | XStream 代码问题漏洞 — xstream | 5.3 | Medium | 2021-03-22 |
| CVE-2021-21351 | XStream 代码问题漏洞 — xstream | 5.4 | Medium | 2021-03-22 |
| CVE-2021-21344 | XStream 代码问题漏洞 — xstream | 5.3 | Medium | 2021-03-22 |
| CVE-2021-21346 | XStream 代码问题漏洞 — xstream | 6.1 | Medium | 2021-03-22 |
| CVE-2021-21347 | XStream 代码问题漏洞 — xstream | 6.1 | Medium | 2021-03-22 |
| CVE-2021-24145 | Wordpress Modern Events Calendar Lite 代码问题漏洞 — Modern Events Calendar Lite | 7.2 | - | 2021-03-18 |
| CVE-2021-24123 | Wordpress PowerPress 代码问题漏洞 — PowerPress | 7.2 | - | 2021-03-18 |
| CVE-2020-7847 | ipTIME NAS 代码问题漏洞 — ipTIME NAS | 7.4 | High | 2021-02-23 |
| CVE-2021-21014 | Adobe Magento 代码问题漏洞 — Magento Commerce | 9.1 | - | 2021-02-11 |
| CVE-2021-22698 | Schneider Electric EcoStruxure Power Build - Rapsody 代码问题漏洞 — EcoStruxure Power Build - Rapsody software V2.1.13 and prior. | 7.8 | - | 2021-01-25 |
| CVE-2021-22697 | Schneider Electric EcoStruxure Power Build - Rapsody 代码问题漏洞 — EcoStruxure Power Build - Rapsody software V2.1.13 and prior. | 7.8 | - | 2021-01-25 |
| CVE-2021-21245 | Theonedev Onedev 代码问题漏洞 — onedev | 10.0 | Critical | 2021-01-15 |
| CVE-2020-26286 | Hedgedoc 代码问题漏洞 — hedgedoc | 7.5 | High | 2020-12-28 |
| CVE-2020-26255 | Kirby 代码问题漏洞 — kirby | 6.8 | Medium | 2020-12-08 |
| CVE-2020-7569 | Schneider Electric EcoStruxure Building Operation WebReports 代码问题漏洞 — EcoStruxure Building Operation WebReports V1.9 - V3.1 | 8.8 | - | 2020-11-19 |
| CVE-2020-24407 | Adobe Magento 代码问题漏洞 — Magento Commerce | 9.1 | Critical | 2020-11-09 |
| CVE-2020-15277 | baserCMS 代码问题漏洞 — basercms | 7.2 | High | 2020-10-30 |
| CVE-2020-8260 | Pulse Secure Pulse Connect Secure 代码问题漏洞 — Pulse Connect Secure / Pulse Policy Secure | 7.2 | - | 2020-10-28 |
| CVE-2020-3436 | Cisco Firepower Threat Defense和Cisco Adaptive Security Appliances Software 代码问题漏洞 — Cisco Adaptive Security Appliance (ASA) Software | 8.6 | - | 2020-10-21 |
| CVE-2019-1888 | Cisco Unified Contact Center Express 代码问题漏洞 — Cisco Unified Contact Center Express | 7.2 | - | 2020-09-23 |
| CVE-2020-15189 | SOY CMS 代码问题漏洞 — soycms | 6.8 | Medium | 2020-09-18 |
| CVE-2020-6288 | SAP Business Objects Business Intelligence Platform 代码问题漏洞 — SAP Business Objects Business Intelligence Platform (Web Intelligence HTML interface) | 6.5 | - | 2020-09-09 |
| CVE-2020-15645 | Marvell QConvergeConsole 代码问题漏洞 — QConvergeConsole | 8.8 | - | 2020-08-25 |
| CVE-2020-7302 | McAfee Data Loss Prevention ePO extension 代码问题漏洞 — DLP ePO extension | 5.4 | Medium | 2020-08-13 |
| CVE-2020-14488 | OpenClinic GA 代码问题漏洞 — OpenClinic GA | 8.8 | High | 2020-07-29 |
| CVE-2020-12005 | 多款Rockwell Automation产品代码问题漏洞 — FactoryTalk Linx, RSLinx Classic, Connected Components Workbench, ControlFLASH Plus, FactoryTalk Asset Centre, FactoryTalk Linx CommDTM, Studio 5000 Launcher, Studio 5000 Logix Designer software | 9.1 | - | 2020-06-15 |
CWE-434(危险类型文件的不加限制上传) 是常见的弱点类别,本平台收录该类弱点关联的 2219 条 CVE 漏洞。