Description
ftpd in OpenBSD 4.3, FreeBSD 7.0, NetBSD 4.0, Solaris, and possibly other operating systems interprets long commands from an FTP client as multiple commands, which allows remote attackers to conduct cross-site request forgery (CSRF) attacks and execute arbitrary FTP commands via a long ftp:// URI that leverages an existing session from the FTP client implementation in a web browser.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | linux-ftpd | 0.17-29 | — |
| Debian 12 | linux-ftpd-ssl | 0.17.27+0.3-3 | — |
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
- Multiple Vendor FTP Server - Long Command Handling Security EDB-32399 · remote · Sep 20, 2008 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 1021112 vdb-entry
- http://www.openbsd.org/cgi-bin/cvsweb/src/libexec/ftpd/ftpcmd.y.diff?r1=1.51&r2=1.52&f=h
- 1020946 vdb-entry
- 20080926 multiple vendor ftpd - Cross-site request forgery third-party-advisory
- 33341 third-party-advisory
- http://bugs.proftpd.org/show_bug.cgi?id=3115
- http://www.openbsd.org/cgi-bin/cvsweb/src/libexec/ftpd/ftpcmd.y
- 32068 third-party-advisory
- FreeBSD-SA-08:12 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/cpuoct2010-175626.html
- 32070 third-party-advisory
- http://www.openbsd.org/cgi-bin/cvsweb/src/libexec/ftpd/ftpd.c.diff?r1=1.183&r2=1.184&f=h
- 4313 third-party-advisory
- http://www.openbsd.org/cgi-bin/cvsweb/src/libexec/ftpd/ftpd.c