Skip to content
Race condition Disclosed report Intermediate

Race Condition in Redeeming Coupons

A race condition in the coupon redemption flow allowed the same promo code to be applied multiple times when requests were sent asynchronously. An attacker could therefore obtain an arbitrarily large discount.

cablej Follow

Originally disclosed on HackerOne

  • Fixed in 3 days
  • Paid in 3 days
  • Disclosed after 33 days

Hello,

There exists a race condition in redeeming coupons, allowing a user to redeem the same coupon multiple times, and stacking savings added. This allows for a user to get virtually any discount.

POC:

  1. Visit your account and select 'Promo Codes'.
  2. Select redeem promo code, and add any promo code. For example, I found the code 'dallas20'.
  3. Intercept the request using a proxy, and make the request multiple times, asynchronously.
  4. The code will be redeemed multiple times.

For an example, see the screenshot attached.

Attachments

screenshot.png
screenshot.png From the original on 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 redemption check and the recording of the redemption are not performed atomically, so concurrent requests all pass the check before any redemption is saved.

Impact

A user could obtain virtually any discount by stacking repeated redemptions of one coupon.

What the attacker needed

A user account; a valid promo code; ability to intercept and replay requests

How it was found

  1. Open the account and go to the promo codes section.
  2. Choose to redeem a promo code and enter a valid code.
  3. Intercept the redemption request with a proxy.
  4. Send the request several times asynchronously.
  5. Observe that the code is redeemed 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 report has not been written yet. The Original tab links to the source.

A coupon can normally be used once. Here, sending several redemption requests at almost the same moment lets the same code be redeemed more than once, giving repeated discounts.

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 Instacart

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.