Skip to content
Race condition Disclosed report Intermediate

Promotion code can be used more than redemption limit.

A promotion code with a set redemption limit could be redeemed more times than allowed because the limit check was not atomic. An attacker could apply the same coupon to two payment links and submit both at nearly the same moment, so both payments succeeded with one coupon.

d_sharad Follow

Originally disclosed on HackerOne

  • Triaged in 12 days
  • Fixed in 53 days
  • Paid in 19 days
  • Disclosed after 4 months

Summary:

While creating a promotion code a user can specify number of times that code can be redeemed.(i.e. Redemption limit)

1.jpg
1.jpg From the original on HackerOne

Codes aren't supposed to be redeemed more than the redemption limit. But there exists a race condition that allows use of promotion codes more than redemption limit.

12.jpg
12.jpg From the original on HackerOne

Steps To Reproduce:

[In these steps i have used just a browser to show how easy this is to exploit and even a person with very limited knowledge on technology can exploit this. This can certainly be scaled using burp and other software .]

  1. As a merchant create a promotion code with Redemption limit 1.
2.jpg
2.jpg From the original on HackerOne
  1. As a user, Visit any two payment links of same merchant with the coupon.
  2. In both payment links, Fill the form and apply coupon but don't hit Pay/ Subscribe.

4.Hit both link's pay/subscribe button as fast as you can. 5. Both payment will be successful using one coupon two times.

Supporting Material/References:

I have added a video poc. In this poc, I have used a promotion code with redemption limit 2. I have also used laptops screentouch feature to click both link's pay/subscribe button as fast as I could.

stripecoupon.webm From the original on HackerOne

Impact

Promotion code can be used more than redemption limit.

The original report as published on HackerOne, by d_sharad. 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 count was checked and then incremented in separate steps, so two concurrent payments both passed the check before either recorded the use.

What the attacker needed

A merchant promotion code; two payment links; near-simultaneous submissions

How it was found

  1. Create a promotion code with a redemption limit of one as a merchant.
  2. Open two payment links from the same merchant as a user.
  3. Fill in both forms and apply the coupon on each, without paying yet.
  4. Submit both pay buttons as quickly as possible.
  5. Both payments succeed using the single coupon twice.

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 promotion code has a limit on how many times it can be used. A race condition lets it be used more times than that limit, for example by paying on two links at 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.

More by d_sharad

View all

1 more disclosed report, best first.

More from Stripe

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.