image.png

Want to run this Docker container locally?

docker run -d -p 3005:3005 --restart always --name cookie-overflow joshbeck2024/cookie_bot-ctf-challenge

Begin by registering an account, logging in, and going to the ‘Admin Portal.’

image.png

We are provided with bot.js and app.py.

This is a common CTF Scenario:

Bot.js does the following:

image.png

The goal here is to ‘overflow’ the bot's cookie jar so that it has a copy of our user’s authentication cookie.

A cookie overflow attack exploits the fact that browsers enforce strict limits on how many cookies a site can store and how large they can be.

First, find your session cookie. (You are the attacker in this scenario.)

image.png