(Pwn2Own) LiteLLM Secret Manager oidc Resolver Information Disclosure Vulnerability
The secret resolution handler in LiteLLM fails to validate user-supplied input before using it to access environment variables, allowing an authenticated remote attacker to disclose sensitive information. This flaw can be chained with other vulnerabilities to execute arbitrary code as the service account.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of LiteLLM. Authentication is required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 secret resolution handler does not validate or restrict the user-supplied secret name before using it to read environment variables.
Impact
An authenticated attacker could disclose sensitive information and, by combining this with other vulnerabilities, potentially execute arbitrary code as the service account.
What the attacker needed
Authentication required
The fix
LiteLLM has issued an update to correct this vulnerability.
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 resolves secrets. When it looks up a secret, it trusts the user-supplied name, so an authenticated attacker can make it disclose sensitive information from environment variables.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.