🇰🇷 한글 설명
Elasticsearch의 권한 위임 기능에서 권한 범위가 제대로 강제되지 않는 권한 부여 오류(CWE-863)가 발견되었습니다. 관리자가 특정 인덱스에 한정하여 역할 관리 권한을 위임할 때, 인덱스 패턴 설정의 허점을 이용하면 위임받은 사용자가 자신의 권한을 확장하여 내부 보안 데이터에 접근하거나 클러스터 전체의 관리자 권한을 탈취할 수 있습니다.
💡 쉬운 설명
관리자가 특정 부분만 관리하도록 권한을 나눠줬는데, 이 권한을 가진 사람이 규칙을 교묘하게 바꿔서 시스템 전체를 관리할 수 있게 되는 문제입니다. 결과적으로 일반 사용자가 관리자 권한을 훔쳐낼 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
Incorrect Authorization (CWE-863) in Elasticsearch can lead to Privilege Escalation via a delegated administrative privilege whose scope is not fully enforced during authorization checks. Elasticsearch contains an incorrect authorization weakness in a configurable, non-default privilege that lets an administrator delegate limited role-management capability to another user, scoped to specific indices. The authorization check that enforces this scoping does not correctly account for a role-definition setting that can expand the matched index set. A user holding this delegated privilege with a broadly-scoped index pattern can exploit this inconsistency by updating their own assigned role to gain access to indices that should remain restricted, including internal security data. This can enable further escalation up to full administrative control of the cluster.
📍 영향받는 시스템
Elasticsearch (권한 위임 기능이 설정된 특정 버전)
⚔️ 공격 벡터
위임된 역할 관리 권한을 가진 사용자가 인덱스 패턴 설정을 조작하여 자신의 권한 범위를 확장하는 방식
🛡️ 대응 방법
Elasticsearch를 최신 보안 패치가 적용된 버전으로 업데이트하고, 권한 위임 시 인덱스 패턴 범위를 엄격히 제한하십시오.
🔧 검증 코드
위임된 역할의 인덱스 패턴 설정이 의도한 범위 내로 제한되어 있는지 확인하십시오.
curl -u admin:password -X GET "localhost:9200/_security/role/delegated_role_name" | grep -E 'indices' || echo 'Role not found'