Skip to main content

Enumeration

Run Nmap Scan

View Website

Untitled

Directory Bruteforcing (Run Gobuster)

/CGI-BIN is a technology that lets us execute a program to show a dynamic webpage. But it contains a vulnerability called Shellshock

Finding cgi-bin script through additional bruteforcing

1 route is enough to exploit the shellshock vulnerability /CGI-BIN is a technology that lets us execute a program to show a dynamic webpage. But it contains a vulnerability called Shellshock

Finding cgi-bin script through additional bruteforcing

1 route is enough to exploit the shellshock vulnerability

Exploitation

Execute Burp Suite

After running burp suite route to the cgi-bin script route Untitled

Send the Proxy Result to the Repeater

Untitled Untitled

What to change?

Add this command after User-Agent:

Listening Reverse Shell and Exploit

So I generated reverse shell code to execute at the victim side
Untitled Untitled

Privilege Escalation

Let’s check what user shelly can execute in root permission
Here we can know that /usr/bin/perl can be executed in privileged mode without any password We can use perl to get root shell through GTFOBIN