How I Bypassed a SaaS Payment Flow to Gain Organization Admin & P
The signup API accepted a client-controlled accountType field, allowing an attacker to create a business organization and assign themselves admin privileges without payment. This unlocked paid-only features for free.
Published on medium.com
While analyzing the signup flow of a popular SaaS platform, I discovered that a single unauthenticated API endpoint allowed me to:
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 server trusted a client-supplied accountType field and did not verify payment or authorization before creating a business organization and assigning admin privileges.
Impact
An attacker could create a business organization, become its admin, and access paid features without paying, as demonstrated by the successful signup and post-exploitation login.
What the attacker needed
A valid anti-bot token; ability to intercept and modify requests
The fix
The server should not trust client-supplied accountType; it should enforce payment and authorization checks before creating a business organization or assigning admin roles.
How it was found
- Intercept a normal signup request and notice the accountType field is set to personal.
- Change accountType to business and observe an error requiring an organization object.
- Supply a minimal organization object and read validation errors that reveal required fields.
- Iteratively add the missing fields until only brandings remains.
- Provide brandings as an array of strings to satisfy validation.
- Send the final request and receive a 200 OK, then log in to see admin privileges and paid features enabled.
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.
When you sign up for a service, the server should decide what kind of account you get, not your browser. Here, the signup request included a field that the user could change to say 'business' instead of 'personal', and the server trusted it. That let anyone create a paid business account with admin rights for free.
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.