E-CTF - Web - Favourite Website
Web - Favourite Website - writeup
Description
After a long time, Alex tries to visit his favorite website. But nobody thought he would become very unlucky. Visit the website and help him get the flag.
Link: https://wec-ctf-2022-web.herokuapp.com/q2
Writeup
If we refresh the webpage we see there is a cookie that changes everytime i refresh the page.
That cookie is called _gatj
Currently its value is
|
|
That is base64 and decodes to
|
|
So since the website says You can get the flag when you visit our website for 12893422th time.
We just change the value to
|
|
Then we use base64 to encode this string again and we get
|
|
If we now replace the cookies value with that string … lets see what happens
If we now refresh the page after replacing the cookie value we see:
Congrats! You got the flag: CTF{C@@kie$_@re_the_be$t}
So the flag is
|
|