PicoCTF 2019 'Cookies' Challenge Solved by Enumerating HTTP Cookie Values
A beginner-level web exploitation challenge on the PicoCTF 2019 platform tasked participants with finding a hidden flag on a cookie-themed website. The site assigned each cookie type a sequential numeric identifier stored in a client-side HTTP cookie named 'name', starting at 0 for the default 'snickerdoodle' option. By incrementing the cookie value from 0 to 18 — either manually through browser DevTools or via an automated Python script using the requests library — the flag was revealed at name=18. The vulnerability mirrors a real-world security flaw known as Insecure Direct Object Reference (IDOR), where the server blindly trusts a client-supplied value without server-side validation. The challenge highlights why sequential identifiers in cookies are a security red flag and underscores the importance of inspecting cookies whenever a site serves personalized content.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in