提交 #768028: Bytedesk <=1.3.9 Unrestricted Upload of File with Dangerous Type (CWE-434)信息

标题Bytedesk <=1.3.9 Unrestricted Upload of File with Dangerous Type (CWE-434)
描述The authenticated endpoint POST /api/v1/upload/file accepts SVG files with embedded <script> tags. Although isAllowedFileType() permits image/svg+xml, the server stores the file without sanitizing its contents. An attacker with a valid token uploads a malicious SVG containing JavaScript; the returned fileUrl serves the file directly. When a victim visits the URL, the browser executes the script, resulting in Stored XSS.
来源⚠️ https://github.com/Bytedesk/bytedesk/issues/18
用户
 ZAST.AI (UID 87884)
提交2026-02-26 06時54分 (5 月前)
管理2026-03-07 21時23分 (10 days later)
状态已接受
VulDB条目349726 [Bytedesk 直到 1.3.9 SVG File UploadRestController.java uploadFile 权限提升]
积分20

Do you know our Splunk app?

Download it now for free!