LiteLLM Has an Improper Authorization Vulnerability
A user with the 'internal_user_viewer' role receives an API key that grants access to admin-only endpoints such as '/users/list' and '/users/get_users'. This allows any such account to escalate privileges to PROXY ADMIN.
BerriAI/litellm
Originally disclosed on huntr
An improper authorization vulnerability exists in the main-latest version of BerriAI/litellm. When a user with the role 'internal_user_viewer' logs into the application, they are provided with an overly privileged API key. This key can be used to access all the admin functionality of the application, including endpoints such as '/users/list' and '/users/get_users'. This vulnerability allows for privilege escalation within the application, enabling any account to become a PROXY ADMIN.
From the GitHub Advisory Database (GHSA-fjcf-3j3r-78rp, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the API key issued to the 'internal_user_viewer' role is not scoped to that role and is accepted by admin endpoints.
Impact
Any account with the 'internal_user_viewer' role could escalate to PROXY ADMIN and access admin functionality.
What the attacker needed
An account with the 'internal_user_viewer' role
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In this application, users have different roles that decide what they can do. A viewer role is meant to be low privilege, but here the key given to that user also works for admin actions. So a low-level user can act like an administrator.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.