🇰🇷 한글 설명
Wazuh의 DistributedAPI.send_tmp_file() 함수에서 경로 정규화 및 제한이 누락되어 발생하는 취약점입니다. 클러스터 피어가 경로 탐색 또는 절대 경로를 사용하여 마스터 노드의 임의 파일을 읽을 수 있으며, 이를 통해 관리자 권한을 탈취할 수 있습니다.
💡 쉬운 설명
해커가 보안 시스템의 내부 파일을 몰래 읽어낼 수 있는 결함입니다. 이 파일을 이용하면 관리자 계정 없이도 시스템의 모든 권한을 마음대로 휘두를 수 있습니다.
🇺🇸 원문 (English)
Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.0.0 until 4.14.6 and 5.0.0-beta3, DistributedAPI.send_tmp_file() in framework/wazuh/core/cluster/dapi/dapi.py joins an attacker-controlled tmp_file value to WAZUH_PATH without canonicalization or confinement. A cluster peer holding the shared Fernet key can use traversal or an absolute path to make the master return any readable file over the cluster channel. Reading /var/ossec/api/configuration/security/private_key.pem allows the peer to forge administrator REST API tokens offline and then exercise administrative privileges without creating an account. This issue is fixed in versions 4.14.6 and 5.0.0-beta3.
📍 영향받는 시스템
Wazuh 4.0.0 ~ 4.14.6 및 5.0.0-beta3
⚔️ 공격 벡터
클러스터 피어가 경로 탐색(Path Traversal)을 통해 마스터 노드의 민감한 파일을 요청하여 탈취
🛡️ 대응 방법
Wazuh를 4.14.6 또는 5.0.0-beta3 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 4.14.6 미만이거나 5.0.0-beta3 미만인 경우 취약한 상태입니다.
python3 -c 'import pkg_resources; print(pkg_resources.get_distribution("wazuh").version)' 2>/dev/null || wazuh-control info | grep 'Wazuh version'