CVE-2024-8143 Unauthorized Access to User Chat History in gaizhenbiao/chuanhuchatgpt
Authenticated users can access other users' private chat histories via the /file endpoint due to missing authorization checks.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-8143?
CVE-2024-8143 is a medium-severity missing authorization vulnerability in gaizhenbiao/chuanhuchatgpt, published on 29 Oct 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
In the latest version (20240628) of gaizhenbiao/chuanhuchatgpt, an issue exists in the /file endpoint that allows authenticated users to access the chat history of other users. When a user logs in, a directory is created in the history folder with the user's name. By manipulating the /file endpoint, an authenticated user can enumerate and access files in other users' directories, leading to unauthorized access to private chat histories. This vulnerability can be exploited to read any user's private chat history.
Weakness: CWE-1057
Which versions are affected by CVE-2024-8143?
1 open source package ship an affected version, including chuanhuchatgpt. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
chuanhuchatgpt PyPI | All versions | None |
Products include Gaizhenbiao Chuanhuchatgpt.
How do I fix CVE-2024-8143?
No fix has been published for CVE-2024-8143 yet. Limit exposure of the affected software until one is available.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-8143 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8143 exists.
Other vulnerabilities in gaizhenbiao/chuanhuchatgpt
- CVE-2024-3234 Path Traversal in gaizhenbiao/chuanhuchatgpt
- CVE-2024-5982 Path Traversal in gaizhenbiao/chuanhuchatgpt
- CVE-2024-6255 Path Traversal in gaizhenbiao/chuanhuchatgpt
- CVE-2024-8613 Improper Access Control in gaizhenbiao/chuanhuchatgpt
- CVE-2024-9216 Authentication Bypass in gaizhenbiao/ChuanhuChatGPT
Sources
Also known as GHSA-2h96-7jv3-737m, PYSEC-2024-113.