Skip to content
IDOR Write-up Beginner

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.

scriptjacker Follow

Published on scriptjacker.medium.com

Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.

Parth Narula, on scriptjacker.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

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

  1. Register a new account and receive an OTP.
  2. Observe the OTP verification URL contains a sequential user ID.
  3. Change the user ID in the URL to another user's ID.
  4. Enter your own OTP and submit.
  5. 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.

More by scriptjacker

View all

12 more disclosed reports, 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.