Ability to connect an external login service for unverified emails/accounts at accounts.shopify.com
The external login service could be connected to an account even when the email address was not verified, contrary to the stated requirement. An attacker could create an account with a victim's email and link their own Google account, potentially gaining access to the victim's shops if the victim later verifies the email.
Originally disclosed on HackerOne
- Disclosed after 18 months
Hi,
Description
I have found that it is possible to add external login service even if the email address is not verified. This allows someone to create an account with an email he does not own and create some kind of backdoor accounts that would allow him to get access to shops and more.
In the external login services of the profil, it is said that You do not have an external login service connected to your Shopify ID. Please verify your email address to connect a login service.. So one should not be able to connect and external login account if the email was not verified.

Steps de reproduce
-
Create a new account at
partners.myshopify.comwith the victim email ([email protected]) -
The account is created, now go to your profile at https://accounts.shopify.com/accounts/{account_id}`
-
In the external login service section or anywhere else in the page, with your browser developper console, add the following HTML snippet
<a href="/accounts/{victim_account_id}/external-login/1" data-method="post">Connect to Google</a>and replace the {victim_account_id} with the victim's account id from the url. -
Now click on the link you injected in the page and it will bring you too the google account authentication page
-
Connect to your google account or create a new one. You will be redirected to the victims account uppon success.
-
Notice that the external login account was added even if the email was not verified.
-
Now, on another browser, go to https://partners.shopify.com/organizations, enter the victims email address and notice that Log in with Google button is shown. You should be able to connect that the "backdoor" account.
Impact
Ability to create backdoors login accounts via external login services for an account that was not verified could lead to important information disclosures. I think the chances of this happening are low since a victim would be carreful after receiving the shopify confirmation email but in somes cases, this could lead to important leak of informations.
If you need extra details, just le me know. I will make a POC video soon.
Thank you.
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 external login linking endpoint did not check whether the account's email address had been verified before allowing the link to be created.
Impact
An attacker could create backdoor login accounts via external login services for an unverified account, potentially leading to information disclosure, though the chances are low because a victim would be careful after receiving the confirmation email.
What the attacker needed
Attacker can create an account with victim's email; attacker has a Google account; victim later verifies the email
How it was found
- Create a new account at partners.myshopify.com using the victim's email address.
- Go to the profile page at accounts.shopify.com/accounts/{account_id}.
- Using the browser developer console, inject an HTML link that posts to the external-login endpoint with the victim's account id.
- Click the injected link, which redirects to the Google authentication page.
- Authenticate with a Google account and get redirected back to the victim's account.
- Observe that the external login was added despite the email not being verified, and the 'Log in with Google' button appears on the partners login page.
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, the site usually asks you to prove you own your email address before letting you link a Google login. Here, that check was missing, so someone could create an account using your email and attach their own Google login. If you later confirmed that email, the attacker's Google login would still be attached and could let them in.
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.