🇰🇷 한글 설명
Portkey AI Gateway 1.14.0부터 1.15.2 버전에서 인증되지 않은 공격자가 서버 측 요청 위조(SSRF)를 수행할 수 있는 취약점이 발견되었습니다. TRUSTED_CUSTOM_HOSTS 설정이 되어 있지 않을 경우 isValidCustomHost 함수가 localhost 스타일의 호스트를 신뢰하여, 공격자가 내부 루프백 및 Docker 호스트 서비스에 접근할 수 있습니다.
💡 쉬운 설명
해커가 특수한 요청을 보내 서비스가 내부적으로만 사용하는 비밀 통로에 접근하게 만드는 보안 결함입니다. 이를 통해 공격자는 서버 내부의 중요한 정보나 다른 서비스에 몰래 접속할 수 있습니다.
🇺🇸 원문 (English)
Portkey AI Gateway 1.14.0 through 1.15.2 contains a server-side request forgery vulnerability that allows unauthenticated attackers to reach loopback and Docker host services because isValidCustomHost trusts localhost-style hosts when TRUSTED_CUSTOM_HOSTS is unset. Attackers can send /v1 requests with a crafted x-portkey-custom-host header, such as via the ollama provider, to make the gateway call internal services and return their responses.
📍 영향받는 시스템
Portkey AI Gateway 1.14.0 ~ 1.15.2
⚔️ 공격 벡터
x-portkey-custom-host 헤더에 조작된 localhost 주소를 포함하여 /v1 요청 전송
🛡️ 대응 방법
Portkey AI Gateway를 최신 버전으로 업데이트하거나 TRUSTED_CUSTOM_HOSTS 환경 변수를 적절히 설정하십시오.
🔧 검증 코드
명령어 결과에 취약한 버전 범위(1.14.x 또는 1.15.x)가 나타나면 해당 시스템은 취약한 상태입니다.
npm list -g portkey-ai-gateway --depth=0 | grep -E 'portkey-ai-gateway@1\.(14|15)\.'