🇰🇷 한글 설명
Impala 세션 보안을 위한 16바이트 비밀 키가 로그 파일에 노출되는 취약점입니다. 로그에 접근 권한이 있는 인증된 사용자는 타인의 세션 키를 탈취하여 권한 상승을 수행하거나 감사 로그를 조작할 수 있습니다.
💡 쉬운 설명
로그 파일에 사용자의 비밀번호와 같은 중요한 열쇠가 그대로 적혀 있는 상태입니다. 로그를 볼 수 있는 사람이 이 열쇠를 훔쳐서 다른 사람인 척하며 시스템을 마음대로 조작할 수 있습니다.
🇺🇸 원문 (English)
Impala sessions use a 16 byte secret to verify that the session is not being hijacked by another user. However, these secrets appear in the Impala logs, therefore Impala users with access to the logs can use another authenticated user's sessions with specially constructed requests. This means the attacker is able to execute statements for which they don't have the necessary privileges otherwise. Impala deployments with Apache Sentry or Apache Ranger authorization enabled may be vulnerable to privilege escalation if an authenticated attacker is able to hijack a session or query from another authenticated user with privileges not assigned to the attacker. Impala deployments with audit logging enabled may be vulnerable to incorrect audit logging as a user could undertake actions that were logged under the name of a different authenticated user. Constructing an attack requires a high degree of technical sophistication and access to the Impala system as an authenticated user. Mitigation: If an Impala deployment uses Apache Sentry, Apache Ranger or audit logging, then users should upgrade to a version of Impala with the fix for IMPALA-10600. The Impala 4.0 release includes this fix. This hides session secrets from the logs to eliminate the risk of any attack using this mechanism. In lieu of an upgrade, restricting access to logs that expose secrets will reduce the risk of an attack. Restricting access to the Impala deployment to trusted users will also reduce the risk of an attack. Log redaction techniques can be used to redact secrets from the logs.
📍 영향받는 시스템
Apache Impala (Impala 4.0 미만 버전)
⚔️ 공격 벡터
로그 파일에 노출된 세션 비밀 키를 탈취하여 타인의 세션을 하이재킹하고 권한이 없는 명령을 실행
🛡️ 대응 방법
Impala 4.0 이상 버전으로 업그레이드하거나, 로그 파일에 대한 접근 권한을 엄격히 제한하고 로그 마스킹을 적용
🔧 검증 코드
명령어 결과에 4.0 이상의 버전 번호가 출력되면 취약점이 해결된 상태입니다.
impala-shell -q 'SELECT version()' 2>/dev/null | grep -E '4\.[0-9]+'