🇰🇷 한글 설명
Portkey AI Gateway 1.15.2 이하 버전의 /v1/proxy/* 경로에서 요청 검증 미들웨어 부재로 인한 서버 측 요청 위조(SSRF) 취약점이 발견되었습니다. 공격자는 x-portkey-custom-host 헤더를 조작하여 내부 네트워크에 접근하거나 인증 헤더를 전달함으로써 내부 서비스에 접속하고 API 키를 탈취할 수 있습니다.
💡 쉬운 설명
공격자가 가짜 주소를 입력하여 서버가 내부의 중요한 정보나 다른 컴퓨터에 대신 접속하게 만드는 보안 구멍입니다. 이를 통해 회사의 비밀번호나 중요한 API 키가 외부로 유출될 위험이 있습니다.
🇺🇸 원문 (English)
Portkey AI Gateway through 1.15.2 contains a server-side request forgery vulnerability in the /v1/proxy/* route that lacks requestValidator middleware. Attackers can set the x-portkey-custom-host header to internal addresses and forward requests with Authorization headers to reach internal services and exfiltrate provider API keys.
📍 영향받는 시스템
Portkey AI Gateway 1.15.2 이하 버전
⚔️ 공격 벡터
x-portkey-custom-host 헤더를 조작하여 내부 네트워크 주소로 요청을 전달하는 SSRF 공격
🛡️ 대응 방법
Portkey AI Gateway를 최신 버전으로 업데이트하거나 요청 검증 미들웨어를 적용하십시오.
🔧 검증 코드
명령어 실행 시 내부 서비스(localhost 등)의 응답이 반환되면 취약한 상태입니다.
curl -I -H 'x-portkey-custom-host: localhost' http://<target-ip>/v1/proxy/test
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
💻 영향받는 소프트웨어
Spring Cloud Gateway Server