Vulnversity
Last updated
Last updated
Port opened
6
What version of the squid proxy is running on the machine?
3.5.12
OS Version
Ubuntu
What port is the web server running on?
3333
What is the directory that has an upload form page?
/internal/
Make a php msfvenom payload and try to upload it.
What common file type, which you'd want to upload to exploit the server, is blocked? Try a couple to find out.
php
intercept file upload request in burp. Send to intruder and then select the file extension as parameter(ensure selection after full stop) create a list of php extensions in payload list and check.
Now upload it and it will be uploaded. but msfvenom shell kept on dying
So generated a php shell from pentest monkey using revshells which worked
What common file type, which you'd want to upload to exploit the server, is blocked? Try a couple to find out.
php
What extension is allowed?
.phtml
What is the name of the user who manages the webserver?
bill
What is the user flag?
8bd7992fbe8a6ad22a63361004cfcedb
search for SUID files
On the system, search for all SUID files. What file stands out?
/bin/systemctl
Check GTFOBINS to exploit it and we have a working exploitation method
We can also directly cat out the flag using the command in the following manner
Become root and get the last flag (/root/root.txt)
a58ff8579f0a9270368d33a9966c7fd5