(August 2, 2022, 08:50 PM)ThatUsername Wrote: (August 1, 2022, 10:51 PM)farkow Wrote: Anybody can give some nudges for the following flags:
- Time to play
- Careful read
- Rootkit
The rest, I got it.
Do you have any hint on flag2 (let´s count)?
Found source code and tried some SSTI on many places but without any success. The "console.log" from the source isn´t really helping too :)
You are on right track! SSTI is the way to go.
I am sure you were trying to inject code in profile endpoint.
However, you need to escape it. {{ will not going to work. It is not complex, get a hint from hacktricks website.
To be on the safe side, put your reverse shell script on your server and serve, and curl the file in your injection.
Of course, you are going to need your session in cookies, too.
After the payload is delivered, send a post request to message endpoint
Prepare a python or go script that sends a payload to profile page.
And enjoy your reverse shell for the next steps.