Tico
Gaining Access
Nmap scan:
FTP Rabbit Hole
FTP allowed for anonymous access:
We can view the traffic within this file using wireshark
. There was only 1 TCP stream to follow, and I didn't quite understand it.
There was some mention of the MongoDB instance and a few GCC compiler flags, but it doesn't seem to be useful now.
Markdown Rabbit Hole
Port 80 had a Markdown Editor:
Again, there was nothing interesting with this. We could try XSS injection or something, but there's no hint that a user is viewing this.
NodeBB -> Admin Takeover
Port 8080 had a NodeBB instance:
There are some exploits that are available for NodeBB:
The first one looks applicable, and it involves an administrator account takeover that we can try. First, we need to register a user. Afterwards, we can head to the password reset page:
Intercept this response to see a JSON request being sent:
Replace the uid
value with '1', and then let the requests pass through. We can then login as admin
with the new password I set.
Arbitrary File Write -> Root
We can access the admin dashboard to see the plugins:
This confirms that the Emoji plugin is installed, and we can try the other exploit. The public expoit attempts to write our SSH public key into the authorized_keys
folder of root
.
Afterwards, we can just ssh
into root
:
Rooted!
Last updated