🇰🇷 한글 설명
Prometheus 3.15.1 이하 버전에는 remote_write 요청을 다른 호스트로 리다이렉트할 때 Azure AD 또는 Google IAM 베어러 토큰이 유출되는 취약점이 있습니다. 공격자는 3xx 응답으로 요청을 자신의 서버로 유도해 토큰을 탈취할 수 있습니다.
💡 쉬운 설명
Prometheus 모니터링 도구가 데이터를 보낼 때 사용하는 인증 열쇠가 잘못된 곳으로 전달될 수 있습니다. 공격자는 이 열쇠로 피해 기관의 저장소에 가짜 데이터를 쓸 수 있습니다.
🇺🇸 원문 (English)
Prometheus through 3.15.1 contains a credential leak vulnerability that allows attackers to capture Azure AD or Google IAM bearer tokens by redirecting remote_write requests to another host. Attackers controlling the remote-write endpoint or a redirecting server can return a 3xx to their host and replay the token, for example to write metrics to the victim's backend.
📍 영향받는 시스템
Prometheus 3.15.1 이하 버전 (remote_write 기능 사용 환경)
⚔️ 공격 벡터
공격자가 remote_write 엔드포인트 또는 리다이렉트 서버를 통제하여 3xx 응답으로 토큰을 자신의 호스트로 전송하게 한 뒤 재사용
🛡️ 대응 방법
Prometheus를 3.15.2 이상 버전으로 업그레이드하고, 신뢰할 수 없는 리다이렉트를 차단하며 remote_write 엔드포인트 접근을 제한
🔧 검증 코드
출력된 버전이 3.15.1 이하이면 취약하며, 3.15.2 이상이면 패치된 것입니다.
prometheus --version 2>/dev/null | head -n 1