Skip to content
IDOR Write-up Intermediate

IDOR allow Zero Click account takeover on a web3 program

A registration endpoint accepted a user identifier without authentication, allowing an attacker to change another user's email and phone number. The attacker could then use the password reset flow to take over the account, bypassing phone verification.

medium.com

Published on medium.com

Today I will tell you How I found a zero click account takeover on a web 3 program

JEETPAL, 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 server trusted a client-supplied user identifier without verifying that the requester was authenticated as that user.

Impact

An attacker could take over any user's account by changing their email and phone number, then resetting the password, without any interaction from the victim.

What the attacker needed

A free account; knowledge of victim's user ID

The fix

The server should authenticate requests and verify that the user is authorised to modify the specified account's details.

How it was found

  1. Register an account and observe the POST request sent during signup.
  2. Create a second account and note its user ID.
  3. Change the ID parameter in the request to the second account's ID and modify the email and phone number.
  4. Use the password reset flow with the new email to set a new password.
  5. Bypass phone verification because the server does not validate the phone number.

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 website sends your details to its server. This report found that the server did not check who was sending the request, so anyone could change another person's contact details. That let the attacker reset the victim's password and take over the account.

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.

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.