🇰🇷 한글 설명
Evil-WinRM 3.9 이하 버전의 download_dir() 함수에서 경로 탐색(Path Traversal) 취약점이 발견되었습니다. 공격자가 조작된 파일명을 반환하는 원격 Windows 서버를 제어할 경우, 클라이언트 측의 의도하지 않은 디렉토리에 파일을 작성하여 SSH 키나 셸 설정 파일을 덮어쓸 수 있습니다.
💡 쉬운 설명
해커가 조작된 서버를 통해 사용자의 컴퓨터에 몰래 중요한 설정 파일을 심거나 바꿀 수 있는 보안 약점입니다. 이를 통해 해커는 사용자의 컴퓨터에 지속적으로 접속하거나 권한을 탈취할 수 있습니다.
🇺🇸 원문 (English)
Evil-WinRM through 3.9, fixed in commit 6ecd570, contains a path traversal vulnerability in the download_dir() function that allows a rogue or compromised remote Windows server to write files outside the intended download directory by returning filenames with traversal sequences from Get-ChildItem command output that are passed unsanitized to File.join(). Attackers controlling the remote server can exploit this to overwrite sensitive client-side files such as SSH authorized_keys or shell configuration files, achieving persistent access or privilege escalation on the client machine.
📍 영향받는 시스템
Evil-WinRM 3.9 이하 버전
⚔️ 공격 벡터
조작된 파일명을 반환하는 원격 Windows 서버를 통한 경로 탐색 공격
🛡️ 대응 방법
Evil-WinRM을 최신 버전(commit 6ecd570 이상 반영 버전)으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 3.9 이하인지 확인하십시오.
gem list evil-winrm | grep -E 'evil-winrm \('