🔍 CVE-2022-23551

5.3
CVSS Score
MEDIUM
2022-12-21
2026-06-17 04:30
✅ 완료

🇰🇷 한글 설명

AAD Pod Identity의 NMI 구성 요소가 정규표현식을 사용하여 토큰 요청을 검증할 때 발생하는 취약점입니다. 공격자가 요청 경로에 백슬래시(\\)를 삽입하면 검증을 우회하여 IMDS에 접근할 수 있으며, 이를 통해 권한이 없는 ID를 탈취할 수 있습니다.

💡 쉬운 설명

인증을 확인하는 필터가 특정 특수문자를 제대로 걸러내지 못하는 문제입니다. 이를 이용하면 해커가 허가되지 않은 권한을 몰래 가져갈 수 있습니다.

🇺🇸 원문 (English)

aad-pod-identity assigns Azure Active Directory identities to Kubernetes applications and has now been deprecated as of 24 October 2022. The NMI component in AAD Pod Identity intercepts and validates token requests based on regex. In this case, a token request made with backslash in the request (example: `/metadata/identity\oauth2\token/`) would bypass the NMI validation and be sent to IMDS allowing a pod in the cluster to access identities that it shouldn't have access to. This issue has been fixed and has been included in AAD Pod Identity release version 1.8.13. If using the AKS pod-managed identities add-on, no action is required. The clusters should now be running the version 1.8.13 release.

📍 영향받는 시스템

AAD Pod Identity 1.8.13 미만 버전

⚔️ 공격 벡터

토큰 요청 경로에 백슬래시(\\)를 포함시켜 NMI의 정규표현식 검증을 우회하는 방식

🛡️ 대응 방법

AAD Pod Identity를 1.8.13 버전 이상으로 업데이트하십시오.

🔧 검증 코드

명령어 결과에 '1.8.13' 이상의 버전이 포함되어 있는지 확인하여 패치 여부를 판단합니다.

Shell / Script
kubectl get deployment -n kube-system aad-nmi -o jsonpath='{.spec.template.spec.containers[0].image}' | grep -E 'aad-pod-identity:([0-8]\.[1-8]\.[0-9]|1\.8\.13)'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Azure