🇰🇷 한글 설명
Glance 0.8.5 이하 버전의 인증 핸들러에는 IP 주소 위조 취약점이 존재합니다. server proxied 옵션이 활성화된 경우 공격자가 X-Forwarded-For 헤더의 값을 임의로 조작할 수 있습니다. 이를 통해 무차별 대입 잠금 기능을 우회하여 무제한 자격 증명 추측 공격이 가능해집니다.
💡 쉬운 설명
공격자가 로그인 요청마다 다른 IP 주소인 것처럼 속일 수 있습니다. 그 결과 로그인 실패가 누적되어도 계정이 잠기지 않아 비밀번호를 계속 시도할 수 있습니다.
🇺🇸 원문 (English)
Glance through 0.8.5 contains an IP address spoofing vulnerability in the authentication handler that allows unauthenticated attackers to bypass brute-force lockout protections by supplying arbitrary values in the X-Forwarded-For request header when the server proxied option is enabled. Attackers can manipulate the leftmost value of the X-Forwarded-For header to make each login attempt appear to originate from a distinct IP address, preventing the per-IP failed-login counter from reaching the lockout threshold and enabling unlimited credential guessing against the authentication endpoint.
📍 영향받는 시스템
Glance 0.8.5 이하 버전 (server proxied 옵션 활성화 시)
⚔️ 공격 벡터
인증 요청의 X-Forwarded-For 헤더 가장 왼쪽 값을 매번 다르게 설정하여 IP별 실패 횟수 제한을 우회
🛡️ 대응 방법
Glance를 0.8.5보다 높은 패치 버전으로 업그레이드하고, 프록시 뒤에서 신뢰할 수 있는 프록시 IP만 X-Forwarded-For를 신뢰하도록 설정
🔧 검증 코드
출력된 버전이 0.8.5 이하이면 취약하며, 0.8.5보다 높은 버전이면 이 CVE에 대해 패치된 것입니다. 아무 결과도 없으면 설치되어 있지 않은 것입니다.
pip show glance 2>/dev/null | grep -i version || glance --version 2>/dev/null || docker ps --format '{{.Image}}' 2>/dev/null | grep -i glance