Skip to content
IDOR Write-up Beginner

How IDOR gave me ability to takeover anyone’s account with one

An invitation endpoint accepted a user-supplied parent identifier, so an attacker could change it to a victim's identifier and have the invitation sent from the victim's account to the attacker's own email. By accepting that invitation, the attacker gained partner-level access to the victim's account, including order and personal details.

Ali Razzaq Follow

Published on alirazzaq.medium.com

I found an endpoint on my routine searching where I can send invite to others and they can join, It was ecommerce platform where wholesalers can buy products in bulk.

Ali Razzaq, on alirazzaq.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 parent identifier when creating invitations instead of deriving the sender from the authenticated session.

Impact

An attacker could take over any user's account as a partner and access their order details and personal information such as address and phone number.

What the attacker needed

An account on the platform; knowledge of a victim's identifier; attacker controls the email address used

How it was found

  1. Find the endpoint that sends invitations to join an account.
  2. Change the parentid parameter from the attacker's identifier to a victim's identifier.
  3. Submit the request so the invitation is sent to the attacker's email from the victim's account.
  4. Open the invitation email and complete account setup.
  5. Log in to the victim's account as a partner and view order and personal details.

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) happens when a website lets you change an identifier in a request to access someone else's data. Here, the invitation form included a hidden field for the account that should send the invite, and the server trusted whatever value the user supplied. The attacker swapped in a victim's identifier, received an invite that appeared to come from the victim, and used it to join the victim's account as a partner.

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.