Skip to content
Access control Write-up Beginner

How a Simple Endpoint Copy Turned Into Bonus Bounty$$

An employee-level account could access admin-only endpoints directly, allowing full admin actions. After the fix, the same endpoints remained accessible via the API even though the frontend blocked them.

whitehat29 Follow

Published on medium.com

One day, I noticed that one of my old programs had introduced a double reward offer. I thought, “Perfect, let’s dive back in!”

Tanishx0h, 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 missing server-side authorization checks on admin endpoints, and after the fix, the API still lacked proper authorization while only the frontend blocked access.

Impact

An employee-level user could view all admin information and perform admin actions such as create, delete, and edit; after the fix, the API still allowed access to all admin data even though the UI blocked it.

What the attacker needed

An employee account; an admin account; knowledge of admin endpoints

The fix

The first issue was fixed, but the fix was incomplete because the API still lacked proper authorization; the text does not state whether the second issue was fixed.

How it was found

  1. Create an employee account and an admin account.
  2. From the admin account, copy sensitive endpoints such as dashboard, profile, settings, and company-settings.
  3. Log in as the employee and paste those endpoints directly into the URL.
  4. Observe that admin information is accessible and admin actions can be performed.
  5. After the fix, copy the same admin endpoint into the employee frontend and capture the request.
  6. Observe that the frontend blocks the request but the API still returns admin data.

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 privilege escalation bug means a low-level user can do things only an admin should do. Here, the website's pages for admins were not properly protected, so an employee could open them by typing the address directly. Later, even after the pages were blocked in the browser, the underlying API still allowed access.

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 whitehat29

View all

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