Ability to verify any email address you don't own - accounts.shopify.com
The email-change confirmation token was exposed in the resend link shown in the UI, so a user could take that token and visit the confirmation URL directly. This let an attacker verify an email address they did not own and change their account email to it.
Originally disclosed on HackerOne
- Triaged in 6 days
- Fixed in 15 days
- Paid in 18 days
- Disclosed after 2.5 years
Summary by the program
The researcher discovered that a link in the UI at accounts.shopify.com would contain a confirmation token allowing a user to confirm an email address that might not belong to them.
The report
Summary:
During testing it's been found that in accounts.shopify.com it's possible to change your email address to any email address that you don't own and confirm that email due to the confirmation token being leaked.
Steps to reproduce:
- Login to
https://accounts.shopify.com/account - Click Change Next to email
- Enter any new email address
- You'll see a message saying:
Verification email sent
We sent you an email to verify that you own "[email protected]". We'll change your email once you verify that you own it.
with a link to resend the verification email or cancel the change.
5.- Copy the resend link, it will look like this: https://accounts.shopify.com/email-change/<Confirmation-TOKEN>/resend
6.- Go to https://accounts.shopify.com/email-change/<Confirmation-TOKEN>/ and the email will be verified even though you don't own it.
Thanks!
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the confirmation token was embedded in a UI link (the resend link) rather than kept server-side, so the token needed to confirm the change was disclosed to the user.
Impact
An attacker could verify and attach an email address they do not control to their account.
What the attacker needed
A Shopify account; ability to change account email
How it was found
- Log in to the account page.
- Click Change next to the email field.
- Enter any new email address you do not own.
- Copy the resend verification link shown in the UI.
- Visit the email-change confirmation URL directly to verify the address.
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 report has not been written yet. The Original tab links to the source.
When you change your email on a website, the site usually sends a link to the new address to prove you control it. Here the same secret code that proves ownership was also placed in a link shown on the page itself, so anyone could copy it and skip the proof step. That means you could claim an email address that belongs to someone else.
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.