Skip to content
IDOR Write-up Beginner

How I was able to Extract Information of Other Users- Exploiting IDOR

A user profile endpoint accepted a user identifier supplied by the client and returned another user's username and email without checking ownership. By changing the identifier, an attacker could read the username and email of any registered user, and enumerating identifiers exposed many accounts at once.

Rupika Luhach Follow

Published on medium.com

Today I am writing a blog about How I was able to extract the username and email of thousands of registered users on a website.

Rupika Luhach, 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 profile endpoint authorised the request but never verified that the supplied user identifier belonged to the authenticated user.

Impact

An attacker could read the username and email of any registered user, and by enumerating identifiers could harvest the details of thousands of accounts.

What the attacker needed

A free account; ability to intercept HTTP requests

How it was found

  1. Register on the website and open the Edit Profile page.
  2. Intercept the profile update request with a proxy tool.
  3. Change the user identifier in the request to another value.
  4. Observe that another user's username and email are returned.
  5. Send the request to an intruder tool and enumerate a range of identifiers to harvest many accounts.

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 edit your profile, the site sends a request that includes a number identifying your account. The site trusted that number and handed back whatever account it pointed to, without checking that the account belonged to the person asking. Changing the number let the researcher read other people's usernames and email addresses.

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 Rupika Luhach

View all

1 more disclosed report, 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.