Skip to content
Subdomain takeover Disclosed report Beginner

Bug Report #23JAN136 (subdomain takeover via shopify )

A subdomain's DNS record pointed to an unclaimed Shopify instance, allowing an attacker to claim it. The researcher created a Shopify account, added the custom domain, and set up a password-protected page to demonstrate control.

kuriyama Follow

Originally disclosed on HackerOne

  • Triaged in 3 hours
  • Fixed in 3 days
  • Disclosed after 2.6 years

Summary by the program

A subdomain takeover vulnerability was identified on the domain █████████, where the subdomain pointed to an unclaimed Shopify instance. The researcher discovered that the subdomain was vulnerable to takeover because the DNS record pointed to a Shopify service that was no longer being used by the organization. The vulnerability was successfully exploited by the researcher, who created a Shopify account, added the custom domain █████████, and demonstrated control over the subdomain by setting up a password-protected page. This type of vulnerability occurred when DNS records continued to point to external services (in this case, Shopify) that were no longer actively managed by the organization, allowing attackers to claim the unused service and gain control over the subdomain. The subdomain takeover was confirmed through a working proof of concept where the researcher established control over the domain and set a password ("test") to demonstrate ownership.

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

The target was a subdomain of *.royalcanin.ca. The subdomain itself is redacted in the report, so the exact hostname is not public. The subdomain's DNS record pointed at a Shopify-hosted service, and that Shopify instance was no longer in use by the organisation. Shopify lets a merchant attach a custom domain to a store. When a DNS record still points at Shopify but no store claims the domain, anyone who can create a Shopify account can claim it. That is the classic subdomain takeover condition, and it is what happened here.

The program classified the issue as Privilege Escalation with high severity. The report is titled "Bug Report #23JAN136 (subdomain takeover via shopify)" and was disclosed on 2 September 2025.

Setup

The researcher needed only a Shopify account. No credentials for the target were used, and no access to the organisation's infrastructure was required. The precondition was the dangling DNS record: the subdomain resolved to Shopify, but no Shopify store had that custom domain attached. The report does not name the DNS record type or the Shopify endpoint the record pointed to.

Finding it

The researcher noticed that the subdomain pointed to a Shopify service that the organisation no longer used. A DNS record that still delegates a hostname to a third-party platform, while the platform side no longer has a matching claim, is a takeover candidate: the platform will hand the hostname to whoever claims it first. The report does not describe the recon steps that surfaced the record, so the exact signal (for example a Shopify error page or an unclaimed-domain response) is not stated.

Exploitation

Step 1: Create a Shopify account

The researcher registered a Shopify account. This is the only account needed, because Shopify's custom-domain feature is available to any merchant.

Step 2: Add the custom domain

Inside the Shopify account, the researcher added the vulnerable subdomain as a custom domain. The researcher added the vulnerable subdomain as a custom domain in the Shopify account. The report does not include the Shopify admin screens or the exact verification response.

Step 3: Prove control with a password-protected page

The researcher set up a password-protected page on the store and set the password to test. That page, served from the organisation's subdomain, demonstrated that the researcher controlled what the hostname returned. The report does not include the page markup or the HTTP response.

The takeover was confirmed by this working proof of concept: control over the domain plus a password set to test to show ownership.

Root cause

The DNS record for the subdomain continued to point at an external service, Shopify, that the organisation no longer actively managed. On the Shopify side, no store held a claim to that custom domain. On the Shopify side, no store held a claim to that custom domain, so a new account could attach the hostname. The DNS record continued to point at a Shopify service the organisation no longer used.

Impact

The researcher demonstrated control over the subdomain by setting up a password-protected page on it. The impact depends on the dangling record remaining in place and on the hostname being reachable by victims.

Fix

The general fix for this class is to remove or repoint the DNS record so the subdomain no longer resolves to the unused Shopify instance, and to add a process that deletes DNS records when a third-party service is decommissioned. Whether the organisation did either is not stated.

Variants to test

  1. Other subdomains pointing at Shopify: check whether each resolves to a Shopify store or an unclaimed-domain response, then try attaching the hostname to a new store. A positive result is the store serving content on the subdomain.
  2. Subdomains pointing at other SaaS platforms with custom-domain features: the same claim process applies. A positive result is the platform accepting the hostname and serving your content.
  3. Records left behind after a migration or rebrand: look for hostnames that still resolve to a platform the organisation has moved away from. A positive result is an unclaimed service responding on the hostname.
  4. Wildcard or CNAME chains: follow the chain to its final target and check whether that target is claimable. A positive result is control of the final host that the subdomain resolves to.

Hunting notes

This kind of bug hides in DNS records that outlive the service they point at: marketing sites, storefronts and campaign pages built on hosted platforms are common sources. During recon, the signal is a subdomain that resolves to a third-party platform but returns an unclaimed-domain or platform error page rather than the organisation's content. The researcher claimed the hostname and set up a password-protected page on it as a working proof of concept.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

What happened, in plain words

A company owns a domain, royalcanin.ca, and under it many subdomains. A subdomain is simply a name that sits in front of the main domain, like shop.royalcanin.ca or blog.royalcanin.ca. Each subdomain is a separate address that can point to a different server.

One of those subdomains was set up to point at Shopify, a hosted platform where anyone can open an online store. The company used it for a while and then stopped. But the instruction that tells the internet where the subdomain lives, called a DNS record, was never removed. It still said "this name belongs to Shopify".

Shopify has a feature that lets a store owner attach their own domain name to a store. When someone adds a domain, Shopify attaches it to the store. Here the DNS record did point at Shopify, but no store had claimed that particular name. So the researcher opened an ordinary Shopify account and added the forgotten subdomain as a custom domain.

To prove it, the researcher put a password-protected page on the store and set the password to test. The researcher set up a password-protected page on the subdomain to demonstrate control. That is a subdomain takeover: control of a name that belongs to someone else, obtained without breaking into anything.

The program rated it high severity and classified it as Privilege Escalation. The report is titled "Bug Report #23JAN136 (subdomain takeover via shopify)" and was disclosed on 2 September 2025.

Context

The target was a subdomain of *.royalcanin.ca. The * is a wildcard meaning "any subdomain of this domain". The exact hostname is redacted in the report, so it is not public.

The subdomain's DNS record pointed at a Shopify-hosted service, and that Shopify instance was no longer in use by the organisation. Shopify lets a merchant attach a custom domain to a store. When a DNS record still points at Shopify but no store claims the domain, anyone who can create a Shopify account can claim it. That is the classic subdomain takeover condition, and it is what happened here.

The program classified the issue as Privilege Escalation with high severity.

Setup

The researcher needed only a Shopify account. No credentials for the target were used, and no access to the organisation's infrastructure was required. The precondition was the dangling DNS record: the subdomain resolved to Shopify, but no Shopify store had that custom domain attached. The report does not name the DNS record type or the Shopify endpoint the record pointed to.

Finding it

The researcher noticed that the subdomain pointed to a Shopify service that the organisation no longer used. A DNS record that still delegates a hostname to a third-party platform, while the platform side no longer has a matching claim, is a takeover candidate: the platform will hand the hostname to whoever claims it first. The report does not describe the recon steps that surfaced the record, so the exact signal (for example a Shopify error page or an unclaimed-domain response) is not stated.

Exploitation

Step 1: Create a Shopify account

The researcher registered a Shopify account. This is the only account needed, because Shopify's custom-domain feature is available to any merchant.

Step 2: Add the custom domain

Inside the Shopify account, the researcher added the vulnerable subdomain as a custom domain. The researcher added the vulnerable subdomain as a custom domain in the Shopify account. The report does not include the Shopify admin screens or the exact verification response.

Step 3: Prove control with a password-protected page

The researcher set up a password-protected page on the store and set the password to test. That page, served from the organisation's subdomain, demonstrated that the researcher controlled what the hostname returned. The report does not include the page markup or the HTTP response.

The takeover was confirmed by this working proof of concept: control over the domain plus a password set to test to show ownership.

Root cause

The DNS record for the subdomain continued to point at an external service, Shopify, that the organisation no longer actively managed. On the Shopify side, no store held a claim to that custom domain. On the Shopify side, no store held a claim to that custom domain, so a new account could attach the hostname. The DNS record continued to point at a Shopify service the organisation no longer used.

Impact

The researcher demonstrated control over the subdomain by setting up a password-protected page on it. The impact depends on the dangling record remaining in place and on the hostname being reachable by victims.

Fix

The general fix for this class is to remove or repoint the DNS record so the subdomain no longer resolves to the unused Shopify instance, and to add a process that deletes DNS records when a third-party service is decommissioned. Whether the organisation did either is not stated.

Variants to test

  1. Other subdomains pointing at Shopify: check whether each resolves to a Shopify store or an unclaimed-domain response, then try attaching the hostname to a new store. A positive result is the store serving content on the subdomain.
  2. Subdomains pointing at other SaaS platforms with custom-domain features: the same claim process applies. A positive result is the platform accepting the hostname and serving your content.
  3. Records left behind after a migration or rebrand: look for hostnames that still resolve to a platform the organisation has moved away from. A positive result is an unclaimed service responding on the hostname.
  4. Wildcard or CNAME chains: follow the chain to its final target and check whether that target is claimable. A positive result is control of the final host that the subdomain resolves to.

Hunting notes

This kind of bug hides in DNS records that outlive the service they point at: marketing sites, storefronts and campaign pages built on hosted platforms are common sources. During recon, the signal is a subdomain that resolves to a third-party platform but returns an unclaimed-domain or platform error page rather than the organisation's content. The researcher claimed the hostname and set up a password-protected page on it as a working proof of concept.

Glossary

  • Subdomain: a name placed in front of a main domain, such as shop.example.com, that can point to its own server.
  • DNS: the internet's address book, translating names people type into the locations of the servers that answer for them.
  • DNS record: a single entry in that address book, saying where a particular name should go.
  • Dangling DNS record: a record that still points at a service nobody uses any more.
  • Subdomain takeover: claiming a subdomain that still points at a third-party service, by registering with that service and attaching the name.
  • Shopify: a hosted platform for building and running online stores.
  • Custom domain: a domain name a customer attaches to a hosted service so the service answers on that name.
  • SaaS: software you use over the internet without running it yourself.
  • CNAME: a DNS record that says "this name is an alias for that other name", so the lookup continues at the other name.
  • Wildcard: a DNS entry or scope covering every possible subdomain of a domain, written with *.
  • Privilege Escalation: gaining a level of control or access you were not meant to have.
  • Proof of concept: a working demonstration that a weakness is real, rather than a claim that it might be.
  • Phishing: tricking people into entering details on a page that pretends to be a trusted site.
  • Recon: the information-gathering phase of security testing, before any exploitation.
  • Redacted: removed or blacked out so the detail is not public.

More by kuriyama

View all

3 more disclosed reports, best first.

More from Mars

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

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.