Skip to content
Race condition Write-up Intermediate

From a Simple Publish Request to a Subscription Limit Bypass

The application checked subscription limits before updating the published course count, allowing concurrent publish requests to all pass validation. An authenticated user could exceed their plan's course limit and access higher-tier functionality.

medium.com

Published on medium.com

While testing the application, I noticed that my subscription plan allowed me to publish only a limited number of courses.After publishing the maximum number of courses allowed by my plan, the application correctly prevented me from publishing any additional courses through the user interface.

Rootxsecurity, 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 performs the limit check and the count update as separate, non-atomic operations, so concurrent requests can all read the same pre-update value.

Impact

An authenticated user could exceed their subscription plan's limits and access functionality that should require a higher tier; the issue affected multiple features sharing the same limit-enforcement logic.

What the attacker needed

An authenticated account; a subscription plan with a course limit; ability to send concurrent requests

How it was found

  1. Publish courses until the plan's maximum is reached.
  2. Intercept the request that publishes a course.
  3. Duplicate the request several times, changing only the course ID to target different unpublished courses owned by the same account.
  4. Send all requests concurrently.
  5. Refresh the dashboard to see the published course count exceed the plan limit.

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 program checks a rule and then acts on it, but two requests can both pass the check before either updates the record. Here, a user could send many publish requests at the same moment, and each one thought the limit had not been reached, so all succeeded. This let the user publish more courses than their paid plan allowed.

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.