CVE-2024-3234
Path Traversal in gaizhenbiao/chuanhuchatgpt
Record summary
CVE-2024-3234 has a selected CVSS score of 9.8 (critical); EIP currently links 1 Nuclei template.
Description
The gaizhenbiao/chuanhuchatgpt application is vulnerable to a path traversal attack due to its use of an outdated gradio component. The application is designed to restrict user access to resources within the `web_assets` folder. However, the outdated version of gradio it employs is susceptible to path traversal, as identified in CVE-2023-51449. This vulnerability allows unauthorized users to bypass the intended restrictions and access sensitive files, such as `config.json`, which contains API keys. The issue affects the latest version of chuanhuchatgpt prior to the fixed version released on 20240305.
Exploitation context
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Jun 7, 2024 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
chuanhuchatgptBrowse gaizhenbiao / chuanhuchatgptDefault status: unknown | CVE List | Before 20240305 | affected |
gaizhenbiao/chuanhuchatgptBrowse gaizhenbiao / gaizhenbiao/chuanhuchatgpt | CVE List | Before 20240305 | affected |
Nuclei templates
1ProjectDiscoveryCRITICALChuanhu Chat - Directory TraversalCVSS 9.8
The gaizhenbiao/chuanhuchatgpt application is vulnerable to a path traversal attack due to its use of an outdated gradio component. The application is designed to restrict user access to resources within the `web_assets` folder. However, the outdated version of gradio it employs is susceptible to path traversal, as identified in CVE-2023-51449. This vulnerability allows unauthorized users to bypass the intended restrictions and access sensitive files, such as `config.json`, which contains API keys. The issue affects the latest version of chuanhuchatgpt prior to the fixed version released on 20240305.
Impact
Unauthenticated attackers can exploit path traversal to access sensitive files including API keys in config.json.
Remediation
Update chuanhuchatgpt to the fixed version released on 20240305 or later.
Source: ProjectDiscovery