Hackplayers Evil-WinRM
Evil-WinRM - Path Traversal in download_dir() Function
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- <= 3.9
Fixed in 6ecd570a298562dc72ad73978307eb34182f5850
Mitigation
Upgrade evil-winrm to 6ecd570a298562dc72ad73978307eb34182f5850 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.