Skip to content
Race condition Write-up Intermediate

The Race Condition That Paid Its Own Bounty

A race condition in HackerOne's payment code allowed a researcher to trigger duplicate bounty payouts by sending many parallel requests. The same underlying flaw—a check-then-act gap—has since been exploited in various programs, from bypassing limits to crashing servers.

medium.com

Published on medium.com

In April 2017, a researcher named jigarthakkar39 found a race condition in HackerOne’s own payments code. Fire the payout request enough times in parallel and the same bounty could land twice.

Raj Namdev, 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 payment code checked a condition and then performed an action without making the check and action atomic, so concurrent requests could all pass the check before any updated the state.

Impact

An attacker could receive duplicate bounty payments, effectively getting paid twice for the same issue; the report notes the duplicate was later deducted.

What the attacker needed

Access to a payout endpoint; ability to send parallel requests

The fix

The fix likely involved making the payment operation atomic, such as using database transactions or uniqueness constraints, so that concurrent requests cannot both succeed.

How it was found

  1. Identify a payment or payout endpoint that processes bounty payments.
  2. Send many payout requests in parallel to exploit the timing gap.
  3. Observe that the same bounty is paid 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 system does two things in the wrong order because two requests arrive at almost the same time. Imagine two people checking a single ticket is still available, both see it is, and both buy it—so the ticket is sold twice. Here, sending many payment requests at once let the same bounty be paid more than once.

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.

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.