Skip to content
IDOR Write-up Beginner

How I Got IDOR lead to PII In Login Page

A login page called a user-details API endpoint that returned personal information (name, user ID and phone number) for a user identifier supplied by the client. An attacker could change that identifier to retrieve other users' details, though the report does not show this being done.

shari7a0x Follow

Published on medium.com

.بِسْ� اللَّه الرَّحْ� ن الرَّحِي� . . اللَّه� َّ صَلِّ وَسلَّ� وبارك على نَبِينَا � ُح� َّد

Shari7a0x, 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 user-details endpoint trusted a client-supplied user identifier and returned records without checking that the requester was entitled to them.

Impact

Personal information such as names, user IDs and phone numbers could be disclosed, but the report does not demonstrate access to another user's record.

What the attacker needed

Access to the login page; ability to intercept HTTP requests

How it was found

  1. Find subdomains and check which ones respond.
  2. Open the discovered login page and try to log in.
  3. Collect JavaScript files and extract endpoints from them.
  4. Intercept the login request and notice it calls the user-details endpoint.
  5. Read the response and see the user's name, ID and phone number.

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.

Many websites look up records using an identifier that the browser sends, such as a user number. If the server does not check that the person asking is allowed to see that record, anyone can change the number and read someone else's data. This is called an insecure direct object reference, or IDOR.

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 shari7a0x

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.