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.
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.
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
- Find the endpoint that sends invitations to join an account.
- Change the parentid parameter from the attacker's identifier to a victim's identifier.
- Submit the request so the invitation is sent to the attacker's email from the victim's account.
- Open the invitation email and complete account setup.
- 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.