
A hands-on project demonstrating the setup of virtual security lab, network reconnaissance, and exploitation of CVE-2012-1823.
A hands-on project demonstrating the setup of virtual security lab, network reconnaissance, and exploitation of CVE-2012-1823.
This project demonstrates the creation of an isolated virtual lab environment used to perform a full-spectrum penetration test. I simulated a real-world attack against an outdated Linux server, moving from network discovery to gaining unauthorized remote access.
I configured an isolated virtual network to ensure a safe testing environment. The lab consists of a Kali Linux machine and a Metasploitable 2 instance on a private subnet.
Using Nmap, I performed a service version scan to identify open ports:
nmap -sV 192.168.**.***

I used Searchsploit and the CVE database to identify CVE-2012-1823, a critical vulnerability in PHP-CGI that allows for Remote Code Execution (RCE).
An older version of PHP that is vulnerable to RCE(Remote Code Execution).
Using the Metasploit Framework, I configured a reverse TCP handler:
exploit/multi/http/php_cgi_arg_injectionphp/meterpreter/reverse_tcpwww-data.
I performed system enumeration and located sensitive configuration files containing plain-text database credentials in /var/www/.
To mitigate this vulnerability, the following actions are recommended:
-d, -s, or -t.