Skip to content
IDOR Write-up Beginner

IDOR Privilege Escalation: Deleting Protected Accounts

A contact management page hid the delete option for protected technical and content contacts, but the backend DELETE endpoint did not check the contact's role. A normal team member could swap the contact identifier in the request and silently delete a protected admin-level contact.

scriptjacker Follow

Published on scriptjacker.medium.com

Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.

Parth Narula, on scriptjacker.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 delete endpoint authorised the request only at the integration level and never checked the target contact's role or protection status.

Impact

Any normal team member with access to the integration could delete protected admin-level contacts, and the identifiers needed were leaked in the page's own response.

What the attacker needed

Access to the integration as a normal member

How it was found

  1. Open the integration contacts page and note that protected contacts have no delete button.
  2. Edit a protected contact, save, and intercept the request to capture its identifier.
  3. Delete a normal employee contact and intercept the DELETE request.
  4. Replace the contact identifier with the protected contact's identifier and send it.
  5. Refresh the page and confirm the protected contact is gone.

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.

Some web pages hide buttons from you, but the server behind the page may still accept the action if you send it directly. Here the delete button was hidden for important contacts, yet the server never checked whether the contact was protected, so changing one identifier in the request deleted it anyway. This kind of flaw is called an IDOR: the server trusts an identifier you supply without checking you are allowed to use it.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by scriptjacker

View all

12 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.