🇰🇷 한글 설명
Trivy 보안 스캐너가 악의적으로 조작된 레지스트리의 컨테이너 이미지를 스캔할 때 AWS ECR, Google Artifact Registry, Azure ACR과 같은 정당한 레지스트리의 자격 증명이 유출될 수 있는 취약점입니다. 유출된 토큰을 통해 공격자가 해당 사용자의 권한으로 이미지를 푸시하거나 풀 수 있습니다. 이 문제는 0.51.2 버전에서 수정되었습니다.
💡 쉬운 설명
해커가 만든 가짜 저장소에서 이미지를 검사하게 만들면, 사용자의 중요한 로그인 정보가 해커에게 넘어갈 수 있는 문제입니다. 이 정보가 유출되면 해커가 사용자의 클라우드 저장소에 마음대로 접근할 수 있습니다.
🇺🇸 원문 (English)
Trivy is a security scanner. Prior to 0.51.2, if a malicious actor is able to trigger Trivy to scan container images from a crafted malicious registry, it could result in the leakage of credentials for legitimate registries such as AWS Elastic Container Registry (ECR), Google Cloud Artifact/Container Registry, or Azure Container Registry (ACR). These tokens can then be used to push/pull images from those registries to which the identity/user running Trivy has access. Systems are not affected if the default credential provider chain is unable to obtain valid credentials. This vulnerability only applies when scanning container images directly from a registry. This vulnerability is fixed in 0.51.2.
📍 영향받는 시스템
Trivy 0.51.2 미만 버전 (레지스트리 직접 스캔 시)
⚔️ 공격 벡터
악의적으로 조작된 레지스트리로부터 컨테이너 이미지를 스캔하도록 유도하여 자격 증명 탈취
🛡️ 대응 방법
Trivy를 0.51.2 이상의 최신 버전으로 업데이트
🔧 검증 코드
출력된 버전 번호가 0.51.2보다 낮은지 확인