Skip to content
IDOR Write-up Beginner

IDOR — Santa’s Little IDOR

The TryPresentMe website used sequential user IDs and other guessable references (base64-encoded numbers, hashes, UUIDv1) without checking whether the requesting user was authorised to access the referenced data. An attacker could change these references to view other users' account details, children's information, and vouchers.

medium.com

Published on medium.com

The elves of Wareville are on high alert since McSkidy went missing. Recently, the support team has been receiving many calls from parents who can’t activate vouchers on the TryPresentMe website.

THM{0x416469747961204D6163686972616A75}, 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

The application used user-supplied references (such as user_id, base64-encoded IDs, hashes, or UUIDv1) to fetch data without verifying that the authenticated user was authorised to access that specific object.

Impact

An attacker could view other users' account details, children's information, and vouchers, leading to sensitive information disclosure.

What the attacker needed

A valid user account; access to browser developer tools

The fix

The server should always check that the authenticated user is authorised to access the requested object, rather than relying on hidden or encoded IDs.

How it was found

  1. Log in to the application with the provided credentials.
  2. Open the browser's Developer Tools and go to the Network tab.
  3. Refresh the page and inspect the view_accountinfo request, noting the user_id parameter.
  4. In the Storage tab, edit the auth_user entry in Local Storage and change the user_id value.
  5. Refresh the page to see another user's 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.

This is a walkthrough of a practice website that shows a common mistake: the site lets you see your own account by putting a number in the request, but it never checks that the number belongs to you. By changing that number, you can see other people's information. The fix is for the server to always check who is asking before returning any data.

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.