🇰🇷 한글 설명
Nuclio의 Dashboard 빌드 파이프라인에서 spec.build.tempDir 필드에 대한 검증이 누락되어 발생한 취약점입니다. Kaniko 컨테이너 빌더가 활성화된 경우, 권한을 가진 사용자가 쉘 메타문자를 주입하여 Dashboard 컨테이너 내에서 임의의 명령을 실행할 수 있습니다. 이 컨테이너는 네임스페이스 내의 Secret, Pod, Job 등에 대한 와일드카드 권한을 가진 Kubernetes 서비스 계정으로 실행됩니다.
💡 쉬운 설명
Nuclio라는 시스템의 설정값에 악성 명령어를 몰래 끼워 넣어 관리자 권한을 탈취할 수 있는 보안 약점입니다. 공격자가 이 취약점을 이용하면 시스템의 중요한 정보에 접근하거나 제어권을 완전히 가져갈 수 있습니다.
🇺🇸 원문 (English)
Nuclio is a "Serverless" framework for Real-Time Events and Data Processing. From version 1.6.19 to before version 1.17.2, Nuclio's Dashboard build pipeline does not sanitize the spec.build.tempDir field before using it to construct a shell command. When the Kaniko container builder is enabled, a user with function-create permission can inject shell metacharacters into this field and achieve arbitrary command execution inside the Dashboard container, which runs with a Kubernetes service account holding wildcard access to Secrets, Pods, Jobs, and Deployments in its namespace. This issue has been patched in version 1.17.2.
📍 영향받는 시스템
Nuclio version 1.6.19 to before 1.17.2 (Kaniko builder enabled)
⚔️ 공격 벡터
spec.build.tempDir 필드에 쉘 메타문자를 주입하여 Dashboard 컨테이너 내에서 명령 실행
🛡️ 대응 방법
Nuclio를 보안 패치가 적용된 버전 1.17.2 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 정보가 1.17.2 미만인 경우 해당 취약점에 노출된 상태입니다.
curl -s http://<nuclio-dashboard-url>/version | grep -E '1/(1[6-7]
?
?|17
?
?)[0-6]
?
?'