CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2024 · 1000mz

CVE-2024-56828
1000mz Chestnutcms vulnerability

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.

High priority: this vulnerability is rated critical and can be attacked over the network without a login.

Affected products

Chestnutcms. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether 1000mz Chestnutcms runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in 1000mz products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.