Arbitrary file upload in Gaizhenbiao Chuanhuchatgpt
CVE-2024-5278
gaizhenbiao/chuanhuchatgpt is vulnerable to an unrestricted file upload vulnerability due to insufficient validation of uploaded file types in its `/upload` endpoint. Specifically, the `handle_file_upload` function does not sanitize or validate the file extension or content type of uploaded files, allowing attackers to upload files with arbitrary extensions, including HTML files containing XSS payloads and Python files. This vulnerability, present in the latest version as of 20240310, could lead to stored XSS attacks and potentially result in remote code execution (RCE) on the server hosting the application.
Vulnerability class: Unrestricted File Upload
EPSS: 0.006 (44.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
Affected products
- Gaizhenbiao Chuanhuchatgpt
- Gaizhenbiao Gaizhenbiao/chuanhuchatgpt — versions unspecified
Weakness classification (CWE)
References
- security@huntr.dev (Exploit, Third Party Advisory)
- security@huntr.dev
Frequently asked questions
- What is CVE-2024-5278?
- CVE-2024-5278 is a medium-severity vulnerability in Gaizhenbiao Chuanhuchatgpt, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 6.1/10. Published 2024-06-06.
- How severe is CVE-2024-5278?
- Medium severity. CVSS v3 base score is 6.1 out of 10.