CWE-434 危险类型文件的不加限制上传 类弱点 2052 条 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-2018-17936 | NUUO CMS 安全漏洞 — NUUO CMS | 9.8 | - | 2018-11-27 |
| CVE-2017-3189 | dotCMS 安全漏洞 — Administration Panel | 8.1 | - | 2018-07-24 |
| CVE-2016-9492 | PHP FormMail Generator 安全漏洞 — Generator | 9.8 | - | 2018-07-13 |
| CVE-2017-16772 | Synology Photo Station 输入验证漏洞 — Photo Station | 8.8 | - | 2018-03-22 |
| CVE-2017-7429 | Micro Focus NetIQ eDirectory PKI插件安全漏洞 — eDirectory | 8.8 | - | 2018-03-02 |
| CVE-2017-16594 | NetGain Enterprise Manager 安全漏洞 — NetGain Systems Enterprise Manager | 6.5 | - | 2018-01-23 |
| CVE-2017-16736 | Advantech WebAccess 安全漏洞 — Advantech WebAccess | 9.8 | - | 2018-01-12 |
| CVE-2017-12332 | 多款Cisco产品Cisco NX-OS System Software 安全漏洞 — Cisco NX-OS | 6.0 | - | 2017-11-30 |
| CVE-2017-9650 | ALC WebCTRL、i-Vu和SiteScan Web 安全漏洞 — Automated Logic Corporation WebCTRL, i-VU, SiteScan | 8.8 | - | 2017-08-25 |
| CVE-2017-11154 | Synology Photo Station 安全漏洞 — Synology Photo Station | 6.5 | - | 2017-08-08 |
| CVE-2017-6041 | 多款Marel产品安全漏洞 — Marel Food Processing Systems | 9.8 | - | 2017-06-30 |
| CVE-2017-6027 | 3S-Smart Software Solutions GmbH CODESYS Web Server 输入验证漏洞 — 3S-Smart Software Solutions GmbH CODESYS Web Server | 9.8 | - | 2017-05-19 |
CWE-434(危险类型文件的不加限制上传) 是常见的弱点类别,本平台收录该类弱点关联的 2052 条 CVE 漏洞。