IDOR at Login function leads to leak user’s PII data
The login endpoint returned full personal data for any username entered, not just whether the account existed. An attacker could enumerate usernames and harvest names, emails, phone numbers and firm details for all registered users.
Hello @All. Today we will talk about one of my latest findings at a private program.
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 login API returned the full user record for a supplied username instead of only a boolean existence check, and lacked rate limiting.
Impact
An attacker could enumerate usernames and obtain personal data such as names, emails, phone numbers and firm names for registered users.
What the attacker needed
Access to the login page; knowledge of or ability to guess usernames
The fix
The response should be limited to a simple existence flag without personal data, and the endpoint should be rate-limited; the report says the bug was resolved.
How it was found
- Go to the vulnerable subdomain's login page and enter a username.
- Observe that the response includes the user's personal data.
- Send the request to an intruder tool and try other usernames to confirm.
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 type a username at login, the site should only say whether that name exists, not show the person's private details. Here it sent back the user's name, email, phone and company just because someone typed their username. Anyone could try many usernames and collect this information for lots of people.
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.