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 users username to the get_model function, thereby gaining unauthorized access to that users chat history.
The product implements an authentication technique, but it skips a step that weakens the technique.