🇰🇷 한글 설명
LiteLLM 프록시 서버의 Host 헤더 파싱 결함으로 인해 인증되지 않은 사용자가 보호된 관리 경로에 접근할 수 있는 취약점입니다. 인증 계층이 요청 경로를 판단할 때 사용하는 방식과 FastAPI가 실제 요청을 처리하는 방식 간의 불일치를 악용합니다. 이 문제는 1.84.0 버전에서 수정되었습니다.
💡 쉬운 설명
공격자가 가짜 주소 정보를 담은 요청을 보내면, 보안 검사기는 정상적인 페이지로 인식하지만 실제로는 관리자 전용 페이지에 접속되는 보안 구멍입니다. 이를 통해 로그인 없이도 서버의 중요한 관리 기능을 조작할 수 있습니다.
🇺🇸 원문 (English)
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.84.0, a Host-header parsing flaw in the LiteLLM proxy could, under specific conditions, allow unauthenticated access to protected management routes. The auth layer derived the effective route from request.url.path in litellm/proxy/auth/auth_utils.py::get_request_route(), which Starlette reconstructs from the Host header. A crafted Host could therefore make the auth gate evaluate a different route from the one FastAPI dispatched. This vulnerability is fixed in 1.84.0.
📍 영향받는 시스템
LiteLLM Proxy 1.84.0 미만 버전
⚔️ 공격 벡터
조작된 Host 헤더를 포함한 HTTP 요청을 통해 인증 우회
🛡️ 대응 방법
LiteLLM 프록시를 1.84.0 이상의 최신 버전으로 업데이트
🔧 검증 코드
출력된 버전 번호가 1.84.0보다 낮으면 취약한 상태입니다.
pip show litellm | grep Version