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 users 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 users private chat history.
The product uses a dedicated, central data manager component as required by design, but it contains code that performs data-access operations that do not use this data manager.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Chuanhuchatgpt | Gaizhenbiao | 2024-06-28 (including) | 2024-06-28 (including) |
This issue can make the product perform more slowly than intended, since the intended central data manager may have been explicitly optimized for performance or other quality characteristics. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.