Skip to content
Race condition Write-up Intermediate

Race Conditions in the Real World: How I Won the App’s Logic W

A fintech platform allowed users to withdraw cashback rewards but failed to make the balance check and withdrawal atomic. An attacker could send many parallel withdrawal requests and receive multiple payouts before the balance was updated.

Narendar Battula Follow

Published on meetcyber.net

Modern web apps love to move fast — asynchronous processing, concurrent requests, and real-time updates. But all of that speed can open the door to a subtle yet powerful vulnerability: race conditions.

Narendar Battula (nArEn), on meetcyber.net

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 balance check and the withdrawal update were not performed atomically, so concurrent requests could all pass the check before any balance change was committed.

Impact

The attacker could withdraw multiple times the permitted cashback amount, causing financial loss to the platform.

What the attacker needed

A user account on the fintech platform; cashback rewards available to withdraw; ability to send concurrent HTTP requests

The fix

The text does not state that the issue was fixed; it recommends database-level locks, serialising sensitive operations, check-and-set patterns, rate limiting, and idempotency tokens.

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 program does two things at once and the result depends on which finishes first. Here, the app checked the balance and then paid out, but many requests could all pass the check before any payout was recorded, so the same reward was paid several times.

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 Narendar Battula

View all

7 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.