Description
LeapFTP < 3.1.x contains a stack-based buffer overflow vulnerability in its FTP client parser. When the client receives a directory listing containing a filename longer than 528 bytes, the application fails to properly bound-check the input and overwrites the Structured Exception Handler (SEH) chain. This allows an attacker operating a malicious FTP server to execute arbitrary code on the victim’s machine when the file is listed or downloaded.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| LeapWare | LeapFTP | < 3.1.* | 3.1.* |
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.
Metasploit 1 module
-
LeapFTP 3.0.1 Stack Buffer Overflow
exploit/windows/ftp/leapftp_list_reply
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/windows/ftp/leapftp_list_reply.rb exploit
- https://www.exploit-db.com/exploits/16704 exploit
- https://web.archive.org/web/20111016194057/https://www.corelan.be/index.php/2010/10/12/death-of-an-ftp-client/ technical-description exploit
- https://web.archive.org/web/20111013232627/http://www.leapware.com/ vendor-advisory patch
- https://www.vulncheck.com/advisories/leapftp-stack-buffer-overflow third-party-advisory