Skip to content
IDOR Write-up Intermediate

How We “Forced” Our Client To Fix A Low Severity Security Bug And Still Got Appreciated!

An IDOR in an order details endpoint let an attacker retrieve a victim's non-enumerable account ID using only their email address. A hidden email-change endpoint accepted that account ID without confirmation, allowing the attacker to change the victim's email and then reset the password to take over the account.

nahoragg.medium.com

Published on nahoragg.medium.com

Cyber Security

Rohan Aggarwal, on nahoragg.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 order details endpoint did not verify that the requested email belonged to the logged-in user, and the email-change endpoint trusted the account ID without requiring confirmation or authentication.

Impact

An attacker who knows a victim's email address could take over their account without any interaction from the victim.

What the attacker needed

Knowledge of the victim's email address; no victim interaction required

The fix

The client was advised to only accept the logged-in user's own email address in the order details endpoint.

How it was found

  1. Retrieve the victim's account ID from the order details endpoint by supplying the victim's email address.
  2. Use that account ID on the email change endpoint to set the victim's email to an attacker-controlled address.
  3. Trigger the password reset for the victim's account so the reset link goes to the attacker's email.
  4. Use the reset link to set a new password and take over the account.

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 is when a website lets you access someone else's data just by changing an identifier in a request, without checking that you are allowed to see it. Here, the order page returned a hidden account ID for any email address you supplied. A separate page then let anyone change the email on that account using the ID, and because no confirmation was needed, the attacker could reset the 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.