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.
Problem types
CWE-121 Stack-based Buffer Overflow
Product status
* before 3.1.x
Credits
corelanc0d3r of Corelan Team
References
raw.githubusercontent.com/...ndows/ftp/leapftp_list_reply.rb
www.exploit-db.com/exploits/16704
web.archive.org/...ex.php/2010/10/12/death-of-an-ftp-client/
web.archive.org/web/20111013232627/http://www.leapware.com/
www.vulncheck.com/advisories/leapftp-stack-buffer-overflow