제출 #811282: litellm <= 1.59.8 Improper Authentication (CWE-287)정보

제목litellm <= 1.59.8 Improper Authentication (CWE-287)
설명# Technical Details An Authentication Bypass vulnerability exists in the `process_mcp_request` method in `litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.py` of litellm. The application fails to properly fail closed when a user utilizes a bad or forged authentication token to access backends, resulting in 401 and 403 `HTTPException` exceptions being universally swallowed without action. # Vulnerable Code File: `litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.py` Method: `process_mcp_request` Why: The authentication logic intercepts `HTTPException` classes during token checks but simply passes rather than halting execution. It mistakenly instantiates a default `UserAPIKeyAuth()` response object. If an `allow_all_keys: true` MCP server exists behind the proxy, the request automatically proxies blindly as an authenticated interaction. # Reproduction 1. Set up a LiteLLM Proxy hosting any MCP server equipped with the `allow_all_keys: true` boolean. 2. Send an incoming `POST` request to the proxy hitting the MCP endpoint specifying an entirely fake header (e.g., `Authorization: Bearer FAKE_TOKEN`). 3. The proxy will swallow the core credential failure, generating a `UserAPIKeyAuth()` entity, and route the API call to the target backend returning a success (`HTTP 200`). # Impact - Systemic Authentication Bypass exposing protected tools via the MCP mechanism. - Possible Remote Code Execution (RCE) or Critical Data Exposure depending entirely upon the underlying MCP service configured behind the wall.
원천⚠️ https://gist.github.com/YLChen-007/3cfaad10a69d7a15e4d4d458cb53309e
사용자
 Eric-c (UID 96848)
제출2026. 04. 23. AM 09:57 (4 개월 ago)
모더레이션2026. 06. 20. AM 11:26 (2 months later)
상태수락
VulDB 항목372515 [BerriAI litellm 까지 1.59.8 MCP Proxy user_api_key_auth_mcp.py UserAPIKeyAuth 약한 인증]
포인트들20

Do you want to use VulDB in your project?

Use the official API to access entries easily!