Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2011-2523 — From-scratch exploit development in Python. No Metasploit. No frameworks. Raw socket-level implementation of real CVEs against authorized lab targets. | Kitploit
Tools/GitHubGitHub/rushikesh-a-bhujbal/cve-2011-2523
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationPayload DevelopmentLabs & Practice
GitHub
rushikesh-a-bhujbal/cve-2011-2523

CVE-2011-2523

From-scratch exploit development in Python. No Metasploit. No frameworks. Raw socket-level implementation of real CVEs against authorized lab targets.

View Repository
41 day agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2011-2523 — vsftpd 2.3.4 Backdoor Exploit

Python Platform Target License


Overview

vsftpd (Very Secure FTP Daemon) is an FTP server for Unix-like platforms including Linux, distributed under the GNU General Public License.

In July 2011, it was discovered that vsftpd version 2.3.4 — available for download between June 30 and July 3, 2011 — had been compromised. An unknown attacker gained access to the vsftpd distribution server and injected a backdoor directly into the source code before it was shipped to users.

This was not a bug in vsftpd's design. It was a supply chain attack — the legitimate software was replaced with a maliciously modified version.


How the Backdoor Works

The injected backdoor code monitors the FTP username field during login.

If the username contains :) (a smiley face), the backdoor spawns a on the target machine — with no authentication required.

root shell bound to port 6200

Attack flow:

Attacker → port 21 (FTP) → sends USER containing :) → backdoor triggers → root shell opens on port 6200

Attacker → port 6200 → full interactive root shell

CWE Classification: CWE-78 — Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)


What This Exploit Does

This exploit is written from scratch in pure Python using only the standard library (socket). No Metasploit. No exploit frameworks. No external dependencies.

Step by step:

  1. Connects to target port 21 (FTP)
  2. Reads the FTP service banner
  3. Extracts and verifies the vsftpd version — exits cleanly if not 2.3.4
  4. Sends the malicious FTP username containing :) to trigger the backdoor
  5. Opens a second socket connection to port 6200
  6. Drops into a fully interactive root shell

Requirements

  • Python 3.x
  • No external libraries — standard library only
  • Target: Metasploitable2 (or any system running vsftpd 2.3.4)

Usage

root@kitploit:~
# Clone the repo
git clone https://github.com/rushikesh-a-bhujbal/CVE-2011-2523.git
cd CVE-2011-2523

# Set your target IP inside main.py
target_ip = "YOUR_METASPLOITABLE2_IP"

# Run
python3 main.py

Example output:

root@kitploit:~

[+] Vulnerable version confirmed. Proceeding...

[+] Backdoor triggered. Opening shell on port 6200...

whoami
root
uname -a
Linux metasploitable 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008
cat /etc/shadow
root:
1
1/avpfBJ1$x0z8w5UF9Iv./DR9E9Lid.:14747:0:99999:7:::

exit

Error Handling

ScenarioBehaviour
Port 21 closedPrints "Port is closed", exits cleanly
Connection timeoutPrints "Connection timed out", exits cleanly
Invalid hostname/IPPrints "Invalid target", exits cleanly
Wrong vsftpd versionPrints mismatch message, exits cleanly
Port 6200 unreachablePrints backdoor failure message, exits cleanly

Tested Against

  • Metasploitable2 (intentionally vulnerable VM)
  • vsftpd 2.3.4
  • Linux metasploitable 2.6.24-16-server

Legal Disclaimer

This exploit is developed strictly for educational purposes and authorized security research only.

Built and tested exclusively against a local Metasploitable2 virtual machine in a fully isolated lab environment.

Do not use this against any system you do not own or have explicit written permission to test. Unauthorized use is illegal under the Computer Fraud and Abuse Act (CFAA) and equivalent laws worldwide.

The author accepts no responsibility for misuse of this code.


References

  • CVE Record: https://www.cve.org/CVERecord?id=CVE-2011-2523
  • NVD Entry: https://nvd.nist.gov/vuln/detail/CVE-2011-2523
  • Openwall Disclosure: https://www.openwall.com/lists/oss-security/2011/07/11/5
  • PacketStorm: https://packetstormsecurity.com/files/102745/VSFTPD-2.3.4-Backdoor-Command-Execution.html
  • Metasploitable2: https://sourceforge.net/projects/metasploitable/

Author

Rushikesh Bhujbal
Security Research & Exploit Development
GitHub

Download Tool