XSS while logging using Google
The login identity endpoint accepted a google_apps_uri parameter whose value was used as a JavaScript URI, so a crafted link could run script in the victim's browser. An attacker could use this to steal data from anyone who tried to log in with Google through the link.
Originally disclosed on HackerOne
- Triaged in 5 hours
- Fixed in 10 hours
- Paid in 9 hours
- Disclosed after 31 hours
Hello Security Team, I have found xss when we enable login services as, Allow staff to use external services to log in to Shopify and we enable Google Apps for login we get the " Log in with Google " option enable

Steps to Reproduce:
Step1: Go to https://YOURSHOP.myshopify.com/admin/settings/account Step2: Login Services: Staff can use Google Apps to log in -->> Enable Google Apps for login Step3: Now staff can log in using Google Step4: Log out from your account Step5: Now go to following Url and try to log in using Google
NOTE: I have made changes in the URL at google_apps_uri
POC URL 1:
POC URL 2:
XSS will be triggered!!

I have attached POC Video, Please take a look!!
Regards, @ashketchum
Impact
The attacker can steal data from whoever who try to login using Google!!
Attachments
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 google_apps_uri request parameter was placed into a link or redirect without validating that it used a safe scheme such as https, allowing a javascript: URI.
Impact
An attacker could steal data from anyone who tries to log in using Google through the crafted link.
What the attacker needed
Google Apps login enabled for staff; victim clicks a crafted link
How it was found
- Open the shop admin account settings page.
- Enable Google Apps as a staff login service.
- Log out of the account.
- Visit the crafted login identity URL with a modified google_apps_uri value.
- Choose to log in with Google and the script runs.
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.
A website sometimes takes a value from the address bar and uses it directly. Here the login page put a link address into a place where the browser treats it as code, so a link could make the page run the attacker's script. That script runs as the site, so it can read things the logged-in user can see.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.