Skip to content
DoS Write-up Beginner

The Cookie Bomb: My First $10K in Bug Bounties

Tracking query parameters such as advertising click identifiers were written directly into cookies without any size limit. An attacker could send a victim a link containing an oversized value, so the browser stored a huge cookie and every later request failed, leaving the victim unable to use the site until cookies were cleared.

medium.com

Published on medium.com

When I started bug bounty hunting in 2019–2020, I came across a vulnerability that was simple to exploit yet surprisingly widespread. I began calling it the Cookie Bomb — and it earned me over $10,000 in my first year.

Arshad Kazmi, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application copied query parameter values into cookies without validating or capping their length, so the total cookie size could exceed the server's header size limit.

Impact

The victim could be locked out of the application, with all requests failing, until they cleared their cookies; the text describes this as a self-DoS affecting the victim's own session.

What the attacker needed

Victim clicks a crafted link; site stores tracking params in cookies; no cookie size limit on the server

How it was found

  1. Pick a target that uses Google or Facebook tracking parameters.
  2. Send a request with a very long value in a tracking parameter such as gclid.
  3. Reload and check whether the value was stored as a cookie.
  4. If one parameter is not enough, combine several parameters or repeat across subdomains to exceed the limit.
  5. Confirm that further requests fail with errors such as 400 Bad Request or 414 URI Too Large.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Websites often copy values from the address bar, like advertising tracking codes, into small text files called cookies that the browser sends back on every visit. If the site does not limit how long that value can be, an attacker can put a very long value in a link, and the browser then sends it every time. The server rejects requests that are too large, so the victim's session stops working until they delete their cookies.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.