Skip to content
Business logic Write-up Intermediate

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.

Mohamed Saied Follow

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:

Mohamed Saied, 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 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

  1. Intercept a normal signup request and notice the accountType field is set to personal.
  2. Change accountType to business and observe an error requiring an organization object.
  3. Supply a minimal organization object and read validation errors that reveal required fields.
  4. Iteratively add the missing fields until only brandings remains.
  5. Provide brandings as an array of strings to satisfy validation.
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.