CVE-2024-5278
Last modified
CVE-2024-5278 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.59% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Gaizhenbiao | Chuanhuchatgpt | < 20240919 |
References
- https://huntr.com/bounties/ea821d86-941b-40f3-a857-91f758848e05Exploit, Third Party Advisory
- https://huntr.com/bounties/ea821d86-941b-40f3-a857-91f758848e05Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-5278?
How severe is CVE-2024-5278?
How do I fix CVE-2024-5278?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-5277In lunary-ai/lunary version 1.2.4, a vulnerability exists in…7.5
- CVE-2024-52770An arbitrary file upload vulnerability in the component /adm…9.8
- CVE-2024-52771DedeBIZ v6.3.0 was discovered to contain an arbitrary file d…9.1
- CVE-2024-52777DCME-320 <=7.4.12.90, DCME-520 <=9.25.5.11, DCME-320-L, <=9.…9.8
- CVE-2024-52778DCME-320 <=7.4.12.90, DCME-520 <=9.25.5.11, DCME-320-L <=9.3…9.8
- CVE-2024-52779DCME-320 <=7.4.12.90, DCME-520 <=9.25.5.11, DCME-320-L <=9.3…9.8
- CVE-2024-52780DCME-320 <=7.4.12.90, DCME-520 <=9.25.5.11, DCME-320-L <=9.3…9.8
- CVE-2024-52781DCME-320 <=7.4.12.90, DCME-520 <=9.25.5.11, DCME-320-L <=9.3…9.8
- CVE-2024-52782DCME-320 <=7.4.12.90, DCME-520 <=9.25.5.11, DCME-320-L <=9.3…9.8
- CVE-2024-52783Insecure permissions in the XNetSocketClient component of XI…5.1
- CVE-2024-52786An authentication bypass vulnerability in anji-plus AJ-Repor…9.8
- CVE-2024-52787An issue in the upload_documents method of libre-chat v0.0.6…9.1
Are you affected by CVE-2024-5278?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
