Bypassing Free Plan Subscription Limit via Race Condition
A free-plan user could publish more than the allowed one podcast by sending several publish requests at the same time. The application checked the limit without preventing concurrent requests, so the limit was bypassed.
Published on medium.com
Hello everyone, I’m Yahia, a Web Pentester and Bug Hunter, and I’d like to share an interesting race condition I discovered during testing.
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 publish limit was enforced with a check-then-act sequence that was not atomic, so parallel requests all passed the check before any was recorded.
What the attacker needed
A free-plan account; ability to send parallel requests
How it was found
- Notice that free-plan users are limited to publishing one podcast.
- Create a group of three publish requests.
- Send the three requests in parallel.
- Observe that more than one podcast is published on the free plan.
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 something and then acts on it, but two actions can slip in between the check and the act. Here the site checked how many podcasts you had, then allowed the publish, and by firing several requests together the check passed for all of them before any was saved. The result is that a limit meant to allow one podcast let several through.
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.