-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Internal Users able to generate keys using other user's user_id (Vulnerability) #7336
Comments
I am now pretty convinced this is a bug, because there is a check to make sure a non-admin user cannot delete another user's api keys, but there is not a similar check to make sure a user cannot create an api key using another user's chatgpt gave a pretty good summary, which I verified is accurate Relevant code file: https://github.com/BerriAI/litellm/blob/main/litellm/proxy/management_endpoints/key_management_endpoints.py |
investigating. thank you for this issue @mirodrr2 |
able to repro. working on a fix |
this seems specific to the |
What happened?
It seems like non admin users are able to generate keys using other user's
user_id
.The following works:
Request
Response
And now we use that key to try to create a key for a different
user_id
Request
Response
Unless I'm misunderstanding something here, this seems like a major security bug
Relevant log output
No response
Are you a ML Ops Team?
No
What LiteLLM version are you on ?
v1.55.0
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: