🇰🇷 한글 설명
Keycloak의 동적 클라이언트 등록(DCR) 보안 정책 관리 과정에서 허용된 프로토콜 매퍼 유형을 업데이트 시 재검증하지 않는 결함이 발견되었습니다. 공격자는 권한이 있는 매퍼를 악의적인 설정으로 등록한 뒤, 이를 제한된 고권한 매퍼로 교체하여 Keycloak 렐름의 전체 관리자 권한을 탈취할 수 있습니다.
💡 쉬운 설명
클라이언트 설정이 바뀔 때 보안 검사를 건너뛰는 허점이 있어, 공격자가 허용된 항목을 악용해 관리자 권한을 몰래 얻을 수 있는 문제입니다. 이를 통해 공격자는 시스템의 모든 제어권을 가질 수 있습니다.
🇺🇸 원문 (English)
A flaw was found in Keycloak's Dynamic Client Registration (DCR) security policy management. The "Allowed Protocol Mapper Types" policy, which restricts which types of data mappers a client can use, fails to re-validate the mapper type during a client update if the mapper's configuration remains unchanged. An attacker with client registration privileges can exploit this by first registering an allowed mapper type with a malicious configuration and then swapping it for a restricted, high-privilege mapper type (such as one that hardcodes administrative roles). This allows the attacker to gain full administrative access to the Keycloak realm.
📍 영향받는 시스템
Keycloak (Dynamic Client Registration 기능이 활성화된 버전)
⚔️ 공격 벡터
DCR 권한을 가진 공격자가 허용된 매퍼 유형을 등록한 후, 설정 변경 없이 매퍼 유형만 고권한 유형으로 교체하는 방식
🛡️ 대응 방법
Keycloak을 최신 보안 패치가 적용된 버전으로 업데이트하고, DCR 정책을 엄격하게 관리하십시오.
🔧 검증 코드
출력된 버전 정보가 해당 취약점이 해결된 보안 패치 버전 이상인지 확인하십시오.
curl -s http://<keycloak-host>/auth/realms/<realm-name> | grep -i 'version'