Skip to content
Access control Write-up Intermediate

Privilege Escalation: How Broken Access Control Led to Full Accou

A staff-level user could send the role-change request normally used by an owner and the server accepted it, letting the staff member promote themselves to admin. A second endpoint returned every staff member's UUID, email and staff_id to any low-privileged token from the same store, supplying the identifiers the escalation needed.

Abhishek Gupta Follow

Published on infosecwriteups.com

Hey everyone 👋 If you’re new here, I’m Abhishek — a security researcher and bug hunter who prefers understanding applications like a normal user before attacking them like a hacker.

Abhishek Gupta, on infosecwriteups.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 API authorised requests only by checking that the JWT belonged to the store, without verifying the caller's role or permission for that action.

Impact

A staff member could reach owner-only settings, view payouts and bank details, delete other admins and potentially divert the store's revenue.

What the attacker needed

A staff account on the store; a token from the same store; access to the staff listing endpoint

The fix

The team fixed it, and the API should also check the caller's role and permission on every staff-management action rather than only the store the token belongs to.

How it was found

  1. Log in as an owner and promote a staff member to manager while capturing the role-change request.
  2. Strip the captured request down to the fields the server actually needs.
  3. Replay the same role-change request using a low-privileged staff token instead of the owner token.
  4. Request the staff listing endpoint with the low-privileged token to obtain staff UUIDs, emails and staff_ids.
  5. Send the role-change request with the staff token, own UUID and role set to admin.
  6. Reload the page and confirm the owner settings, payouts and bank details are now visible.

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 decides what you may do by checking your role, such as staff or owner. Here the server only checked that the login token belonged to the store, not what role it carried, so a low-level account could perform owner-only actions. The attacker also found a page that listed other employees' hidden identifiers, which made the attack easy to complete.

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 Abhishek Gupta

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.