How IDOR and Business Logic Flaw Exposed PII
The OTP verification page used a sequential user ID in the URL, and the server only checked if the submitted OTP was valid for any user, not the specific user in the URL. An attacker could change the user ID to another user's and enter their own valid OTP to reveal that user's email address, including admin accounts.
Published on scriptjacker.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
Impact
An attacker could disclose email addresses of other users, including internal admin accounts, by using their own valid OTP with a changed user ID.
What the attacker needed
A free account; ability to receive OTP
How it was found
- Register a new account and receive an OTP.
- Observe the OTP verification URL contains a sequential user ID.
- Change the user ID in the URL to another user's ID.
- Enter your own OTP and submit.
- The page redirects to login with the victim's email pre-filled.
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 sign up, the site gives you a number in the web address. The site checked if the code you typed was correct for anyone, not just for the account in the address. So a attacker could change the number to someone else's and use their own code to see that person's email.
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.