Skip to content
Access control Write-up Intermediate

️♂️ How I Uncovered a $1000 Vulnerability by Exploiting an

A SaaS platform's billing and authentication services were not synchronised, so after a user downgraded from Enterprise to Pro their old Enterprise role stayed active for 15–30 seconds. An attacker could use that window to call Enterprise-only API endpoints and export confidential reports or change team permissions.

Krish_cyber Follow

Published on cybersecuritywriteups.com

Bug hunting isn’t just about coding skills — it’s about thinking like a hacker. And sometimes, the juiciest vulnerabilities hide in plain sight, disguised as “minor oversights.” Let me take you through how I stumbled upon a Broken Access Control flaw due to an out-of-sync system setup and turned it into a $1,000…

Krish_cyber, on cybersecuritywriteups.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 billing service and the authorisation service updated the user's role independently, with no transactional coupling, leaving a window of eventual consistency.

Impact

During the short sync window an attacker could download sensitive reports, modify team permissions and invite users to Enterprise-only projects.

What the attacker needed

A paid Enterprise subscription; ability to downgrade the plan; fast repeated API requests

The fix

The company fixed it by coupling the billing and auth services with a message queue so role changes trigger instant updates.

How it was found

  1. Change the subscription plan from Enterprise down to Pro.
  2. Before the authorisation service updates, send many API requests to an Enterprise-only feature.
  3. Observe that the Enterprise-only endpoint returns data successfully.

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.

When you change your subscription plan, the part of the system that handles payments and the part that checks what you are allowed to do are separate. If they update at different times, there is a short period where the old, higher permissions still work. The researcher waited for that gap and sent requests quickly to use features they had already paid to stop using.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Krish_cyber

View all

12 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.