
Test d’intrusion sur Metasploitable 2 : exploitation de la backdoor vsftpd 2.3.4 (CVE-2011-2523) pour obtenir un accès root sans authentification.
Educational pentest exercise, carried out in an isolated lab (Kali Linux against Metasploitable 2, a deliberately vulnerable Linux machine), with no connection to the Internet or to a production system.
The exercise puts into practice the three classic phases of a penetration test: reconnaissance, exploitation, post-exploitation. It demonstrates that an outdated service, left exposed and unpatched, can be enough to provide full root access, without authentication.
| Item | Detail |
|---|---|
| Attacking machine | Kali Linux, isolated Host-Only network |
| Target machine | Metasploitable 2 (Ubuntu 8.04, deliberately vulnerable) |
| Tools | Nmap (reconnaissance), Metasploit Framework (exploitation) |
Discovery of the target via ARP scan, then a full scan of all 65,535 TCP ports with version detection and default scripts.
nmap -sn 192.168.213.129/24
nmap -sV -sC -A 192.168.213.130

Exposed services identified: FTP (vsftpd 2.3.4), SSH (OpenSSH 4.7), Telnet, HTTP (Apache + DVWA), SMB (Samba 3.x), distcc, PostgreSQL, IRC (UnrealIRCd). Several of these versions are associated with known critical vulnerabilities.

Version 2.3.4 of vsftpd contains a backdoor intentionally introduced into its source code (CVE-2011-2523): sending a username containing :) triggers the opening of a root shell on port 6200.
msfconsole
use exploit/unix/ftp/vsftpd_234_backdoor
set RHOSTS 192.168.213.130
set LHOST 192.168.213.129
run
Running the module immediately opens a root shell on the target, without prior authentication.

Verification of the access obtained: whoami confirms root privileges, uname -a provides kernel information. The file /etc/shadow, containing the password hashes of all accounts, is readable without restriction — a total compromise under real-world conditions.
Exercise carried out in an isolated laboratory environment, on virtual machines without connection to the Internet or to a production system.

Глубокое картирование поверхности атаки и обнаружение активов

Быстрый инструмент пассивного перечисления поддоменов.

reconFTW — это инструмент, предназначенный для автоматизированной разведки целевого домена путем запуска лучшего набора инструментов для сканирования и выявления уязвимостей.