Skip to main content

Enumeration

Run Nmap Scan

View Website (Index.php)

Untitled

Directory Bruteforcing (Run Gobuster)

I couldn’t find any additional hints, so ran gobuster with larger directory list with file extensions.

Visit Index.html (No hints)

Untitled The “Begin Installation” link redirects us to https://10.129.30.207/dfuife.cgi. Unfortunately the link didn’t work, so no attempt for shellshock exploitation.

Finding the Credentials

Untitled

Reference about the password

https://www.securityspace.com/smysecure/catid.html?id=1.3.6.1.4.1.25623.1.0.112122

Login to index.php and Enumerate informations

Untitled We found that the version

Exploitation (Using Searchsploit)

Search for pfsense exploits

Listen to Reverse Shell and Exploit

Exploitation (Using Burp)

Login to pfsense to Authenticate

Untitled

Requesting to “/status_rrd_graph_img.php” and Pass the HTTP request to the Repeater

Untitled Untitled

How the command execution works

Try with various reverse shell code.

Untitled

Using combination of nc and python to get a reverse shell

Untitled
The above URL request means that at first, it will request for input from the attacker ip, then pipeline the input in to python. (Means port 4444 will send the python reverse shell code(nc -lvnp 4444 < reverse.py) to the victim’s system, after then the victim’s system will execute the reverse shell code (|python) to send reverse shell to port 4443(nc -lvnp 4443))

Reference

Ippsec - Sense https://youtu.be/d2nVDoVr0jE?si=Nf9Koa-AoGgi-U5I