🇰🇷 한글 설명
Pi-hole은 클라이언트 측 소프트웨어 설치 없이 원치 않는 콘텐츠로부터 기기를 보호하는 DNS 싱크홀입니다. 6.4.2부터 6.5 이전 버전에서는 root 권한으로 실행되는 updatecheck.sh cron 작업이 pihole 사용자가 소유한 디렉터리의 심볼릭 링크를 따라가며 /etc/pihole/versions 파일에 truncate와 chmod를 적용하여, 공격자가 임의의 root 소유 파일을 잘라내거나 민감한 파일을 전 세계에서 읽을 수 있게 만들 수 있습니다. 이 문제는 6.5 버전에서 수정되었습니다.
💡 쉬운 설명
Pi-hole의 자동 점검 작업이 파일 경로를 잘못 따라가는 결함이 있습니다. 악의적인 사용자가 이를 악용해 시스템의 중요한 파일을 망가뜨리거나 누구나 읽을 수 있게 만들 수 있습니다.
🇺🇸 원문 (English)
Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. From 6.4.2 until 6.5, the root-run advanced/Scripts/updatecheck.sh cron job applies truncate -s 0 and chmod 644 to /etc/pihole/versions while following symbolic links in a directory owned by the pihole user. An attacker executing as pihole can replace that path with a symlink so the scheduled root operations truncate or create an arbitrary root-owned file, or race the operations so chmod makes a sensitive target world-readable without truncating it. This issue is fixed in version 6.5.
📍 영향받는 시스템
Pi-hole 6.4.2 이상 6.5 미만 버전
⚔️ 공격 벡터
pihole 사용자 권한을 가진 공격자가 /etc/pihole/versions 경로를 심볼릭 링크로 바꿔 root 실행 cron 작업이 임의 파일을 truncate하거나 chmod하도록 유도합니다.
🛡️ 대응 방법
Pi-hole을 6.5 이상으로 업데이트합니다.
🔧 검증 코드
출력된 Core 버전이 6.5 미만이면 취약하며, 6.5 이상이면 패치가 적용된 것입니다.
pihole -v 2>/dev/null | grep -i 'core'