| 标题 | 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 |
|---|