Hacking E-Commerce For $$$: IDOR and More
The password reset tokens did not expire after an email change, allowing an attacker with access to the old email to reset the victim's password. Also, an IDOR in the purchase order creation endpoint allowed an attacker to cancel other users' purchases and potentially block their accounts.
medium.com
Published on medium.com
Hello Friend, this is mrhashimamin. It’s been a while since we last talked.
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
Impact
An attacker with access to the victim's old email could reset the victim's password and take over the account; also, an attacker could cancel other users' purchases and potentially get their accounts blocked.
What the attacker needed
Attacker has access to victim's old email; victim changes email address; attacker obtains a valid transactionId
How it was found
- Victim creates an account and receives a reset/create password link in their registered email.
- Victim changes their email to a new one because they know the attacker has access to the old email.
- Attacker, who already has access to the latest password reset link sent to the old email, uses this link to reset the password.
- Attacker successfully changes the victim’s password.
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.
A password reset token is a special link sent to your email to prove you own the account. Here, the token kept working even after the email was changed, so someone who still had access to the old email could use it to take over the account. Separately, a purchase order ID could be guessed or found, letting an attacker mess with other people's orders.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.