OpenSSH On Cygwin SFTP Client Directory Traversal

Portable OpenSSH supports running on Cygwin. However, the SFTP client only filters out forward slashes (in do_lsreaddir()) and the directory names “.” and “..” (in download_dir_internal()). On Windows, including in Cygwin, backslashes can a lso be used for directory traversal.

Leave a Reply