LiteLLM allows an authenticated internal_user to create API keys with access to routes that their role does not permit
LiteLLM did not check that the allowed_routes field on a new API key was within the creating user's own permissions. An authenticated internal_user could create a key with access to admin-only routes and then use it to reach those routes, escalating to proxy_admin.
BerriAI/litellm
Originally disclosed on huntr
LiteLLM prior to 1.83.14 allows an authenticated internal_user to create API keys with access to routes that their role does not permit. When generating a key, the allowed_routes field is stored without verifying that the specified routes fall within the user's own permissions. A key created with access to admin-only routes can then be used to reach those routes successfully, bypassing the role-based access controls that would otherwise block the request, enabling full privilege escalation from internal_user to proxy_admin.
From the GitHub Advisory Database (GHSA-qrc4-49gv-mv9m, 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
Impact
An authenticated internal_user could escalate to proxy_admin and reach admin-only routes, bypassing role-based access controls.
What the attacker needed
An authenticated internal_user account
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.
LiteLLM is a proxy that sits in front of language models and uses roles to decide what each user may do. A normal user could create an API key and, when doing so, list routes that only an administrator should reach. The system saved that list without checking it, so the key worked on admin routes and the user gained admin power.
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.