Skip to content
IDOR Write-up Beginner

When Favoriting Goes Rogue: Broken Access Control Flaw. ️

The favourite-board API accepted any board UUID without checking ownership, so an authenticated user could favourite and read other users' boards. The author demonstrated both the POST and GET endpoints returning success and data for boards that did not belong to them.

medium.com

Published on medium.com

So there I was, minding my own business, clicking buttons like every curious bug bounty hunter does purely for research purposes, of course.

Umanhonlen Gabriel, 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 API used the client-supplied board identifier directly in its queries without verifying that the board belonged to the requesting user.

Impact

An authenticated user could add any board to their favourites and retrieve data for any board, including boards belonging to other users.

What the attacker needed

An authenticated account; knowledge of another board's UUID

The fix

The API should verify that the board belongs to the requesting user and enforce authorization before acting on the identifier.

How it was found

  1. Send a valid favourite request with your own board UUID and observe a 201 Created response.
  2. Replace the UUID with one belonging to another user and send the request again.
  3. Observe that the server still returns 201 Created with no ownership error.
  4. Call the GET favourite endpoint with your session but another user's board UUID.
  5. Observe that the response returns the other user's board data.

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 you log in, the server should check not just that you are logged in but also that the thing you are asking for belongs to you. Here the server skipped that second check, so any logged-in person could name someone else's board and the server would hand it over or change 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.

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.