Skip to content
Business logic Write-up Beginner

Business Logic: Bypassing Free Plan Team Invitations

The application restricted inviting users to a team to paid plans only in the user interface, not on the server. An attacker on the free plan could send a modified invitation request without the required identifier and the backend would create a valid invitation with a token.

medium.com

Published on medium.com

Business logic vulnerabilities arise from how an application is designed to function, rather than from low-level technical flaws.

Essam Ezzat, 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

The subscription restriction was enforced only on the client side, and the backend did not validate the request structure or the user's plan.

Impact

A free plan user could invite other users to their team, bypassing the paid plan requirement, and the system generated valid invitation tokens.

What the attacker needed

A free plan account; ability to intercept and modify requests

The fix

The restriction should be enforced on the server side by validating the user's subscription plan and the request structure before creating an invitation.

How it was found

  1. As a free plan user, try to invite a user and observe that the interface blocks it.
  2. Intercept the invitation request, which contains an id, an email and a role value.
  3. Change the email to one you control; the request fails because the id is missing.
  4. Remove the id parameter entirely from the request body and send it.
  5. Observe that the server accepts the request and creates an invitation.
  6. Check the response and find an invitation ID and a valid invite token.

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 business logic flaw is when a website has a rule, like 'only paying users can invite teammates', but the rule is only checked in the browser. The server that actually does the work does not check it. So someone can use a tool to send the request directly and get around the rule.

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.