🇰🇷 한글 설명
Kubernetes ingress-nginx의 auth-url Ingress annotation을 통해 nginx 설정을 주입할 수 있는 취약점입니다. 이는 ingress-nginx 컨트롤러 컨텍스트에서 임의 코드 실행 및 클러스터 전체 Secret 유출을 야기합니다.
💡 쉬운 설명
Kubernetes 설정 오류로 인해 공격자가 악의적인 명령을 실행할 수 있습니다. 민감한 정보가 유출되고 시스템이 제어될 수 있습니다.
🇺🇸 원문 (English)
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingress annotation can be used to inject configuration into nginx. This can lead to arbitrary code execution in the context of the ingress-nginx controller, and disclosure of Secrets accessible to the controller. (Note that in the default installation, the controller can access all Secrets cluster-wide.)
📍 영향받는 시스템
Kubernetes ingress-nginx (v1.9.x 이전 버전)
⚔️ 공격 벡터
auth-url annotation에 악의적인 nginx 설정 주입하여 RCE 실행
🛡️ 대응 방법
ingress-nginx를 최신 보안 패치 버전으로 즉시 업그레이드
🔧 검증 코드
출력된 이미지 태그의 버전을 확인하여 패치 버전 이상인지 검증합니다.
kubectl get deployment -n ingress-nginx ingress-nginx-controller -o jsonpath='{.spec.template.spec.containers[0].image}' 2>/dev/null