Vsftpd 208 Exploit Github Fix
clamscan /usr/sbin/vsftpd
Before compiling, manually check str.c to ensure the backdoor does not exist. grep -Inr ":)" . Use code with caution.
The backdoor injected into the source code of vsftpd 2.3.4 was simple yet devastating. It was placed inside the str.c string-processing file and triggered during the authentication phase in sysdeputil.c . The Malicious Code Fragment
If your legacy application strictly requires version 2.3.4, you must download the clean, uncompromised source code from an official repository, compile it manually, and replace the malicious binary. vsftpd 208 exploit github fix
// Example of the backdoor code to look for and delete: if (strstr(name, ":)")) vsf_sysutil_extra(); Use code with caution. 4. Immediate Network Mitigation (Firewall)
A malicious actor gained access to the vsftpd master site and added a backdoor to the vsftpd-2.3.4.tar.gz archive. : Sending a smiley face :) in the FTP username. Effect : Opens a shell on port 6200 . Access : Provides immediate root access to the server. 🛡️ How to Fix (GitHub & System)
Ensure anonymous_enable=NO is set in vsftpd.conf . Disable Local Logins: Use dedicated service accounts. Log Everything: Review /var/log/vsftpd.log regularly. The backdoor injected into the source code of vsftpd 2
If you are running the compromised 2.3.4 version (often found in older lab environments or unmaintained servers), you must update immediately.
From the compromised FTP server, an attacker can scan the internal network, probe other services, and use the server as a pivot point to attack additional systems. This is particularly dangerous because the compromised server may have trusted relationships with other internal systems.
In July 2011, an unknown attacker compromised the master download server for vsftpd and replaced the legitimate version 2.3.4 source code archive with a weaponized variant. How the Backdoor Works // Example of the backdoor code to look
: Always verify the PGP signatures or SHA256 checksums when downloading software from third-party repositories.
If you are looking to secure a specific system or need help identifying if your current version is vulnerable, let me know the operating system you are running!
msfconsole -q -x "use exploit/unix/ftp/vsftpd_234_backdoor; set RHOSTS <TARGET_IP>; run"
No authentication. No password. Just a smiley face and instant root access.
Restrict access to port 21 to only trusted IP addresses. PwnHouse/OSVDB-73573/README.md at master - GitHub