Skip to content
IDOR Write-up Intermediate

Yes I can see your OTP

The resend-verification-code request returned the OTP in its response, and the OTP was tied to a customerID parameter that could be changed to expose codes for other users. An attacker could obtain a victim's OTP and use it to verify an account with the victim's phone number, potentially impersonating them to place orders.

Vulnerables Follow

Published on web.archive.org

{{media:0}}

Vulnerables, on web.archive.org

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 verification-code endpoint returned the OTP in the response and keyed it to a client-supplied customerID without checking ownership, so changing the ID exposed other users' codes.

Impact

An attacker could obtain other users' OTPs and potentially verify accounts with their phone numbers, enabling impersonation and fraudulent orders; the author notes the exposed codes were already-used OTPs, so the immediate impact was limited.

What the attacker needed

Access to the sign-up flow; ability to intercept HTTP requests; a phone number for sign-up

How it was found

  1. Sign up with a random phone number to reach the verification page, which contains a customerID in the URL.
  2. Intercept the resend-code request, which includes only a customerID.
  3. Forward the request and observe the confirmation code returned in the response.
  4. Change the customerID to a neighbouring value and forward again to receive another user's code.

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 sends a one-time code (OTP) to your phone to prove it is yours. Here the server also sent that code back in the web response, and the code was linked to a number in the request that could be changed to another user's number. That let someone read other people's codes and finish verification as them.

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 Vulnerables

View all

2 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.