myshopify.com domain takeover
Shopify's domain verification and path registration allowed a Shopify-owned domain to be registered despite verification failing, and myshopify.com was redirected to a specific store.
Originally disclosed on HackerOne
- Fixed in under an hour
- Paid in 1 hour
- Disclosed after 2 hours
Summary by the program
On February 27, 2018, Shopify support received notification that myshopify.com was being redirected to a specific Shopify store. We tracked the behaviour down to tests from @0xacb. Unknowingly, he identified a bug in our domain verification and path creations, which allowed for the registration of a Shopify owned domain name despite domain verification failing. We fixed our path registration process immediately and reached out to him to ensure he was compensated for his work.
The report
Hello Shopify Security Team,
I just received your email and I'm sorry for any inconvenience. Yes, it was me. Basically, I just tried to audit your website using some black box testing. Unfortunately, I didn't read about those guidelines, such as creating a store on https://partners.shopify.com/ and I created a normal trial account.
I'm glad you found a bug as a result of inspecting my activity logs. And you're right, I didn't notice the bug.
I tried many different things, such as:
- I tried to bypass the open redirect filter, without success: https://www.shopify.com/login?redirect=//acme
- I explored the domain DNS check tool to get RCE without success. I tried to use some command injection techniques, but I didn't receive any requests on my server (█████). I tried to use curl and netcat to perform external requests.
- I think I managed to add domains that were not verified by the DNS tool by submitting them using the last endpoint, but those domains remain "Not connected".
I have all my requests on Burp, but I didn't save the session. As far as I can remember, this was what I tested. I would like to know what was the bug. If possible, I would like to test it further.
Thank you, André
Impact
None
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 a logic flaw in the domain verification and path registration process that did not properly enforce ownership before allowing a domain to be registered.
What the attacker needed
A Shopify account (trial or partner)
The fix
Shopify fixed the path registration process immediately.
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 flaw in how Shopify checked domain ownership and created paths meant someone could claim a domain Shopify owned, even though the ownership check failed, and myshopify.com was redirected to a specific store.
What is Subdomain takeover?
A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.