Misconfiguration in Two Factor Authorisation
Enabling Google Apps as a login service on a Shopify store allowed signing in with Google to bypass two-factor authentication, and the two-factor setting was then disabled entirely. An attacker with the account password could access the admin panel without a two-factor code.
- Triaged in 6 days
- Fixed in 50 days
- Paid in 51 days
- Disclosed after 51 days
Hey
There seems to be a weird misconfiguration which leads to bypass of two factor authorisation
Scenario
-
Let's assume you have setup Two Factor Authorisation with Google Authenticator
-
You now activate
Google AppsfromLogin servicesat https://shop-1.myshopify.com/admin/settings/account -
Now your try to "Sign In with Google"
https://shop-1.myshopify.com/admin/auth/login?google_apps=1
What's weird is no two factor code is required and you directly land in Admin Panel
Issue
Issue here is Two Factor Authorisation is disabled as soon as you "Sign In with Google" and now you cannot even enable it because you can't see any Two Factor Authenticator Tab in Accounts
And now when you try to simple login with correct credentials you can access Admin Panel without Two Factor Code from Google Authenticator at https://shop-1.myshopify.com/admin/auth/login
Also there is no indication to via mail or notification that Two Factor Authorisation has been disabled when Two Factor Authorisation is disabled While it shouldn't be disabled in the first place
Context
Shopify's admin panel supports two factor authorisation (2FA), and the report describes a setup where 2FA is configured with Google Authenticator. Shopify also offers a Login services section in the account settings where a merchant can activate Google Apps sign-in, so that staff can authenticate to the admin with their Google account instead of a Shopify password.
The report is about the interaction between those two features: what happens to the Google Authenticator requirement when Google Apps sign-in is switched on.
Setup
- A Shopify store admin, referred to in the report as
shop-1.myshopify.com. - Two Factor Authorisation already enabled with Google Authenticator.
- Access to the account settings page at
https://shop-1.myshopify.com/admin/settings/account, whereGoogle Appscan be activated underLogin services.
No tools or versions are mentioned in the report.
Finding it
The researcher noticed that after activating Google Apps sign-in, logging in through the Google Apps path did not ask for a two factor code at all. Instead of the expected second factor prompt, the login went straight through to the admin panel. That looked like a misconfiguration in how the two login methods interact, and it led to a second observation: once Google Apps sign-in had been used, the Two Factor Authorisation setting itself appeared to be turned off, and the Two Factor Authenticator tab was no longer visible in the account settings, so it could not be re-enabled from there.
Exploitation
Step 1: Start from an account with 2FA enabled
The precondition is a store where Two Factor Authorisation has been set up with Google Authenticator. In that state, a normal password login is expected to require the authenticator code.
Step 2: Activate Google Apps under Login services
From the account settings at https://shop-1.myshopify.com/admin/settings/account, the researcher activated Google Apps in the Login services section.
Step 3: Sign in with Google
The login was then performed through the Google Apps entry point:
https://shop-1.myshopify.com/admin/auth/login?google_apps=1
The login URL includes a google_apps=1 query parameter. According to the report, no two factor code was requested and the session landed directly in the admin panel.
Step 4: Observe that 2FA has been disabled
After the Google sign-in, Two Factor Authorisation was disabled on the account. The Two Factor Authenticator tab was no longer present in the account settings, so the researcher could not re-enable it from there.
Step 5: Log in with the password alone
With 2FA in that state, a plain login with the correct credentials was enough:
https://shop-1.myshopify.com/admin/auth/login
The admin panel was reachable without any code from Google Authenticator. The report also notes that no email or notification was sent to indicate that Two Factor Authorisation had been disabled.
Root cause
The report frames this as a misconfiguration rather than describing the underlying code. What it establishes is that the Google Apps login path does not enforce the second factor, and that using it turns Two Factor Authorisation off for the account, removing the authenticator tab along with it. Why the Google Apps flow skips the 2FA check, and why it writes a state change to the 2FA setting, is not explained in the report; , and the change to the setting happened without any notification to the account owner.
Impact
Under the conditions in the report, an account that had 2FA enabled ends up protected by the password alone after Google Apps sign-in is activated and used. A plain login with the correct credentials reached the admin panel at https://shop-1.myshopify.com/admin/auth/login without a Google Authenticator code. The account owner has no signal, by email or notification, that the second factor has been switched off, and cannot turn it back on because the Two Factor Authenticator tab is gone. The report does not describe any further actions an attacker could take once inside the admin panel.
Fix
The report does not state what was changed. From the behaviour described, the Google Apps login path should enforce the existing second factor, and signing in that way should not alter the account's Two Factor Authorisation setting or hide the authenticator tab. Any change to the 2FA state should also notify the account owner.
Variants to test
- Enable each alternative login service offered in the account settings, then sign in through it on an account with 2FA enabled. A positive result is landing in the admin panel without a second factor prompt.
- After using an alternative login, check the account settings for the Two Factor Authenticator tab and try a password-only login. A positive result is the tab missing and the password login succeeding without a code.
- Repeat the sequence in the reverse order, disabling and re-enabling the login service, to see whether the 2FA state is restored or stays off. A positive result is 2FA remaining disabled after the service is turned off.
- Watch for notification email or in-app messages when the 2FA state changes. A positive result is a silent change, as in this report.
Hunting notes
This kind of bug hides where a product has more than one authentication path into the same privileged area: password login, SSO, social login, and service-specific sign-in such as Google Apps. The signal during recon is a settings page that lists several Login services alongside a separate security section for 2FA; if enabling one service changes the state of the other, the two features share state they should not. The report describes the sequence: 2FA enabled, Google Apps activated, sign-in without a code, 2FA found disabled, the authenticator tab gone, and a password-only login reaching the admin panel. That end-to-end sequence, plus the absence of any notification, is what makes the missing second factor concrete rather than theoretical.
What happened, in plain words
A Shopify store owner can protect their admin panel with two factor authorisation (2FA). That means logging in needs two things: the password, and a short code from Google Authenticator. Shopify also lets a store turn on a second way to log in, called Google Apps.
This report is about what happens when those two features meet. The researcher found that after switching on Google Apps sign-in, logging in through Google skipped the authenticator code entirely and went straight into the admin panel. Worse, using that login switched 2FA off for the account, and the tab where you would turn it back on disappeared. From then on, the password alone was enough to get in, and no email or notification said the second lock had been removed.
To follow the rest, a few everyday ideas help:
- Admin panel: the private control room of an online shop, where products, orders and settings are managed. Only the owner and trusted staff should reach it.
- Two factor authorisation (2FA): a second lock on the door. Even someone with the key (the password) still needs the code from the phone app.
- Google Authenticator: a phone app that generates short codes used as a second factor. The code is the second factor.
- Login services: a settings section where a store can add other ways to sign in, such as a Google account.
- Misconfiguration: a setting or combination of settings that leaves a door unlocked, rather than a flaw in the lock itself.
Context
Shopify's admin panel supports 2FA, and in this report 2FA is set up with Google Authenticator. Shopify also offers a Login services section in the account settings, where a merchant can activate Google Apps sign-in so that staff can log in to the admin with their Google account instead of a Shopify password.
The report is about how those two features interact: what happens to the Google Authenticator requirement when Google Apps sign-in is switched on.
Setup
The researcher started from these conditions:
- A Shopify store admin, called
shop-1.myshopify.comin the report. - Two Factor Authorisation already enabled with Google Authenticator.
- Access to the account settings page at
https://shop-1.myshopify.com/admin/settings/account, whereGoogle Appscan be activated underLogin services.
No tools or versions are mentioned in the report.
Finding it
The researcher noticed that after activating Google Apps sign-in, logging in through the Google Apps path did not ask for a two factor code at all. Instead of the expected second factor prompt, the login went straight through to the admin panel. That looked like a misconfiguration in how the two login methods interact, and it led to a second observation: once Google Apps sign-in had been used, the Two Factor Authorisation setting itself appeared to be turned off, and the Two Factor Authenticator tab was no longer visible in the account settings, so it could not be re-enabled from there.
Exploitation
Step 1: Start from an account with 2FA enabled
The precondition is a store where Two Factor Authorisation has been set up with Google Authenticator. In that state, a normal password login is expected to require the authenticator code. This step matters because it sets the baseline: without 2FA on, there would be nothing to bypass.
Step 2: Activate Google Apps under Login services
From the account settings at https://shop-1.myshopify.com/admin/settings/account, the researcher activated Google Apps in the Login services section. This is the change that brings the two login methods into contact with each other, which is where the problem appears.
Step 3: Sign in with Google
The login was then performed through the Google Apps entry point:
https://shop-1.myshopify.com/admin/auth/login?google_apps=1
Line by line:
https://is the secure web protocol, the padlock kind of connection.shop-1.myshopify.comis the address of the store's admin site./admin/auth/loginis the login page of the admin area.?google_apps=1is a small instruction added to the address. Everything after the?is a parameter, a named value passed to the site. Here the name isgoogle_appsand the value is1.
According to the report, no two factor code was requested and the session landed directly in the admin panel. A session is the period during which the site remembers that you are logged in, usually by storing a small piece of data in your browser.
Step 4: Observe that 2FA has been disabled
After the Google sign-in, Two Factor Authorisation was disabled on the account. The Two Factor Authenticator tab was no longer present in the account settings, so the researcher could not re-enable it from there. This is the part that turns a skipped check into a lasting problem: the second lock was switched off.
Step 5: Log in with the password alone
With 2FA in that state, a plain login with the correct credentials was enough:
https://shop-1.myshopify.com/admin/auth/login
Line by line:
https://shop-1.myshopify.comis the same store admin site./admin/auth/loginis the ordinary login page, with nogoogle_appsparameter this time, so the normal password flow is used.
The admin panel was reachable without any code from Google Authenticator. The report also notes that no email or notification was sent to indicate that Two Factor Authorisation had been disabled.
Root cause
The report frames this as a misconfiguration rather than describing the underlying code. What it establishes is that the Google Apps login path does not enforce the second factor, and that using it turns Two Factor Authorisation off for the account, removing the authenticator tab along with it. Why the Google Apps flow skips the 2FA check, and why it writes a state change to the 2FA setting, is not explained in the report; , and the change to the setting happened without any notification to the account owner.
Impact
Under the conditions in the report, an account that had 2FA enabled ends up protected by the password alone after Google Apps sign-in is activated and used. A plain login with the correct credentials reached the admin panel at https://shop-1.myshopify.com/admin/auth/login without a Google Authenticator code. The account owner has no signal, by email or notification, that the second factor has been switched off, and cannot turn it back on because the Two Factor Authenticator tab is gone. The report does not describe any further actions an attacker could take once inside the admin panel.
Fix
The report does not state what was changed. From the behaviour described, the Google Apps login path should enforce the existing second factor, and signing in that way should not alter the account's Two Factor Authorisation setting or hide the authenticator tab. Any change to the 2FA state should also notify the account owner.
Variants to test
- Enable each alternative login service offered in the account settings, then sign in through it on an account with 2FA enabled. A positive result is landing in the admin panel without a second factor prompt.
- After using an alternative login, check the account settings for the Two Factor Authenticator tab and try a password-only login. A positive result is the tab missing and the password login succeeding without a code.
- Repeat the sequence in the reverse order, disabling and re-enabling the login service, to see whether the 2FA state is restored or stays off. A positive result is 2FA remaining disabled after the service is turned off.
- Watch for notification email or in-app messages when the 2FA state changes. A positive result is a silent change, as in this report.
Hunting notes
This kind of bug hides where a product has more than one authentication path into the same privileged area: password login, SSO, social login, and service-specific sign-in such as Google Apps. Authentication here simply means proving who you are. SSO, or single sign-on, means logging in once with one account and being let into another service. The signal during recon, the early look around a target, is a settings page that lists several Login services alongside a separate security section for 2FA; if enabling one service changes the state of the other, the two features share state they should not. The report describes the sequence: 2FA enabled, Google Apps activated, sign-in without a code, 2FA found disabled, the authenticator tab gone, and a password-only login reaching the admin panel. That end-to-end sequence, plus the absence of any notification, is what makes the missing second factor concrete rather than theoretical.
Glossary
- 2FA (two factor authorisation): logging in with two separate proofs, usually a password plus a code from a phone app.
- Admin panel: the private area of a shop where its settings, products and orders are managed.
- Authentication: the process of proving who you are when logging in.
- Cookie: a small piece of data a site stores in your browser, often used to remember that you are logged in.
- Credentials: the details used to log in, such as a username and password.
- Google Apps: in this report, a login service that lets staff sign in to the Shopify admin with their Google account.
- Login services: a settings section where extra ways to sign in are switched on or off.
- Misconfiguration: a setting or combination of settings that leaves a system less protected than intended.
- Parameter: a named value added to a web address after a
?, used to pass instructions to the site. - Recon: the early stage of looking around a target to spot interesting features and settings.
- Session: the period during which a site remembers that you are logged in.
- SSO (single sign-on): logging in once with one account and being let into another service without a separate password.
- Two Factor Authenticator tab: the settings page where the authenticator requirement is managed.