CVE-2007-4909

WinSCP < 4.0.4 - Arbitrary File Transfer via URL Scheme Interpretation Conflict

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-4909. PoCs published by Kender.Security.

AI-analyzed exploit summary This exploit leverages a vulnerability in WinSCP prior to version 4.0.4, allowing arbitrary file uploads or downloads via a crafted SCP URI in an iframe. The PoC demonstrates how an attacker can exfiltrate files (e.g., `c:\boot.ini`) by tricking a user into loading a malicious HTML page.

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.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Kender.Security · htmlremotewindows
https://www.exploit-db.com/exploits/30582

This exploit leverages a vulnerability in WinSCP prior to version 4.0.4, allowing arbitrary file uploads or downloads via a crafted SCP URI in an iframe. The PoC demonstrates how an attacker can exfiltrate files (e.g., `c:\boot.ini`) by tricking a user into loading a malicious HTML page.

Classification
Working Poc 90%
Attack Type
Other
Complexity
Trivial
Reliability
Reliable
Target: WinSCP < 4.0.4
No auth needed
Prerequisites: Victim must open the malicious HTML file in a browser with WinSCP installed · WinSCP must be configured as the default handler for SCP URIs
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (8)

Core 8
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/36591
Third Party Advisory third-party-advisory x_refsource_sreason
http://securityreason.com/securityalert/3141
Patch vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/25655
Various Sources x_refsource_confirm
http://winscp.net/eng/docs/history/
Patch, Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26820
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id?1018697
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/479298/100/0/threaded

Scores

EPSS 0.0352
EPSS Percentile 87.7%

Details

CWE
CWE-264
Status published
Products (12)
winscp/winscp 2.0.0
winscp/winscp 3.5.5_beta
winscp/winscp 3.5.6
winscp/winscp 3.6
winscp/winscp 3.6.1
winscp/winscp 3.6.5_beta
winscp/winscp 3.6.6
winscp/winscp 3.6.7
winscp/winscp 3.8.1
winscp/winscp 3.8.2
... and 2 more
Published Sep 17, 2007
Tracked Since Feb 18, 2026