Fee discounts can be redeemed many times, resulting in unlimited fee-free transactions
The endpoint that accepts a fee discount offer could be called repeatedly with the same offer identifier, applying the discount each time. An attacker could stack many copies of a single discount, giving themselves far more fee-free processing than intended.
- Triaged in 7 days
- Fixed in 19 days
- Paid in 20 days
- Disclosed after 28 days
Summary:
Hi there, first off, I am an actual Stripe customer using Stripe for my real business, so I used my actual Stripe account to test this (as there is no other way). I realize this is not ideal but hope you understand given the unique scenario!
I was recently offered a fee discount of $20,000 on Stripe transactions. Stripe Support applied the offer to my account, and I was shown a prompt to accept the fee discount in my dashboard.
I decided I should try and look for a race condition in this acceptance. So, I used Burp Turbo Intruder to race the request that accepts the fee discount, /ajax/accept_fee_discount_offer (forgot to take screenshot as I did not think it would work!).
It seems a race was not even needed though, as I called it 30 times and 30 fee discounts were immediately applied to my account! As a result, I now have $600,000 of fee-free processing applied to my account. Obviously, this is not ideal for Stripe as you only intended to offer me $20,000! I believe you could keep calling this endpoint if you wanted to, you just need a valid fdo_ ID.
████
Impact
Unlimited fee-free discounts. This will cost Stripe about 3% of each discount, so $600 each time a $20k discount is abused.
Context
Stripe is a payments platform, and the feature at the centre of this report is a fee discount: a credit applied to a merchant's account that covers Stripe's processing fees on transactions. In this case Stripe Support offered the researcher a fee discount of $20,000 on Stripe transactions and applied the offer to his account. The dashboard then showed him a prompt to accept the fee discount.
Accepting that prompt is a single request to an endpoint on the dashboard side, /ajax/accept_fee_discount_offer, which takes an identifier for the offer. The offer identifier is prefixed fdo_.
Setup
The researcher was an actual Stripe customer using Stripe for his real business, so he tested with his actual Stripe account, noting that there was no other way to do it. The precondition for reaching the feature at all is having a fee discount offer applied to the account by Stripe Support, which then surfaces the acceptance prompt in the dashboard.
The tool used was Burp Turbo Intruder, aimed at the request that accepts the fee discount.
Finding it
The researcher's starting hypothesis was a race condition in the acceptance flow: if the accept request could be delivered several times before the offer was marked as used, the discount might be applied more than once. That is why he reached for Turbo Intruder rather than sending the request by hand.
As it turned out, a race was not even needed. Sending the accept request 30 times resulted in 30 fee discounts being applied to the account immediately. The researcher notes he forgot to take a screenshot of the request because he did not think it would work.
Exploitation
Step 1: Obtain a fee discount offer
Stripe Support applied a $20,000 fee discount offer to the researcher's account, and the dashboard displayed a prompt to accept it. This gives the account a valid fdo_ identifier for the offer.
Step 2: Capture the acceptance request
With the prompt in the dashboard, the request that accepts the offer is a call to:
/ajax/accept_fee_discount_offer
This is the request the researcher targeted with Burp Turbo Intruder.
Step 3: Replay the acceptance request
Instead of racing the request, the researcher simply called the endpoint 30 times. All 30 calls succeeded and 30 fee discounts were applied to the account straight away, leaving $600,000 of fee-free processing on the account against an intended offer of $20,000.
The researcher's assessment is that the endpoint could be called repeatedly as long as a valid fdo_ ID is supplied, so the number of applications is not capped at one per offer.
Root cause
The accept endpoint applies the discount each time it is called with a valid fdo_ identifier. The accept endpoint applied the discount each time it was called with a valid fdo_ identifier, so the same offer could be redeemed repeatedly. Because the replay worked without any concurrency, the missing single-use enforcement is the whole issue; the race condition the researcher originally suspected was not required.
Why the existing defences did not stop it is not described in the report.
Impact
Unlimited fee-free discounts. The researcher's framing of the cost to Stripe is about 3% of each discount, so $600 each time a $20,000 discount is abused. In his own case, 30 applications of a $20,000 offer produced $600,000 of fee-free processing.
The condition is possession of a valid fdo_ ID, which in the normal flow comes from an offer that Stripe Support has applied to the account. The researcher believes the endpoint could be called further as long as such an ID is available.
Fix
The report does not describe any fix or the change that was made.
Variants to test
- Replay any one-time acceptance or redemption endpoint (discounts, credits, coupons, trials, invitations) with the same identifier and count how many times the benefit is granted. A positive result is the benefit being applied more than once for a single identifier.
- Send the same acceptance request concurrently with Turbo Intruder even where sequential replay appears blocked, to check for a check-then-act window between validation and state change. A positive result is more than one application from a burst of parallel requests.
- Try identifiers from other offers or accounts against the accept endpoint to see whether the
fdo_ID is the only binding between the caller and the offer. A positive result is an offer being accepted by an account it was not issued to. - After a successful acceptance, retry the request with the same identifier later in the session to see whether redemption state is persisted at all. A positive result is the discount being applied again after the first acceptance has clearly completed.
Hunting notes
This kind of bug hides in business-logic endpoints that grant a benefit once per issued identifier: fee discounts, credits, promotional offers and similar. The signal during recon is a dashboard action that fires a dedicated AJAX endpoint carrying an offer or coupon identifier, especially one whose name describes a single action (accept_...) rather than a general update. Such endpoints are worth replaying a handful of times before reaching for concurrency tooling, because the missing single-use check may be plain and sequential.
The researcher counted 30 calls and 30 applications, $600,000 of fee-free processing against a $20,000 offer, plus the per-discount cost to Stripe. Testing on his own live account with a real offer from Support was what made that concrete evidence possible.
One limit worth noting for anyone repeating this: the report does not include the captured request or response, only the endpoint path, so the exact parameters and headers involved are not documented here.
What happened, in plain words
Stripe is a company that lets businesses take card payments online. When a customer pays a business through Stripe, Stripe keeps a small cut of the money as its fee. A fee discount is a credit Stripe gives a business to cover some of those fees: instead of paying the cut on the next chunk of transactions, the business gets that amount of processing for free.
Stripe Support offered this researcher a fee discount of $20,000 and applied it to his account. His dashboard then showed a button or prompt asking him to accept the offer.
The researcher suspected that if he could send that acceptance request several times very quickly, before Stripe marked the offer as used, the discount might be applied more than once. That kind of bug is called a race condition: two actions happening so close together that the system checks something before either has finished changing it. Think of two people grabbing the last seat on a train at the same moment, both seeing it free.
He used a tool called Burp Turbo Intruder, which can fire the same web request many times in a burst, to try this. But it turned out no race was needed at all. He simply sent the acceptance request 30 times, one after another, and all 30 were accepted. Each one applied the full $20,000 discount again, so his account ended up with $600,000 of fee-free processing instead of the $20,000 Stripe intended.
The core problem is that each valid request was treated as a fresh acceptance, so the same offer was applied again and again. This class of bug is called a business logic error: the code does exactly what it was written to do, but the rule of the business (one offer, one acceptance) was never enforced.
Context
Stripe is a payments platform. The feature at the centre of this report is a fee discount: a credit applied to a merchant's account that covers Stripe's processing fees on transactions. In this case Stripe Support offered the researcher a fee discount of $20,000 on Stripe transactions and applied the offer to his account. The dashboard then showed him a prompt to accept the fee discount.
Accepting that prompt is a single request to an endpoint on the dashboard side, /ajax/accept_fee_discount_offer, which takes an identifier for the offer. An endpoint is simply a specific address on a web server that does one job, like a service counter in a building: you go to that counter, hand over the right paperwork, and a specific thing happens. The offer identifier is prefixed fdo_. An identifier (or ID) is a unique label for one record, like a ticket number.
Setup
The researcher was an actual Stripe customer using Stripe for his real business, so he tested with his actual Stripe account, noting that there was no other way to do it. The precondition for reaching the feature at all is having a fee discount offer applied to the account by Stripe Support, which then surfaces the acceptance prompt in the dashboard.
The tool used was Burp Turbo Intruder, aimed at the request that accepts the fee discount. Burp is a program that sits between your browser and a website so you can see and change the traffic going back and forth. Turbo Intruder is an add-on to Burp that can send a request many times, very fast, which is why it is the usual choice for testing race conditions.
Finding it
The researcher's starting hypothesis was a race condition in the acceptance flow: if the accept request could be delivered several times before the offer was marked as used, the discount might be applied more than once. That is why he reached for Turbo Intruder rather than sending the request by hand.
As it turned out, a race was not even needed. Sending the accept request 30 times resulted in 30 fee discounts being applied to the account immediately. The researcher notes he forgot to take a screenshot of the request because he did not think it would work.
Exploitation
Step 1: Obtain a fee discount offer
Stripe Support applied a $20,000 fee discount offer to the researcher's account, and the dashboard displayed a prompt to accept it. This gives the account a valid fdo_ identifier for the offer. Without an offer from Support there is nothing to accept, so this step is the entry ticket to the whole test.
Step 2: Capture the acceptance request
With the prompt in the dashboard, the request that accepts the offer is a call to:
/ajax/accept_fee_discount_offer
This is the request the researcher targeted with Burp Turbo Intruder.
Reading the path piece by piece:
/ajax/is a folder-like part of the address. AJAX is the name for requests a web page makes in the background, without reloading the whole page, so the dashboard can talk to the server while you stay on the same screen.accept_fee_discount_offeris the name of the action. It reads like a sentence: accept the fee discount offer.
Capturing the request means recording exactly what the browser sent, so it can be sent again later, outside the browser, as many times as wanted.
Step 3: Replay the acceptance request
Instead of racing the request, the researcher simply called the endpoint 30 times. All 30 calls succeeded and 30 fee discounts were applied to the account straight away, leaving $600,000 of fee-free processing on the account against an intended offer of $20,000.
Replaying a request means sending the same recorded request again. Thirty times $20,000 is $600,000, so the account held thirty times the benefit it was supposed to.
The researcher's assessment is that the endpoint could be called repeatedly as long as a valid fdo_ ID is supplied, so the number of applications is not capped at one per offer.
Root cause
The accept endpoint applies the discount each time it is called with a valid fdo_ identifier. The accept endpoint applied the discount each time it was called with a valid fdo_ identifier, so the same offer could be redeemed repeatedly. Idempotency means that doing the same action twice has the same effect as doing it once, like pressing a lift button repeatedly: the lift still comes once. Here, each press added another discount. Because the replay worked without any concurrency, the missing single-use enforcement is the whole issue; the race condition the researcher originally suspected was not required.
Why the existing defences did not stop it is not described in the report. In plain terms, the server checked that the ticket was real but never marked it as used.
Impact
Unlimited fee-free discounts. The researcher's framing of the cost to Stripe is about 3% of each discount, so $600 each time a $20,000 discount is abused. In his own case, 30 applications of a $20,000 offer produced $600,000 of fee-free processing.
The condition is possession of a valid fdo_ ID, which in the normal flow comes from an offer that Stripe Support has applied to the account. The researcher believes the endpoint could be called further as long as such an ID is available.
Fix
The report does not describe any fix or the change that was made.
Variants to test
- Replay any one-time acceptance or redemption endpoint (discounts, credits, coupons, trials, invitations) with the same identifier and count how many times the benefit is granted. A positive result is the benefit being applied more than once for a single identifier.
- Send the same acceptance request concurrently with Turbo Intruder even where sequential replay appears blocked, to check for a check-then-act window between validation and state change. A check-then-act window is the short gap between the server deciding something is allowed and actually recording that it happened; a burst of parallel requests can slip through that gap. A positive result is more than one application from a burst of parallel requests.
- Try identifiers from other offers or accounts against the accept endpoint to see whether the
fdo_ID is the only binding between the caller and the offer. A positive result is an offer being accepted by an account it was not issued to. - After a successful acceptance, retry the request with the same identifier later in the session to see whether redemption state is persisted at all. A positive result is the discount being applied again after the first acceptance has clearly completed.
Hunting notes
This kind of bug hides in business-logic endpoints that grant a benefit once per issued identifier: fee discounts, credits, promotional offers and similar. The signal during recon is a dashboard action that fires a dedicated AJAX endpoint carrying an offer or coupon identifier, especially one whose name describes a single action (accept_...) rather than a general update. Such endpoints are worth replaying a handful of times before reaching for concurrency tooling, because the missing single-use check may be plain and sequential.
The researcher counted 30 calls and 30 applications, $600,000 of fee-free processing against a $20,000 offer, plus the per-discount cost to Stripe. Testing on his own live account with a real offer from Support was what made that concrete evidence possible.
One limit worth noting for anyone repeating this: the report does not include the captured request or response, only the endpoint path, so the exact parameters and headers involved are not documented here. Parameters are the extra pieces of information attached to a request, and headers are the labelled lines of metadata that travel with it, such as which browser is asking.
Glossary
- API: a defined way for one piece of software to ask another to do something, like a service counter with fixed rules about what you can request.
- Endpoint: a specific address on a server that performs one particular action.
- AJAX: a background request a web page makes to a server without reloading the page.
- Request: the message a browser (or tool) sends to a server asking it to do something.
- Response: the message the server sends back.
- Parameter: an extra piece of information attached to a request, such as an identifier.
- Header: a labelled line of metadata sent with a request or response.
- Identifier (ID): a unique label for one record, such as one offer.
fdo_prefix: the start of the identifier used for fee discount offers in this report.- Fee discount: a credit from Stripe that covers processing fees on transactions.
- Business logic error: a flaw where the code works as written but a real-world rule (such as one offer, one acceptance) is not enforced.
- Race condition: a bug where two actions happen so close together that the system's check is overtaken by events.
- Check-then-act window: the gap between the server validating something and recording that it happened.
- Idempotency: the property that repeating an action has the same effect as doing it once.
- Replay: sending a previously captured request again.
- Burp: a tool that sits between browser and website so traffic can be inspected and modified.
- Turbo Intruder: a Burp add-on for sending a request many times, very fast.
- Recon: the exploratory phase of looking at how a target works before testing it.
- Concurrency: several actions happening at the same time rather than one after another.