How a Temporary Invite Led to a Permanent Billing Takeover
The group listing endpoint exposed another organisation's Stripe customer identifier to an unauthorised user, and the group creation endpoint accepted a client-supplied customer identifier without checking ownership. An attacker could bind a victim's billing profile to their own group, consume credits billed to the victim, and keep that billing link after leaving the organisation.
medium.com
Published on medium.com
بس� الله الرح� ن الرحي� الله� صلِّ على سيدنا � ح� د ﷺ وعلى آله وصحبه وسل� تسلي� ًا كثيرًا
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 the group endpoints lacked authorisation checks and trusted a client-supplied Stripe customer identifier without verifying ownership or organisation membership.
Impact
The attacker could consume credits and paid resources billed to the victim and retain billing access permanently, even after leaving the organisation.
What the attacker needed
An account on the platform; knowledge of a victim organisation ID
The fix
The endpoints should enforce authorisation on the organisation and verify that any supplied Stripe customer identifier belongs to the requesting user's organisation, and the identifier should not be returned in listings.
How it was found
- Request the group listing endpoint for the victim organisation with the attacker's token.
- Read the victim's Stripe customer identifier from the response.
- Send a group creation request including that customer identifier.
- Observe the new group is created and the attacker account shows the victim's free credit.
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.
Every paying customer at this service is linked to a billing record at Stripe, a payment company, identified by a customer ID. The site handed that ID to anyone who asked and then let them attach it to their own group, so their usage was charged to someone else's card. The mistake is trusting an identifier sent by the user instead of checking who really owns it.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.