Skip to content
Race condition Write-up Intermediate

Real-World Example of Race Condition Exploits “adding Money”

The invite-and-scratch reward feature did not protect against concurrent requests, so the same scratch request could be redeemed several times. An attacker could send many copies of the request at once and receive the reward more than once, adding extra money to their balance.

dr4040x00 Follow

Published on medium.com

This is my first write-up, and I will discuss how I can add more money to my account with race condition vulnerability.

Ahmed Mohamed, 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 reward redemption was not made atomic, so concurrent requests each passed the eligibility check before any of them was recorded as used.

Impact

The same reward could be claimed multiple times, and the extra money became available for withdrawal.

What the attacker needed

Two accounts; invite flow available; ability to intercept requests

How it was found

  1. Create two accounts and invite the second one to earn a scratch reward.
  2. Turn on interception and capture the scratch request.
  3. Send the captured request to the Turbo Intruder extension.
  4. Select the single-packet race attack script and start the attack.
  5. The script sends the request many times at once and the reward is credited more than once.

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 website checks something and then acts on it, but two requests arrive so close together that both pass the check before either one is recorded. Here the app gave a scratch reward, and by firing the same request many times at once the attacker got the reward several times instead of once. The money was then credited repeatedly to the same account.

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 dr4040x00

View all

1 more disclosed report, 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.