Skip to content
Access control Write-up Intermediate

Each and every request make sense…

An admin JWT was issued to any user who supplied a public organization ID, without verifying the user's cookies. An attacker could use this token to access some admin APIs, including one that leaked billing details, and potentially escalate privileges across organizations.

Akshar Tank Follow

Published on akshartank.medium.com

I hope your 2020 wasn’t that bad and you still gave your efforts to be productive.

Akshar Tank, on akshartank.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

Impact

An attacker could escalate privileges within an organization and potentially across organizations if they know the account ID, and access some admin APIs such as one leaking billing details.

What the attacker needed

A normal user account; knowledge of a public organization ID; for cross-org: account ID known

How it was found

  1. Attach Burp to the browser and observe requests.
  2. Notice that a single request returns an admin JWT when supplying a public organization ID, without checking cookies.
  3. Execute that request in a normal user session to obtain the JWT.
  4. Exchange the JWT for an X-admin-token header.
  5. Use the token to access admin APIs; most fail, but some work, including one leaking billing details.

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.

The website gave out a special admin pass (a JWT) to anyone who asked with a certain public number, without checking if they were logged in as an admin. The attacker could then use that pass to reach some admin-only pages, like one showing billing information.

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 Akshar Tank

View all

1 more disclosed report, 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.