Shopify Subdomain Takeover
A subdomain still pointed via DNS to Shopify's store hosting, but its original store had been deleted, so the subdomain was free to claim. The researcher added it to a new Shopify store without any verification, taking control of the subdomain.
medium.com
Published on medium.com
Hey everyone, I’m a security enthusiast, and today I will share how I took over a Shopify subdomain while hunting on Bugcrowd in a VDP.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the DNS CNAME record was left pointing at Shopify after the original store was deleted, and Shopify allowed the subdomain to be claimed by a new store without ownership verification.
Impact
An attacker could take over the subdomain and serve content under the organisation's name, which could be used for phishing or reputational harm.
What the attacker needed
A free Shopify account; the original store is deleted; DNS CNAME still points to Shopify
The fix
Store owners should audit DNS records and remove unused subdomains, and Shopify should require verification before a domain is attached to a new store.
How it was found
- Enumerate subdomains and filter live ones to find a page showing a Shopify 404 title.
- Visit the subdomain and confirm the store is inactive or deleted.
- Check DNS records and see the subdomain points to Shopify's store host.
- Log into a Shopify account, create a new store, and try to connect the existing domain.
- Observe the subdomain is added without any verification.
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 write-up has not been written yet. The Original tab links to the source.
A subdomain is a name like store.example.com that belongs to a company. Its DNS record can point to another service, here Shopify, which hosts online shops. If the shop is deleted but the DNS record is left behind, anyone can register that name on Shopify and serve their own content under the company's name.
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.