Skip to content
IDOR Write-up Intermediate

How a Broken Access Control + 2 IDOR Chain Allowed Deleting Other

The participant-management endpoint of a messaging API did not check that the caller owned the conversation being modified, and a contact-lookup endpoint exposed any user's UUID to any authenticated user. An attacker could therefore delete participants from other users' conversations in any account.

D3v!lXØr Follow

Published on d3vilx0r.medium.com

In this write-up, I’ll walk you through a juicy Broken Access Control vulnerability I discovered during a security assessment. It allowed me to delete participants from any conversation belonging to other users — without authorization.

D3v!lXØr, on d3vilx0r.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 trusted the conversation and participant identifiers supplied in the request body without verifying that the authenticated user belonged to that conversation, and a separate lookup endpoint returned user UUIDs without ownership checks.

Impact

An attacker could remove participants from other users' conversations in any account without their knowledge or permission.

What the attacker needed

Two attacker accounts; one victim account; victim invites attacker to a conversation; ability to intercept HTTP requests

How it was found

  1. Create two attacker accounts and a victim account, and have the victim invite the first attacker into a conversation.
  2. As the first attacker, read the conversation list to obtain the victim's conversation identifier.
  3. As the attacker, query the contact-lookup endpoint with the victim's email to obtain the victim's UUID.
  4. As the second attacker, start a participant removal in their own conversation and intercept the request.
  5. Replace the conversation identifier and participant UUID with the victim's values, then forward the request.
  6. The server returns a success response and the victim's participant is removed.

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.

Every object in a web app, such as a conversation, has an identifier. A broken access control bug means the server accepts an identifier from the request and acts on it without checking that the person asking is allowed to touch that object. Here the server let one user change another user's conversation just because the right identifier was supplied.

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.

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.