Stripe Subscription Escalation by Default
When a user upgraded a Stripe subscription to a more expensive plan, the plan change was applied even though the payment failed, so the user gained access to paid features without paying. The author says this is Stripe's default behaviour and that developers must opt in to a safer setting.
Being a bug bounty hunter, you should be aware of cases in which vulnerabilities aren’t caused by the developers’ own code but rather through a mistake in how they implement vendor software they use. The number of vulnerabilities you identify that also impact other applications that utilize the same software will…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely Stripe's default payment behaviour applies a subscription update even when the invoice payment fails, and the application trusted the updated plan without checking payment status.
Impact
A user could obtain paid features worth the plan price without a successful payment; the author notes the issue still arises despite the documentation update.
What the attacker needed
A free account; ability to send a modified subscription request; a card that will be declined
The fix
Developers should pass the pending_if_incomplete payment behaviour so the subscription only updates once payment succeeds, and roll back changes on failed payments.
How it was found
- Find the subscription update request and note the price identifier it carries.
- List the available price identifiers to find the most expensive plan.
- Send the update request with the expensive plan's identifier while using a card that will be declined.
- Observe that the payment fails but the paid features are still unlocked.
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 write-up has not been written yet. The Original tab links to the source.
A subscription service like Stripe tracks which plan a customer is on. Normally you only get the better plan after your card is charged. Here the plan was switched over before the charge succeeded, so a failed payment still unlocked the expensive features. The author says this happens because of a default setting in Stripe that developers have to change themselves.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.