🔍 CVE-2022-31098

9.0
CVSS Score
CRITICAL
2022-06-27
2026-06-17 04:44
✅ 완료

🇰🇷 한글 설명

Weave GitOps의 로깅 취약점으로 인해 인증된 원격 공격자가 관리 클러스터의 포드 로그나 외부 로그 저장소에서 등록된 Kubernetes 클러스터의 민감한 설정 및 서비스 계정 토큰을 평문으로 탈취할 수 있습니다. 클러스터 매니저가 API 서버 연결에 실패할 때 클라이언트 팩토리가 구성 정보를 로그에 남기는 것이 원인입니다. 공격자는 탈취한 정보를 이용해 등록된 Kubernetes 클러스터를 제어할 수 있습니다.

💡 쉬운 설명

프로그램이 오류가 났을 때 기록하는 로그 파일에 클러스터를 관리할 수 있는 중요한 비밀번호(토큰)가 그대로 노출되는 문제입니다. 해커가 이 로그를 볼 수 있다면 여러분의 클러스터를 마음대로 조종할 수 있습니다.

🇺🇸 원문 (English)

Weave GitOps is a simple open source developer platform for people who want cloud native applications, without needing Kubernetes expertise. A vulnerability in the logging of Weave GitOps could allow an authenticated remote attacker to view sensitive cluster configurations, aka KubeConfg, of registered Kubernetes clusters, including the service account tokens in plain text from Weave GitOps's pod logs on the management cluster. An unauthorized remote attacker can also view these sensitive configurations from external log storage if enabled by the management cluster. This vulnerability is due to the client factory dumping cluster configurations and their service account tokens when the cluster manager tries to connect to an API server of a registered cluster, and a connection error occurs. An attacker could exploit this vulnerability by either accessing logs of a pod of Weave GitOps, or from external log storage and obtaining all cluster configurations of registered clusters. A successful exploit could allow the attacker to use those cluster configurations to manage the registered Kubernetes clusters. This vulnerability has been fixed by commit 567356f471353fb5c676c77f5abc2a04631d50ca. Users should upgrade to Weave GitOps core version v0.8.1-rc.6 or newer. There is no known workaround for this vulnerability.

📍 영향받는 시스템

Weave GitOps core version v0.8.1-rc.6 미만 버전

⚔️ 공격 벡터

Weave GitOps 포드의 로그 또는 외부 로그 저장소에 접근하여 평문으로 기록된 클러스터 구성 및 토큰 탈취

🛡️ 대응 방법

Weave GitOps core 버전을 v0.8.1-rc.6 이상으로 업그레이드

🔧 검증 코드

출력된 Weave GitOps의 버전이 v0.8.1-rc.6보다 높은지 확인하십시오.

Shell / Script
helm list -A | grep weave-gitops | awk '{print $4}'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

💻 영향받는 소프트웨어

Kubernetes