🔍 CVE-2026-59341

4.2
CVSS Score
MEDIUM
2026-09-15
2026-09-18 19:21
✅ 완료

🇰🇷 한글 설명

Sealed Secrets 컨트롤러의 인증되지 않은 POST 엔드포인트에서 발생하는 보안 취약점입니다. 공격자가 spec.template.data 필드에 커스텀 Go 템플릿 로직을 삽입하여 복호화 오라클 공격을 수행함으로써, 내부 네트워크에 접근 가능한 사용자가 모든 Sealed Secret의 평문을 탈취할 수 있습니다.

💡 쉬운 설명

비밀번호를 암호화해주는 프로그램의 허점을 이용해, 암호화된 내용을 한 글자씩 추측하여 알아낼 수 있는 문제입니다. 공격자가 특수한 명령어를 보내면 프로그램이 성공/실패 여부를 알려주는데, 이 차이를 이용해 비밀번호를 모두 읽어낼 수 있습니다.

🇺🇸 원문 (English)

A security vulnerability exists in the Sealed Secrets controller's unauthenticated POST endpoints. By submitting a modified payload containing custom Go template logic in spec.template.data, an attacker with internal network access can abuse the handler as a decryption oracle to recover the full plaintext of any sealed secret. The POST /v1/verify and /v1/rotate handlers call Unseal() to decrypt target secrets, then render any Go templates found in spec.template.data.* using the decrypted payload as the evaluation context (pkg/apis/sealedsecrets/v1alpha1/sealedsecret_expansion.go). Errors encountered during template execution are directly reflected in the resulting HTTP response status codes. Missing AEAD label binding: the spec.template.data field is omitted from the AEAD authenticated-data label binding ciphertext to metadata. As a result, an attacker can copy a target's valid metadata and encryptedData verbatim, satisfying AEAD decryption and label validation, while freely replacing spec.template.data with arbitrary template logic. Side-channel oracle: template execution errors map directly to HTTP response codes. HTTP 200 (OK) indicates template execution succeeded; HTTP 409 (Conflict) indicates template execution failed (e.g. via {{ fail "..." }}). By injecting conditional statements such as {{ if eq (substr 0 1 .password) "S" }}ok{{ else }}{{ fail "x" }}{{ end }}, an attacker receives an HTTP 200 status when a character guess is correct and an HTTP 409 when it is incorrect. This differential response leaks one character-equality bit per request, allowing full secret extraction over successive queries. Attack vector & prerequisites: unauthenticated; requires network access to the controller's internal service port (:8080). Although this service is not exposed to the public internet by default, it is accessible to any pod within the Kubernetes cluster or via a kubectl port-forward connection.

📍 영향받는 시스템

Sealed Secrets controller (unauthenticated POST endpoints /v1/verify, /v1/rotate 사용 버전)

⚔️ 공격 벡터

내부 네트워크 접근 권한을 가진 공격자가 Go 템플릿 주입을 통한 사이드 채널 오라클 공격 수행

🛡️ 대응 방법

Sealed Secrets 컨트롤러를 최신 보안 패치 버전으로 업데이트하고, 컨트롤러 서비스에 대한 네트워크 접근 제어(RBAC 및 NetworkPolicy)를 강화하십시오.

🔧 검증 코드

출력된 이미지 태그가 취약점이 해결된 최신 버전인지 확인하십시오.

Shell / Script
kubectl get pods -A -l app.kubernetes.io/name=sealed-secrets -o jsonpath='{.items[*].spec.containers[*].image}'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Cisco Crosswork Network Controller