Skip to content
Race condition Write-up Intermediate

How i Bypass Subscription Limits by race condition vulnerability

The application allowed only one team member per subscription, but sending multiple concurrent Add User requests with different email addresses bypassed this limit. An attacker could add multiple users to a single-seat subscription, gaining higher-tier benefits without paying.

medium.com

Published on medium.com

Race conditions are often overlooked in SaaS applications, but they can be devastating when tied to business logic. Recently, I discovered a vulnerability in a subscription system where a user could bypass team size limits by exploiting a race condition during the Add User process.

Abhishek sharma, 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 backend checked the team size limit without atomic locking, so concurrent requests all passed the check before any user was added.

Impact

Users could bypass seat limits to gain higher-tier subscription benefits without upgrading, causing revenue loss and allowing paid services to be shared with unauthorised users.

What the attacker needed

A subscription plan with a team member limit; ability to send concurrent HTTP requests

The fix

The backend should enforce the team size limit atomically, for example by using locking or a database constraint, so concurrent requests cannot all pass the check.

How it was found

  1. Start with a subscription that allows adding only 1 team member.
  2. Add one user normally and confirm that further additions are blocked in the UI.
  3. Capture the Add User request in Burp Suite.
  4. Send the request to Burp Repeater.
  5. Modify the email field with different accounts.
  6. Group the modified requests and fire them concurrently.

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 race condition happens when a system checks a limit but doesn't lock it, so if you send many requests at the same moment, they all pass the check before any of them updates the count. Here, the app checked 'is there already one user?' for each request, but because they arrived together, all were allowed, letting more than one user join a one-person plan.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.