Skip to content
Account takeover Disclosed report Intermediate

Ability to link a Google account to another staff account/store owner that isn't linked yet

The admin GraphQL endpoint allowed a staff member to change another staff member's email address. If the store used Google Apps login and the target had never linked a Google account, an attacker could set the victim's email to their own Google address and then log in as that user.

imgnotfound Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 38 days
  • Paid in 6 days
  • Disclosed after 38 days

The https://pos-channel.shopifycloud.com/graphql-proxy/admin endpoint allows us to update a staff email address that is having a Shopify ID.

Taking that into consideration, if a store is setup to use Google Apps as login service and if a staff/store owner hasn't yet linked his account to a Google one (meaning he never logged in using Google), it is possible to update their email to our own Google email address resulting in us being able to log into their account. By doing so, our Google account ends up linked to the staff member/store owner.

Steps to reproduce

  1. As a staff member with Point Of Sale access, open up Point of Sale > Staff page and select the staff you want to link your Google account with.
  2. Open up your browser network inspection tab and save its profile. Copy the CURL request that is being made to https://pos-channel.shopifycloud.com/graphql-proxy/admin StaffMemberUpdate operation.
  3. From the copied CURL request, update the email field from the payload to your own email of the configured Google Apps domain.
  4. Logout from the store and log back in using the Google Apps email you just set.

Demo

Impact

Recently, maybe when you guys fixed 872380, 867513 or some other reports, you also fixed updating the email address of a store owner using the StaffMemberUpdate operation of https://pos-channel.shopifycloud.com/graphql-proxy/admin endpoint. However, the shop owner himself is still able to update his email address using that endpoint. Thus, by leveraging a XSS targeting the shop owner, we would technically be able to link it to our Google account, giving us access to shop owner features as described on https://help.shopify.com/en/manual/your-account

Shop_owner_features.png
Shop_owner_features.png From the original on HackerOne

Besides that, without any XSS, that can exploited to link our Google account to any other staff account that isn't yet linked.

The original report as published on HackerOne, by imgnotfound. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 StaffMemberUpdate operation did not check that the caller was allowed to change another user's email address, and the email was used to bind a Google login to the account.

Impact

An attacker with staff access could take over other staff accounts, and with an XSS against the shop owner could take over the owner account, though only when the store uses Google Apps login and the target has not yet linked a Google account.

What the attacker needed

Staff account with POS access; store uses Google Apps login; target has not linked a Google account

How it was found

  1. As a staff member with Point Of Sale access, open the Staff page and select the target staff member.
  2. Capture the StaffMemberUpdate request sent to the admin GraphQL endpoint.
  3. Change the email field in the request to your own Google Apps email address.
  4. Log out and sign back in using that Google Apps email to reach the victim's account.

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.

Many shops let staff sign in with a Google account instead of a password. The site trusted a staff member to change other staff members' email addresses. By changing the victim's email to the attacker's own Google address, the attacker's Google login became linked to the victim's account, so the attacker could sign in as them.

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.

More by imgnotfound

View all

15 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.