Skip to content
IDOR Write-up Intermediate

How I hacked a Crypto Exchange (Bug Bounty Writeup)

The password reset endpoint accepted a user-supplied numeric id, allowing an attacker to reset another user's password. The two-factor authentication check could be bypassed by altering the server's response to indicate success, enabling full account takeover.

Muhammad Abdullah Follow

Published on steemit.com

Hi This is my first write-up on Steem and also a Info-Sec writeup after a long time. The story starts when My 6th semester ended and I got some time to hunt.

Muhammad Abdullah, on steemit.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 password reset endpoint did not verify that the requesting user owned the id being reset, and the two-factor verification relied on a client-side response that could be tampered with.

Impact

An attacker could take over any user's account, including administrative accounts, by resetting their password and bypassing two-factor authentication.

What the attacker needed

A free account; victim's user id (incrementing)

The fix

The password reset endpoint should verify that the authenticated user matches the id being reset, and two-factor verification should be enforced server-side without relying on client-modifiable responses.

How it was found

  1. Request a password reset and intercept the POST request to /api/reset_password.
  2. Change the id parameter to another user's id.
  3. Submit the request to reset the victim's password.
  4. Intercept the two-factor verification request and modify the response to indicate success.
  5. Log in to the victim's account using the new password and any two-factor 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.

An IDOR (Insecure Direct Object Reference) is when a website lets you access someone else's data just by changing a number or name in a request. Here, the password reset form used a simple user number, so changing it let you reset anyone's password. The two-factor check could also be fooled by editing the response, so the attacker could log in without the real code.

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 Muhammad Abdullah

View all

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