CVE-2024-5278CWE-434

Unrestricted File Upload leading to RCE in gaizhenbiao/chuanhuchatgpt

Medium · published June 6, 2024

CVSS v3.0
6.5
EPSS
1%
Percentile
47.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.0
6.5 · MEDIUM
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00591 · 47.5th percentile
Weakness
CWE-434 · Unrestricted Upload of File with Dangerous Type
Published
2024-06-06T18:44Z
EPSS history
Timeline
  • 06 JUN 18:44Z
    Unrestricted File Upload leading to RCE in gaizhenbiao/chuanhuchatgpt
    cvelistv5