Shopify ID: merging accounts without proving the email was yours
When an old account was merged into Shopify ID, someone else’s email could be marked as verified. With that, some accounts could end up in another person’s hands.
New here? Try the first lesson without an accountCompany or project
Shopify
When
Reported: 7 May 2020 · disclosed: 2 Sep 2020
Reference
HackerOne #867513
Severity and scale
Critical · a small group of accounts
The story
Shopify ID is the single account a person uses to sign in to several Shopify stores and services. Older accounts could be merged into a Shopify ID account. In May 2020, a researcher reported a problem in exactly that step through HackerOne. According to the summary Shopify published, it affected a small group of accounts: those that did not have a Shopify ID yet.
The term, explained simply
When you join a club, they send a letter to your home to check that the address is yours. If the club accepted the address without sending the letter, anyone could sign up with your address. Online, that is email verification: the site sends a link or a code to the address, and only someone who can open that mailbox confirms it. An account merge is the step that joins two accounts into one. If it does not require that verification, an account can be joined to an email that is not yours.
The root cause
The merge flow let an email be marked as verified without checking that the person asking for the merge could read that mailbox. An identity decision was made without the proof that should back it.
What could happen
A person could take over other people’s accounts that did not have a Shopify ID yet and create identities with emails that did not belong to them. Shopify rated it critical.
How it was fixed and how to prevent it
Shopify deployed a fix immediately and removed the ability to verify an email before merging: since then, every merge requires the email verification flow. The general rule: an email counts as verified only when its owner opened the link or typed the code, and every path that creates or joins accounts goes through that same check.
Practice it in Hackory
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.
