MEDIUM4.3
PYSEC-2024-113
Quick fix
PYSEC-2024-113 — chuanhuchatgpt: upgrade to the fixed version with the command below.
pip install --upgrade 'chuanhuchatgpt>=ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/chuanhuchatgpt
Introduced in:
0Fixed in: ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2bFix
pip install --upgrade 'chuanhuchatgpt>=ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b'