File Upload vulnerability in ChestnutCMS through 1.5.0. Based on the code analysis, it was determined that the /api/member/avatar API endpoint receives a base64 string as input. This string is then passed to the memberService.uploadAvatarByBase64 method for processing. Within the service, the base64-encoded image is parsed. For example, given a string like: data:image/html;base64,PGh0bWw+PGltZyBzcmM9eCBvbmVycm9yPWFsZXJ0KDEpPjwvaHRtbD4= the content after the comma is extracted and decoded using Base64.getDecoder().decode(). The substring from the 11th character up to the first occurrence of a semicolon (;) is assigned to the suffix variable (representing the file extension). The decoded content is then written to a file. However, the file extension is not validated, and since this functionality is exposed to the frontend, it poses significant security risks.
References
Link | Resource |
---|---|
https://gitee.com/liweiyi/ChestnutCMS | Product |
https://github.com/Zerone0x00/CVE/blob/main/ChestnutCMS/CVE-2024-56828.md | Exploit Third Party Advisory |
https://www.1000mz.com/ | Product |
Configurations
History
21 Apr 2025, 17:10
Type | Values Removed | Values Added |
---|---|---|
References | () https://gitee.com/liweiyi/ChestnutCMS - Product | |
References | () https://github.com/Zerone0x00/CVE/blob/main/ChestnutCMS/CVE-2024-56828.md - Exploit, Third Party Advisory | |
References | () https://www.1000mz.com/ - Product | |
First Time |
1000mz chestnutcms
1000mz |
|
CPE | cpe:2.3:a:1000mz:chestnutcms:*:*:*:*:*:*:*:* |
14 Jan 2025, 21:15
Type | Values Removed | Values Added |
---|---|---|
Summary |
|
|
CVSS |
v2 : v3 : |
v2 : unknown
v3 : 9.8 |
CWE | CWE-434 |
06 Jan 2025, 18:15
Type | Values Removed | Values Added |
---|---|---|
New CVE |
Information
Published : 2025-01-06 18:15
Updated : 2025-04-21 17:10
NVD link : CVE-2024-56828
Mitre link : CVE-2024-56828
CVE.ORG link : CVE-2024-56828
JSON object : View
Products Affected
1000mz
- chestnutcms
CWE
CWE-434
Unrestricted Upload of File with Dangerous Type