🇰🇷 한글 설명
text-generation-inference 3.3.7 이하 버전의 OpenAI 호환 멀티모달 채팅 완료 엔드포인트에서 서버 측 요청 위조(SSRF) 취약점이 발견되었습니다. 공격자가 조작된 image_url 값을 제공하면 인증 없이 서버가 내부 네트워크나 클라우드 메타데이터 엔드포인트로 임의의 HTTP GET 요청을 보내도록 강제할 수 있습니다. router/src/validation.rs의 fetch_image 함수가 내부 주소에 대한 검증을 수행하지 않고 리다이렉트를 허용하기 때문에 발생합니다.
💡 쉬운 설명
해커가 가짜 이미지 주소를 보내면, 인공지능 서버가 그 주소를 읽으려다 실수로 회사의 내부 네트워크나 비밀 정보가 담긴 서버에 접속하게 만드는 공격입니다. 이를 통해 해커는 내부망을 탐색하거나 중요한 관리자 권한을 훔칠 수 있습니다.
🇺🇸 원문 (English)
text-generation-inference through 3.3.7 contains a server-side request forgery (SSRF) vulnerability in the OpenAI-compatible multimodal chat completions endpoint that allows unauthenticated network attackers to coerce the server into issuing arbitrary HTTP GET requests by supplying a crafted image_url value in chat message content. The fetch_image function in router/src/validation.rs performs no validation of private, loopback, link-local, or cloud metadata target addresses, and the reqwest HTTP client follows redirects by default, enabling attackers to bypass scheme checks via redirect chains to reach internal services and cloud instance-metadata endpoints for internal port scanning and credential theft.
📍 영향받는 시스템
text-generation-inference version 3.3.7 and below
⚔️ 공격 벡터
OpenAI 호환 엔드포인트의 chat message 내 image_url 값에 조작된 내부 네트워크 주소 삽입
🛡️ 대응 방법
text-generation-inference를 최신 보안 패치가 적용된 버전으로 업데이트하고, 내부 네트워크 접근을 제한하는 방화벽 설정을 적용하십시오.
🔧 검증 코드
출력된 버전 번호가 3.3.7 이하인지 확인하십시오.
pip show text-generation-inference | grep Version