Skip to content
Business logic Write-up Beginner

How I Bypassed SaaS Subscription Limits and Generated Unlimited API Keys.

The frontend enforced a free-plan limit on API key creation, but the backend did not re-check the quota, so replaying a previously valid creation request produced additional API keys beyond the limit. An attacker could therefore obtain unlimited paid resources without upgrading.

omaralgbry1 Follow

Published on medium.com

While poking around a SaaS platform for bug bounty research, I ran into a business logic flaw that let me break the free plan API key limit without paying a benny for an upgrade.

OWL, 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 did not independently verify the account's API key quota, relying instead on the frontend to enforce the limit.

Impact

An attacker could use paid features without paying, potentially exhaust backend resources, and render subscription checks meaningless.

What the attacker needed

A free account; ability to intercept and replay requests

The fix

The backend should independently enforce the API key quota on every request, rather than relying on the frontend.

How it was found

  1. Create API keys through the web dashboard until the free plan limit is reached.
  2. Capture a legitimate API key creation request using Burp Suite.
  3. Replay the captured request using Burp Repeater.
  4. Observe that the backend creates an additional API key despite the 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 website often shows buttons and limits in your browser, but the real work happens on the server. Here, the browser stopped you from making more API keys, but the server did not check the limit itself. So if you sent the same request again using a tool, the server happily made more keys.

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.

More by omaralgbry1

View all

5 more disclosed reports, best first.

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.