CWE-434 危险类型文件的不加限制上传 类弱点 2311 条 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-42362 | WordPress 代码问题漏洞 — WordPress Popular Posts | 8.8 | High | 2021-11-17 |
| CVE-2021-39222 | Nextcloud Talk 跨站脚本漏洞 — security-advisories | 6.4 | Medium | 2021-11-15 |
| CVE-2021-42839 | 欣学英资讯 webopac7 代码问题漏洞 — webopac7 | 8.8 | High | 2021-11-15 |
| CVE-2021-3915 | BookStack 代码问题漏洞 — bookstackapp/bookstack | 7.3 | - | 2021-11-13 |
| CVE-2018-25019 | WordPress 安全漏洞 — LearnDash LMS | 7.5 | - | 2021-11-01 |
| CVE-2021-3745 | FlatCore-CMS 代码问题漏洞 — flatcore/flatcore-cms | 6.6 | - | 2021-10-28 |
| CVE-2021-3906 | BookStack 代码问题漏洞 — bookstackapp/bookstack | 7.3 | - | 2021-10-27 |
| CVE-2021-39221 | Nextcloud 代码问题漏洞 — security-advisories | 6.4 | Medium | 2021-10-25 |
| CVE-2021-38471 | AUVESY Versiondog 代码问题漏洞 — Versiondog | 9.1 | Critical | 2021-10-22 |
| CVE-2021-39352 | WordPress 代码问题漏洞 — Catch Themes Demo Import | 7.2 | High | 2021-10-21 |
| CVE-2021-3846 | firefly-iii 代码问题漏洞 — firefly-iii/firefly-iii | 8.8 | - | 2021-10-19 |
| CVE-2021-38484 | IR615 Router 代码问题漏洞 — IR615 Router | 9.1 | Critical | 2021-10-19 |
| CVE-2021-41566 | Tad TadTools 代码问题漏洞 — TadTools | 9.8 | Critical | 2021-10-08 |
| CVE-2021-3832 | Artica Integria IMS 代码问题漏洞 — Integria IMS | 9.8 | Critical | 2021-10-07 |
| CVE-2021-41290 | Ecoa Technologies Corp Ecoa Bas controller 路径遍历漏洞 — ECS Router Controller ECS (FLASH) | 9.8 | Critical | 2021-09-30 |
| CVE-2021-24663 | WordPress 插件 代码问题漏洞 — Simple Schools Staff Directory | 7.2 | - | 2021-09-20 |
| CVE-2021-33698 | SAP Business One 代码问题漏洞 — SAP Business One | 8.1 | - | 2021-09-15 |
| CVE-2021-24620 | WordPress 插件代码问题漏洞 — WordPress Simple Ecommerce Shopping Cart Plugin- Sell products through Paypal | 9.8 | - | 2021-09-13 |
| CVE-2021-24493 | WordPress 插件代码问题漏洞 — Shopp | 9.8 | - | 2021-09-13 |
| CVE-2021-24490 | WordPress 插件代码问题漏洞 — Email Artillery (MASS EMAIL) | 8.0 | - | 2021-09-13 |
| CVE-2021-32955 | Delta Electronics DIAEnergie 代码问题漏洞 — Delta Electronics DIAEnergie | 9.8 | - | 2021-08-30 |
| CVE-2021-39149 | XStream 代码问题漏洞 — xstream | 8.5 | High | 2021-08-23 |
| CVE-2021-39148 | XStream 代码问题漏洞 — xstream | 8.5 | High | 2021-08-23 |
| CVE-2021-39147 | XStream 代码问题漏洞 — xstream | 8.5 | High | 2021-08-23 |
| CVE-2021-39146 | XStream 代码问题漏洞 — xstream | 8.5 | High | 2021-08-23 |
| CVE-2021-39145 | XStream 代码问题漏洞 — xstream | 8.5 | High | 2021-08-23 |
| CVE-2021-39141 | XStream 代码问题漏洞 — xstream | 8.5 | High | 2021-08-23 |
| CVE-2021-39153 | XStream 代码问题漏洞 — xstream | 8.5 | High | 2021-08-23 |
| CVE-2021-39151 | XStream 代码问题漏洞 — xstream | 8.5 | High | 2021-08-23 |
| CVE-2021-39154 | XStream 代码问题漏洞 — xstream | 8.5 | High | 2021-08-23 |
CWE-434(危险类型文件的不加限制上传) 是常见的弱点类别,本平台收录该类弱点关联的 2311 条 CVE 漏洞。