Skip to content
Race condition Write-up Beginner

How I Found My Favorite Bug in a Top Bug Bounty Program

The AI website builder enforced a daily limit of five messages per user, but the limit was not atomic. By sending multiple requests in parallel, an attacker could exceed the limit and use the AI tool without paying for an upgrade.

mahdisalhi0500 Follow

Published on medium.com

First, I want to thank everyone who shared my last write-ups and watched my videos on YouTube. I really appreciate the support and motivation from you all — it means a lot! 💖

CaptinSHArky(Mahdi🇹🇳), 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 daily message limit was checked and incremented in separate steps without locking, so concurrent requests all passed the check before the counter was updated.

Impact

An attacker could bypass the daily message limit and use the AI website builder without paying for an upgrade, potentially consuming more resources than allowed.

What the attacker needed

A free account with the AI tool; ability to intercept and modify requests; Burp Suite with parallel send feature

How it was found

  1. Send four messages to the AI bot and capture one request in Burp Repeater.
  2. Duplicate the captured request ten times and slightly change the message text in each copy.
  3. Use Burp Suite's 'Send group in parallel' feature to send all requests at once.
  4. Observe that all requests are processed without errors, exceeding the daily limit.

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.

A race condition happens when a system checks a limit and then acts, but two requests can both pass the check before either updates the count. Here, the AI tool allowed only five messages a day, but sending many requests at the same moment let the user send more than five. This meant the paid unlimited feature could be used for free.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by mahdisalhi0500

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.