Shopify: the confirmation that landed in the wrong mailbox
When the email of a store account was changed, the confirmation for the new address went to the old one. Combined with single sign-on, that opened other stores.
New here? Try the first lesson without an accountCompany or project
Shopify
When
Reported: 9 Feb 2020 · disclosed: 1 Apr 2020
Reference
HackerOne #791775
Severity and scale
Critical · a small group of accounts
The story
In February 2020, the researcher who goes by “ngalog” reported a flaw in Shopify stores, the ones with addresses like mystore.myshopify.com, through HackerOne. When someone changed the email on their account, the message to confirm the new address did not go to that address: it went to the previous one, which the person already controlled. Shopify disabled the feature immediately and released a permanent fix three hours later.
The term, explained simply
Imagine you move house and the post office sends the letter confirming your new address… to your old home, where you still live. You could “confirm” any address that way, even one that is not yours. That is an email verification flaw. It became serious because of single sign-on (SSO): one identity that opens several doors. If the system believes an email is yours, it lets you into every store linked to that email.
The root cause
The link to confirm the new email was sent to the old email. The confirmation proved you controlled the previous address, not the one you were adding.
What could happen
A person could confirm someone else’s email as their own and, thanks to SSO between stores, get into other stores linked to that email with owner permissions. Shopify rated it critical; according to its summary, it affected a small group of accounts.
How it was fixed and how to prevent it
Shopify disabled the feature immediately and deployed a permanent fix three hours later. Later, the same researcher found another variant with a different cause, which was reported and rewarded separately. To prevent it: the confirmation link is always sent to the address being confirmed; the new email is not used for anything until it is confirmed; and SSO only joins accounts through verified emails.
Sources
Official documents and the researcher’s own write-up. We tell the story, the concept and the defense; there are no steps to repeat the attack.
