Skip to content

Latest commit

 

History

History

cookie-factory

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Granny's Cookie Factory

Challenge Text

Hint

  • None, this is a hard challenge

Solution

  • Recognize that the user cookie is a JWT
  • Decode it to see that the data has the structure {"username": ...}
  • On the dashboard page, read the attached CVE to learn the the vulnerability is a user-controlled alg parameter
  • Realize that the header and data are Base64 encoded
  • Set the algorithm to "none" and Base64-encode the header section
  • Set the username to "admin" and Base64-encode the data section
  • Leave the signature section blank
  • Flag: jctf{GEEZ_WHAT_A_TOUGH_COOKIE}

Credit

  • Developed by Edward