Skip to content
Race condition Disclosed report Intermediate

Race condition in performing retest allows duplicated payments

A race condition in the retest payment process allowed multiple simultaneous retest confirmations to each trigger a separate payment. An attacker could receive duplicate payments for a single retest, stealing money from the platform.

cablej Follow

Originally disclosed on HackerOne

Medium 4.2 View original
  • Fixed in 23 hours
  • Paid in 23 hours
  • Disclosed after 2 months

Summary

There exists a race condition in performing retests. By executing multiple requests to confirm a retest at the same time, a malicious user is paid multiple times for the retest. This allows for stealing money from HackerOne, which could go unnoticed by both HackerOne and the attacker (me).

Steps to Reproduce

  1. Receive a retest request email from HackerOne.

  2. Intercept the request to retest the email. Right click the request in Burp Suite and select Copy as curl command.

  3. Execute the request on the command line in the form (request) & (request) & .... In testing, I executed the command 5 times.

  4. Scroll to the bottom of https://hackerone.com/settings/bounties. The payment will appear under the Retest payments sections and may be repeated.

  5. Wait a few weeks. If successful, a callback from HackerOne will be received (in this case from @michiel):

    Screen_Shot_2018-10-25_at_5.58.17_PM.png
    Screen_Shot_2018-10-25_at_5.58.17_PM.png From the original on HackerOne
  6. Check your bank account statements. Observe that a $500 payment was sent from HackerOne 2 weeks ago, demonstrating that the race condition was successful:

IMG_3755.png
IMG_3755.png From the original on HackerOne

Impact

This allows an attacker to exploit the retesting feature to steal many times more money. Given that this went unnoticed by both the attacker and HackerOne for over 2 weeks, this has the potential to be exploited multiple times to steal money from HackerOne.

The original report as published on HackerOne, by cablej. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the retest payment logic lacked proper synchronisation or idempotency checks, allowing concurrent requests to each process a payment.

Impact

An attacker could receive multiple payments for a single retest, stealing money from the platform, and the duplicate payments may go unnoticed for weeks.

What the attacker needed

A HackerOne account; receive a retest request email; ability to intercept and replay requests

How it was found

  1. Receive a retest request email from HackerOne.
  2. Intercept the retest request and copy it as a curl command.
  3. Execute the same request multiple times in parallel from the command line.
  4. Check the bounties settings page to see repeated retest payments.
  5. Wait for confirmation and check bank statements for duplicate payments.

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 report has not been written yet. The Original tab links to the source.

When a website handles a request that involves money, it should check that the action only happens once. Here, sending several identical requests at the same moment caused the system to pay out multiple times for the same retest. This is called a race condition: the timing of the requests tricks the system into skipping a check.

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 cablej

View all

25 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

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.