| Title | https://github.com/guchengwuyue/yshopmall yshopmall V1.9.1 Incomplete Identification of Uploaded File Variables |
|---|
| Description | From function co.yixiang.modules.system.rest.SysUserController#updateAvatar to function co.yixiang.utils.FileUtil#upload.
Users can freely upload malicious files such as HTML and JSP, which can lead to XSS or even RCE vulnerabilities.
Taint Propagation:
SysUserController.updateAvatar() Line 205: @RequestParam MultipartFile file
↓
Line 206: userService.updateAvatar(file)
↓
SysUserServiceImpl.updateAvatar() Line 185: FileUtil.upload(multipartFile, avatar)
↓
FileUtil.upload() Line 163: File dest = new File(path).getCanonicalFile()
↓
Line 169: file.transferTo(dest) |
|---|
| Source | ⚠️ https://github.com/guchengwuyue/yshopmall/issues/40 |
|---|
| User | mukyuuhate (UID 93052) |
|---|
| Submission | 01/27/2026 14:18 (3 months ago) |
|---|
| Moderation | 02/07/2026 08:50 (11 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 344848 [guchengwuyue yshopmall up to 1.9.1 co.yixiang.utils.FileUtil /api/users/updateAvatar File unrestricted upload] |
|---|
| Points | 20 |
|---|