[Part II] Email Confirmation Bypass in myshop.myshopify.com that Leads to Full Privilege Escalation
A user could change their email address before confirming the original one, so an email address they did not own could end up verified. This could give access to a small subset of Shopify user accounts the attacker did not own.
- Fixed in under an hour
- Paid in 4 hours
- Disclosed after 47 days
Summary by the program
On February 14th, while verifying the fix for https://hackerone.com/reports/791775, @ngalog identified another bug allowing someone to verify an email address they did not own. The bug could have given access to a small subset of Shopify user accounts the user did not own.
Our team immediately disabled the impacted functionality and deployed a permanent fix two hours later.
The report
Summary
In #791775, I submitted a bug at Sunday 5pm Canada time, it was triaged two hours later, and I got the temp fix message at around 3am the next day in Canada time. Truly awesome, the next day I retested after the first fix, and found that I
- Cannot receive the email confirmation in the email used to sign up
- Cannot integrate across stores/partner even they share the same email address after confirming them
And the report was later resolved after I verified the fix.
For some reason, I decided to test again to see what's something new that I can find.
Then I found user can change their email prior to receiving the verification message on their original email. i.e. the same technique, I don't know what went wrong in my first retest, but Shopify security and engineering team again showed their professionalism, quickly resolving the second comments I left in ~3.5 hrs.
And when I thought this is the end of story, I later received a comment asking me to open a new report about the second retest, and here I am writing this report.
Thanks, Ron
Impact
.
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
Impact
The bug could have given access to a small subset of Shopify user accounts the user did not own; the impacted functionality was disabled and a permanent fix deployed two hours later.
What the attacker needed
A Shopify user account; ability to change email before confirming
The fix
The impacted functionality was disabled immediately and a permanent fix was deployed two hours later.
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 sign up, a site sends a confirmation link to your email to prove the address is yours. Here, a person could swap the email address on the account before that confirmation arrived, so the site ended up trusting an address the person did not control. That could let them reach other people's accounts.
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.