Today I will start with rustscan and not nmap
Checking out port 5000 I see that:
That is_admin might be smth but I haven’t found any way to decrypt it.
Let’s fuzz:
It shows uses the same cookie here and nothing else.
Let’s check support:
Looks like it outputs our request. Let’s alter it with burpsuite or even better caido
I edited request to this:
And ran listener on port 1234
After setting cookie to that value I can access admin dashboard at /dashboard
It outputs nothing, Let’s play with that
Let’s run revshell with that!
And put it on http server.
Got user flag!
We see initdb.sh
is set without path!
Let’s create initdb.sh that starts bash as root
don’t forget to start listener with nc -lvnp 4444
Got all flags!