Nmap

image.png

GoBuster

image.png

So the /panel is a place where we could upload files and /uploads lists the files that are uploaded. The upload does restricts files with obvious extension like .php, .war, etc but if we upload a php file with extension php.jsp or .phtml it does not stop the upload.

Exploit

There are web shells available in /usr/share/webshells which can be useful here.

image.png

Upload and get shell.

image.png

image.png

Privilege Escalation

Now we have to escalate priveleges.

image.png

We are searching fot bianries with SUID bit set. Python has SUID bit set lets get the comaand from GTFObins and run to escalate privileges.

image.png