Skip to content
IDOR Write-up Intermediate

IDOR via Websockets

The WebSocket comment operation accepted a client-supplied author identifier, allowing a user to post comments as another user. The attacker could impersonate any user, including those outside their team, by reusing a valid comment UUID.

Shuaib Oladigbolu Follow

Published on footstep.ninja

In my previous post, I shared my love for testing Insecure Direct Object Reference (IDOR) vulnerability. This time I’ll be sharing the situation where I found an IDOR in Websockets.

Shuaib Oladigbolu, on footstep.ninja

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

Impact

An attacker could post comments as any other user, including users outside their team, by reusing a valid comment UUID.

What the attacker needed

Access to a slide with commenting enabled; a second account to impersonate; ability to intercept and modify WebSocket traffic

How it was found

  1. Make a comment on a slide while logging requests with Burp Suite.
  2. Notice an HTTP PUT request and a WebSocket request containing the comment data.
  3. Send the WebSocket request to Burp Repeater and replace the authorID with another account's ID.
  4. Observe that the request fails because the commentUUID can only be used once.
  5. Make another comment with interception on, copy the commentUUID from the HTTP PUT request, and drop both requests.
  6. Replace the commentUUID in Burp Repeater with the copied one and send the request to post as another user.

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 WebSocket is a two-way connection between a browser and a server. The server trusted the user ID sent in the comment message instead of checking who was actually logged in, so someone could pretend to be another person when posting a comment.

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 Shuaib Oladigbolu

View all

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