{"id":"CVE-2024-56828","published":"2025-01-06T00:00:00Z","modified":"2025-01-14T20:50:37Z","title":"File Upload vulnerability in ChestnutCMS through 1.5.0","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00908,"percentile":0.60784,"provenance":"source"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://gitee.com/liweiyi/ChestnutCMS","tags":[]},{"url":"https://www.1000mz.com/","tags":[]},{"url":"https://github.com/Zerone0x00/CVE/blob/main/ChestnutCMS/CVE-2024-56828.md","tags":[]}],"priority":{"score":19.0,"factors":[{"name":"EPSS percentile","points":12.16},{"name":"CVSS severity","points":6.86}]},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-01-14T20:47:43.963032Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-53439","exploited":false,"provenance":"source"}}