Skip to content
IDOR Write-up Beginner

The Story of How I Hacked an International University in Indonesi

An IDOR vulnerability in a university website allowed access to any user's data, including citizenship numbers, email addresses, and password reset tokens. An attacker could use a leaked reset token to change another user's password and take over their account.

JC Follow

Published on infosecwriteups.com

My friend suggested I sign up for a university to get a degree (such a thoughtful friend 🫡). He even sent me the registration link.

JC, on infosecwriteups.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 application did not verify that the requesting user was authorised to access the requested user record, allowing any authenticated user to read arbitrary records by changing an identifier.

Impact

An attacker could view sensitive personal data (citizenship numbers, emails) and password reset tokens for any user, and could use a token to take over any account.

What the attacker needed

A free account; ability to intercept HTTP requests

The fix

The application should enforce proper authorisation checks so that users can only access their own records, and password reset tokens should not be exposed in API responses.

How it was found

  1. Register a new account using a temporary email and activate it via the verification link.
  2. Log in and inspect network requests to find API endpoints that return user data.
  3. Copy a request as a cURL command and run it to see the JSON response.
  4. Change the user ID in the request to another value (e.g., 37) and observe that it returns another user's data.
  5. Request a password reset for a second account and capture the reset token from the link.
  6. Replace the token with one obtained from the IDOR-accessible data to reset the second account's password.

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.

An IDOR (Insecure Direct Object Reference) happens when a website uses a simple identifier, like a number, to fetch data and does not check if you are allowed to see it. Here, changing a number in a request let the researcher see other people's private details, including a special code meant for resetting passwords. With that code, someone could reset another person's password and log in as them.

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.