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.
.بِسْ� اللَّه الرَّحْ� ن الرَّحِي� . . اللَّه� َّ صَلِّ وَسلَّ� وبارك على نَبِينَا � ُح� َّد
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
- Find subdomains and check which ones respond.
- Open the discovered login page and try to log in.
- Collect JavaScript files and extract endpoints from them.
- Intercept the login request and notice it calls the user-details endpoint.
- 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.