🇰🇷 한글 설명
rsync 3.5.0 이전 버전에는 송신자의 소스 트리 순회 과정에서 발생하는 심볼릭 링크 경쟁 조건(race condition) 취약점이 존재합니다. 공격자가 소스 트리의 상위 디렉터리를 조작할 수 있는 경우, 경로 확인과 파일 열기 사이에 심볼릭 링크로 교체하여 의도하지 않은 경로의 파일 내용을 읽을 수 있습니다.
💡 쉬운 설명
rsync로 파일을 전송할 때, 공격자가 폴더를 몰래 바꿔치기해서 원래 보내려던 곳 밖의 파일을 읽어낼 수 있는 문제입니다. 공격을 하려면 전송 대상 폴더의 상위 구조를 조작할 수 있는 권한이 필요합니다.
🇺🇸 원문 (English)
rsync before 3.5.0 contains a symlink race condition vulnerability in the sender's source tree traversal that allows an attacker who can manipulate a parent directory of the source tree to redirect file reads to unintended paths. Attackers can atomically replace a parent directory component with a symlink pointing outside the source root between path resolution and file open operations to disclose file contents outside the intended transfer root.
📍 영향받는 시스템
rsync 3.5.0 미만 버전을 사용하는 모든 Linux/Unix 시스템
⚔️ 공격 벡터
공격자가 소스 트리 상위 디렉터리를 조작하여 경로 확인 직후 심볼릭 링크로 교체, 허용되지 않은 외부 파일을 읽도록 유도
🛡️ 대응 방법
rsync를 3.5.0 이상 버전으로 업데이트하고, 전송 소스 디렉터리의 쓰기 권한을 신뢰할 수 있는 사용자로 제한
🔧 검증 코드
출력된 버전 번호가 3.5.0 미만이면 취약하므로 업데이트가 필요하고, 3.5.0 이상이면 패치된 버전입니다.
rsync --version 2>/dev/null | head -n 1