Skip to content
Access control Write-up Intermediate

Deleting an Admin Isn’t Enough: A Broken Access Control Case

A removed administrator could replay previously captured authenticated requests to invite a new admin, because the backend did not re-check the user's current role. This allowed the removed admin to regain administrative control and take over the project.

zyad_ibrahim333 Follow

Published on medium.com

In this write-up, I want to share a Privilege Escalation vulnerability I discovered in a large company. I don’t publish write-ups frequently, but when I do, I try to focus on cases that carry a slightly different idea, so the content doesn’t feel repetitive or generic.

Zyad Ibrahim, 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 server relied on previously captured requests and did not validate the user's current role or permissions on each request.

Impact

A removed administrator could regain admin privileges, remove the original admin, and fully take over the project.

What the attacker needed

Attacker was previously an admin; Attacker captured admin requests while still admin; Attacker is later removed from the project

How it was found

  1. Admin B, while still an admin, initiates an invitation request to promote User C to admin.
  2. Admin B intercepts and saves this request for later use.
  3. Admin A removes Admin B from the project.
  4. Admin B replays the previously captured invitation request.
  5. Admin B also replays two additional previously captured requests that the application uses to implicitly verify admin context.
  6. The server processes the third request and sends the admin invitation to User C.

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 someone is removed as an admin, the system should stop trusting their old requests. Here, the server kept accepting requests that were saved earlier, so the removed admin could still perform admin actions. This is like keeping a copy of a key after being fired and still being able to open the door.

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 zyad_ibrahim333

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.