# Fee discounts can be redeemed many times, resulting in unlimited fee-free transactions

Accepting a fee-discount offer via /ajax/accept_fee_discount_offer was not idempotent, so replaying it 30 times stacked $600k of fee-free processing from a single $20k offer.

- Payout: $5,000
- Severity: medium
- Program: Stripe
- Found by: ian
- Disclosed: 2023-02-25
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1849626
- Library page: https://bugbountylibrary.com/r/h1%3A1849626
- Tags: area:web domain:api domain:web impact:funds-loss impact:integrity kind:bounty platform:hackerone sev:medium technique:race-window vuln:business-logic vuln:fee-bypass vuln:race-condition

**Target:** api.stripe.com dashboard AJAX endpoint /ajax/accept_fee_discount_offer
**Root cause:** The accept-fee-discount endpoint applied the discount on every call without checking whether the offer had already been redeemed or marking it consumed, so a single fdo_ offer ID could be redeemed repeatedly.
**Steps:**
1. Receive a fee-discount offer (fdo_ ID) applied to account by Support.
2. Capture the dashboard request `POST /ajax/accept_fee_discount_offer` with the fdo_ ID.
3. Replay the request 30 times (Burp Turbo Intruder, though race not required).
4. Observe 30 separate $20k discounts applied, totaling $600k fee-free processing.
**How found:** As a real Stripe customer offered a $20k fee discount, the researcher hypothesized a race condition on the acceptance prompt and used Burp Turbo Intruder to race the accept request; discovered no race was needed since sequential replays each applied a new discount.
**Exploitation:** Authenticated customer replays the accept_fee_discount_offer request with a valid fdo_ ID; each call stacks another discount, yielding unlimited fee-free transaction processing at ~3% cost to Stripe per abuse.
**Insight:** State-changing 'accept/claim/redeem' endpoints tied to a one-time offer ID are prime idempotency targets: replay the accept call sequentially before assuming a race is required, and check whether the offer is marked consumed server-side.

## Proof of concept (copied exactly from the original report)

**Repeated calls to accept_fee_discount_offer endpoint**

```
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!
```

