PT-2024-35436 · Gaizhenbiao · Chuanhuchatgpt
Published
2024-06-06
·
Updated
2025-12-16
·
CVE-2024-5278
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
gaizhenbiao/chuanhuchatgpt versions prior to 20240310
Description
The application is susceptible to unrestricted file uploads because of inadequate validation of file types at the
/upload endpoint. The handle file upload function does not properly sanitize or validate the file extension or content type of uploaded files. This allows attackers to upload files with arbitrary extensions, including HTML files containing cross-site scripting (XSS) payloads and Python files. This could lead to stored XSS attacks and potentially remote code execution (RCE) on the server hosting the application.Recommendations
Versions prior to 20240310 should be updated.
Ensure proper sanitization and validation of file extensions and content types within the
handle file upload function.
Restrict the types of files that can be uploaded through the /upload endpoint.Exploit
Fix
RCE
Unrestricted File Upload
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Chuanhuchatgpt