Dibble
Last updated
Last updated
Nmap scan:
FTP accepts anonymous logins but there's nothing within it.
Port 80 shows a blog about some web exploits:
Port 3000 shows a more dynamic incident reporting site:
I registed a new account and looked at the events:
Doesn't look super relevant. I checked Burpsuite, and noticed this cookie:
When decoded, it gives default
. I changed it to a base64
encoded admin
string, giving YWRtaW4=
, which allows us to create logs.
The new log event specified that we can write code in it:
The X-Powered-By
header specified that this was using Express, which is Javascript. Since we can directly write code, I tried putting in a Node.js reverse shell:
When we submit thiss, we get a reverse shell:
cp
is an SUID binary on this machine:
We can use this to overwrite files, just add this line into a copy of the current /etc/passwd
:
Then, use cp
to overwrite the existing /etc/passwd
file and su
to hacker
with 'hello123':