Description
An authentication bypass vulnerability exists in gaizhenbiao/ChuanhuChatGPT, as of commit 3856d4f, allowing any user to read and delete other users' chat history. The vulnerability arises because the username is provided via an HTTP request from the client side, rather than being read from a secure source like a cookie. This allows an attacker to pass another user's username to the get_model function, thereby gaining unauthorized access to that user's chat history.
Problem types
CWE-304 Missing Critical Step in Authentication
Product status
References
huntr.com/bounties/21e54c3f-e2d7-423b-9890-1f0cb99af4dd