Skip to content
Access control Write-up Beginner

How I Unlocked Premium Features for Free via a Simple API Trick (Privilege Escalation Story)

The team invitation API endpoint lacked a backend authorization check, so any authenticated user on a free plan could invite people to a team. An attacker could therefore use premium-only team invitation features without paying.

FufuFaf1 Follow

Published on medium.com

Sometimes, the most interesting vulnerabilities are not about complex reverse engineering or exotic crypto attacks. Instead, they’re hiding in plain sight — waiting for someone curious enough to look beyond the surface.

MostReal, 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 API endpoint for team invitations did not verify that the caller's plan or role permitted inviting users, relying only on the frontend to hide the feature.

Impact

A free-plan user could use premium-only team invitation features without paying, potentially causing revenue loss and enabling further privilege escalation chains.

What the attacker needed

A valid session token for a free account

The fix

The backend should enforce an authorization check on the invitation endpoint to confirm the caller's plan and role permit inviting users.

How it was found

  1. Open the browser developer tools and use the Network tab while performing basic actions.
  2. Find the team invitation API endpoint.
  3. Take the authorization token and send a POST request to the invitation endpoint with an email and role.
  4. Observe that the invitation succeeds even though the account is on a 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 website usually has two parts: the screens you see and the server behind them. The screens hid the invite button, but the server still accepted invite requests from anyone with a login. This is like a club that checks your membership card at the front desk but leaves the back door open.

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 FufuFaf1

View all

5 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.