🇰🇷 한글 설명
Multicluster Engine for Kubernetes의 특정 이미지에서 빌드 시간에 /etc/passwd 파일이 그룹-쓰기 권한으로 생성되는 컨테이너 권한 상승 취약점입니다. 루트 그룹에 속한 비루트 사용자가 /etc/passwd를 수정하여 UID 0으로 새 사용자를 추가함으로써 컨테이너 내 완전한 루트 권한을 획득할 수 있습니다.
💡 쉬운 설명
쿠버네티스 컨테이너의 암호 파일이 잘못된 권한으로 설정되어 일반 사용자도 수정할 수 있습니다. 공격자는 이를 악용해 관리자 권한을 탈취할 수 있습니다.
🇺🇸 원문 (English)
A container privilege escalation flaw was found in certain Multicluster Engine for Kubernetes images. This issue stems from the /etc/passwd file being created with group-writable permissions during build time. In certain conditions, an attacker who can execute commands within an affected container, even as a non-root user, can leverage their membership in the root group to modify the /etc/passwd file. This could allow the attacker to add a new user with any arbitrary UID, including UID 0, leading to full root privileges within the container.
📍 영향받는 시스템
Multicluster Engine for Kubernetes (특정 컨테이너 이미지 버전)
⚔️ 공격 벡터
컨테이너 내 명령 실행 권한을 가진 비루트 사용자가 /etc/passwd를 수정하여 UID 0 사용자 추가
🛡️ 대응 방법
영향받는 Multicluster Engine 이미지를 보안 패치가 적용된 최신 버전으로 재구축 및 배포
🔧 검증 코드
VULNERABLE이 출력되면 /etc/passwd의 그룹-쓰기 권한 존재 (취약), SAFE이면 권한 제거됨 (안전)
ls -l /etc/passwd 2>/dev/null | cut -c6 | grep -q w && echo VULNERABLE || echo SAFE