Description
Interpretation conflict in WinSCP before 4.0.4 allows remote attackers to perform arbitrary file transfers with a remote server via file-transfer commands in the final portion of a (1) scp, and possibly a (2) sftp or (3) ftp, URL, as demonstrated by a URL specifying login to the remote server with a username of scp, which is interpreted as an HTTP scheme name by the protocol handler in a web browser, but is interpreted as a username by WinSCP. NOTE: this is related to an incomplete fix for CVE-2006-3015.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- WinSCP 4.0.3 - URL Protocol Handler Arbitrary File Access EDB-30582 · remote · Sep 13, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- http://winscp.cvs.sourceforge.net/winscp/winscp3/core/SessionData.cpp?r1=1.29&r2=1.30
- winscp-scpsftp-command-execution(36591) vdb-entry
- 3141 third-party-advisory
- 25655 vdb-entry
- http://winscp.net/eng/docs/history/
- 26820 third-party-advisory
- 1018697 vdb-entry
- 20070913 WinSCP < 4.04 url protocol handler flaw mailing-list