🇰🇷 한글 설명
rclone 1.75.0 미만 버전에서 FTP 백엔드의 파일 이름 인코딩 처리 미흡으로 인해 발생하는 취약점입니다. 공격자가 조작된 파일 이름을 사용하여 FTP 제어 채널에 CR/LF 문자를 주입함으로써, 권한이 높은 대상 FTP 서버로 파일을 복사할 때 임의의 FTP 명령어를 실행할 수 있습니다.
💡 쉬운 설명
파일 이름에 특수 문자를 섞어 보내면, 프로그램이 이를 명령어로 착각하게 만드는 공격입니다. 이를 통해 공격자는 사용자가 의도하지 않은 파일 삭제 등의 명령을 서버에 내릴 수 있습니다.
🇺🇸 원문 (English)
rclone is a command-line program to sync files and directories to and from different cloud storage providers. Prior to 1.75.0, a valid but nondefault FTP filename encoding in backend/ftp/ftp.go can restore raw CR/LF immediately before an attacker-controlled path is interpolated into the line-oriented FTP control channel, and github.com/jlaffaye/ftp formats the argument through textproto.Conn.Cmd without rejecting CR or LF, allowing a filename such as victim CRLF DELE other-secret CRLF NOOP to inject an independent authenticated FTP command when the victim copies or syncs to a more-privileged FTP destination. This issue is fixed in 1.75.0.
📍 영향받는 시스템
rclone 1.75.0 미만 모든 버전
⚔️ 공격 벡터
조작된 CR/LF 문자가 포함된 파일 이름을 이용한 FTP 제어 채널 명령어 주입
🛡️ 대응 방법
rclone을 최신 버전인 1.75.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 1.75.0보다 낮으면 취약한 상태이며, 1.75.0 이상이면 안전합니다.
rclone version | grep -E 'rclone v[0-9]+\.[0-9]+\.[0-9]+'