Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Hackplayers / evil-winrm | affected 0 through 3.9; unaffected 6ecd570a298562dc72ad73978307eb34182f5850 |
CWE
CWE-22
References
- https://github.com/Hackplayers/evil-winrm/pull/81
- https://github.com/Hackplayers/evil-winrm/commit/6ecd570a298562dc72ad73978307eb34182f5850
- https://www.vulncheck.com/advisories/evil-winrm-path-traversal-in-download-dir-function
ADP enrichment
No English description supplied.
No references supplied.