CVE-2024-56828

File Upload vulnerability in ChestnutCMS through 1.5.0

Critical · published January 6, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
59.5
In the wild
Unconfirmed
What it is

🚨 An unprotected file upload endpoint could have dire consequences in ChestnutCMS 1.5.0! An attacker can easily slip malicious content past the guards, like sneaking a package full of trouble into a party. 🔥 Think of the /api/member/avatar endpoint as a mailroom that accepts any parcel without checking what’s inside. If the staff only glances at the label and not the actual contents, who knows what harmful surprises could get delivered to the unsuspecting party! An attacker could exploit this vulnerability to upload any file type, potentially leading to remote code execution or data breaches—imagine malicious scripts running wild on your server and putting every user at risk. The fallout could be absolutely devastating, affecting data integrity and privacy.

Put simply

Think of the /api/member/avatar endpoint as a mailroom that accepts any parcel without checking what’s inside. If the staff only glances at the label and not the actual contents, who knows what harmful surprises could get delivered to the unsuspecting party! This vulnerability occurs because the file extension is not validated when base64-encoded content is decoded and written to disk. Consequently, harmful files can be uploaded and executed without any checks, opening the door to serious security breaches.

What to do

An attacker could exploit this vulnerability to upload any file type, potentially leading to remote code execution or data breaches—imagine malicious scripts running wild on your server and putting every user at risk. The fallout could be absolutely devastating, affecting data integrity and privacy. Patch ChestnutCMS to version 1.5.1 or higher immediately to secure the file upload functionality. Implement file type validation to ensure only safe formats are processed, and consider adding a content security policy for additional protection. You've got this! Secure your application now, and you'll be one step closer to becoming a cybersecurity hero! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00908 · 59.5th percentile
Published
2025-01-06T00:00Z
EPSS history
Timeline
  • 06 JAN 00:00Z
    File Upload vulnerability in ChestnutCMS through 1.5.0
    cvelistv5