🇰🇷 한글 설명
Apache ZooKeeper의 감사 로그(audit log) 기능이 활성화된 경우, 인증되지 않은 공격자가 사용자 이름에 탭( ) 문자를 삽입하여 임의의 필드를 주입할 수 있는 로그 인젝션 취약점입니다. 이를 통해 공격자는 감사 로그의 결과를 조작하거나 운영 유형을 위조하여 포렌식 증거를 오염시킬 수 있습니다.
💡 쉬운 설명
로그 기록 파일에 특수 문자를 섞어 보내서, 마치 다른 작업이 성공한 것처럼 기록을 가짜로 만드는 보안 약점입니다. 이로 인해 실제 어떤 일이 일어났는지 확인하는 보안 점검 과정에서 혼란을 줄 수 있습니다.
🇺🇸 원문 (English)
When audit logging is enabled (zookeeper.audit.enable=true), an unauthenticated attacker can inject arbitrary fields into Apache ZooKeeper's audit log by sending a digest authentication request with tab characters (\t) embedded in the username. Because the audit log uses tab-separated key=value format, the injected tabs are parsed as legitimate field separators, allowing the attacker to spoof audit results (e.g., injecting result=success), forge operation types, and corrupt forensic evidence.
A log injection vulnerability in Apache ZooKeeper allows a client that can call setACL to inject forged key-value fields into zookeeper_audit.log. When audit logging is enabled, the server serializes attacker-controlled digest ACL ids into the acl= audit field without escaping tab characters. Because audit events are emitted as tab-separated key=value records, a crafted ACL id can make one successful setAcl event appear to contain forged fields such as operation=delete and znode=/forged. This undermines the integrity of downstream audit parsing, alerting, and incident response.
This issue affects Apache ZooKeeper: from 3.9.0 through 3.9.5, from 3.8.0 through 3.8.6.
Users are recommended to upgrade to version 3.9.6 or 3.8.7, which fixes the issue.
📍 영향받는 시스템
Apache ZooKeeper 3.9.0 ~ 3.9.5, 3.8.0 ~ 3.8.6
⚔️ 공격 벡터
Digest 인증 요청 시 사용자 이름에 탭( ) 문자를 포함하여 전송함으로써 로그 필드 구분자를 조작함
🛡️ 대응 방법
Apache ZooKeeper를 3.9.6 또는 3.8.7 이상의 버전으로 업그레이드하십시오.
🔧 검증 코드
명령어 결과에 취약한 버전 범위(3.8.0-3.8.6 또는 3.9.0-3.9.5)가 나타나면 취약한 상태입니다.
zkServer.sh version 2>/dev/null | grep -E 'ZooKeeper (3\.[89]\.[0-5])'