Skip to content
IDOR Write-up Intermediate

Think Outside The Box Again, With IDOR !

The profile update endpoint identified users only by a UUID taken from the URL, without checking that the session cookie belonged to that user. An attacker who obtained a victim's UUID could change the victim's profile data using their own session.

medium.com

Published on medium.com

Hello Hackers, In This Article You Will Reconsider Once Again To Get IDOR, Why ? Because You Have To Test The Efficiency Of The Function, And If There Is A Defect, Put It Aside And Be Patient

Mohammed Khalid, 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 update handler used the UUID from the request to choose which user row to update, but never compared it with the authenticated user in the session.

Impact

An attacker who knows a victim's UUID could change that victim's profile information, but obtaining the UUID is a separate hurdle and the text does not show a working way to get it.

What the attacker needed

A free account; victim's UUID known

The fix

The update handler should verify that the UUID in the request matches the authenticated user's session before applying changes.

How it was found

  1. Create an account and visit the profile page to see that users are identified by UUID.
  2. Change your own profile data and capture the request in a proxy such as Repeater.
  3. Create a second (victim) account and note its UUID.
  4. Replay the profile update request with the victim's UUID in the URL while keeping your own session cookies.
  5. Observe that the victim's profile data is changed.

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 UUID is a long random-looking ID used to name a user. The site let anyone send a profile update for any UUID, and it did not check that the person sending it was logged in as that user. So if you knew someone else's UUID, you could edit their profile.

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.