Skip to content
IDOR Write-up Beginner

The Developer Called Me: How an IDOR Leaked 403 Users and Led to Account Takeover

An API endpoint returned full user profiles, including home addresses and exact coordinates, for any sequential transaction identifier, exposing 403 users' data. A separate OTP login flow let the phone number in the request be swapped so the one-time code meant for a victim was delivered to the attacker, giving access to that account.

gjethva10 Follow

Published on medium.com

What happened next was a chain reaction that flooded my phone with strangers’ order confirmations, leaked their exact home addresses, and ended with a senior backend developer calling me to ask, “Are you the one booking all these orders? And how did you get access to our UAT site?”

Gaurang Jethva, on 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

Root cause

Likely the details endpoint authorised only on being logged in rather than on owning the record, and the OTP endpoint bound the code to a client-supplied phone number instead of the account being authenticated.

Impact

Attackers could read the personal and location data of hundreds of users, and the OTP flaw allowed takeover of another user's account, exposing balance, transaction history and payment methods.

What the attacker needed

A free account; sequential transaction identifiers; victim's phone number known

How it was found

  1. Capture the transaction details request and note the transaction identifier parameter.
  2. Send it to an interception tool and set the identifier as the fuzzing position.
  3. Run a range of identifiers from 1 to 1000 and review the responses.
  4. Collect the profiles returned for valid identifiers.
  5. On the separate login portal, request an OTP for the victim's number and capture the request.
  6. Replace the phone number with the attacker's own and forward it, then use the received code to log in.

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.

A transaction identifier is a number the site uses to look up one order. The site never checked that the order belonged to the person asking, so changing the number showed other people's details. Separately, the login page trusted the phone number typed into the request, so an attacker could ask for the code to be sent to their own phone and then log in as someone else.

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 gjethva10

View all

1 more disclosed report, 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.