Double-Door IDOR Exposing 85k+ Emails
Two IDOR vulnerabilities exposed user email addresses by changing numeric IDs in URLs. An attacker could enumerate sequential IDs to access emails of other users, including administrative ones, without authentication.
medium.com
Published on medium.com
Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.
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 missing server-side authorization checks on endpoints that use sequential numeric user IDs, allowing any user to access other users' email addresses by changing the ID.
Impact
An attacker could enumerate sequential user IDs to access the email addresses of over 85,000 users, including administrative emails, without authentication or rate limiting.
What the attacker needed
No authentication required for first IDOR; A free account for second IDOR; Ability to modify URL parameters
The fix
The vulnerabilities were fixed after being reported to the clients.
How it was found
- Sign up on the website and get redirected to an email verification page with a numeric user ID in the URL.
- Change the numeric ID in the URL to a different number.
- Observe that the page displays another user's email confirmation page including their email address.
- On a second platform, log in and click your email address to go to a printable page with a numeric user ID.
- Change the numeric ID in the URL to a different number.
- Observe that the page shows a 'Page not found' error but still displays another user's email address.
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 in the URL, to refer to a user's data but doesn't check if you're allowed to see it. Here, changing the number showed other people's email addresses, and because the numbers were sequential, someone could cycle through them to collect many emails.
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.