mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 01:05:42 +00:00
600be0de54
A malicious or compromised SCP server could return file or directory names containing path separators, drive qualifiers, or parent-directory references. ScpClient.Download(string, DirectoryInfo) combined these into a local path without validation, allowing writes outside the destination directory. Server-supplied C and D record names are now validated before being combined into a local path. Signed-off-by: Nadav0077 <18245584+Nadav0077@users.noreply.github.com>