Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-5278— Unrestricted File Upload leading to RCE in gaizhenbiao/chuanhuchatgpt

Quick assessment

Affected
gaizhenbiao gaizhenbiao/chuanhuchatgpt
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

ChuanhuChatGPT是为ChatGPT/ChatGLM/LLaMA/StableLM/MOSS等多种LLM提供了一个轻快好用的Web图形界面。 ChuanhuChatGPT 20240310及之前版本存在代码问题漏洞,该漏洞源于对上传文件类型的验证不足,允许攻击者上传具有任意扩展名的文件,可能导致存储型跨站脚本攻击以及远程代码执行(RCE)。

AI Predicted 9.8 Difficulty: Trivial EPSS 0.59% · P46
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-5278

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Unrestricted File Upload leading to RCE in gaizhenbiao/chuanhuchatgpt
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
危险类型文件的不加限制上传
Source: CVE Program / CVE List V5
Vulnerability Title
ChuanhuChatGPT 代码问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
ChuanhuChatGPT是为ChatGPT/ChatGLM/LLaMA/StableLM/MOSS等多种LLM提供了一个轻快好用的Web图形界面。 ChuanhuChatGPT 20240310及之前版本存在代码问题漏洞,该漏洞源于对上传文件类型的验证不足,允许攻击者上传具有任意扩展名的文件,可能导致存储型跨站脚本攻击以及远程代码执行(RCE)。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
gaizhenbiao gaizhenbiao/chuanhuchatgpt unspecified ~ 20240919 -

II. Public POCs for CVE-2024-5278

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-5278

请登录查看更多情报信息。

Vendor Advisories for CVE-2024-5278 (1)

Same Patch Batch · gaizhenbiao · 2024-06-06 · 5 CVEs total

CVE-2024-5124 Timing Attack Vulnerability in gaizhenbiao/chuanhuchatgpt
CVE-2024-3402 Stored XSS vulnerability in gaizhenbiao/chuanhuchatgpt
CVE-2024-3234 Path Traversal in gaizhenbiao/chuanhuchatgpt
CVE-2024-3404 Improper Access Control in gaizhenbiao/chuanhuchatgpt

IV. Related Vulnerabilities

V. Comments for CVE-2024-5278

No comments yet


Leave a comment