Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain Takeover Via unclaimed Heroku Instance tim-exclusive.shopify.com

A subdomain of Shopify pointed via a CNAME to an unclaimed Heroku instance, allowing the reporter to register that instance and take control of the subdomain. The attacker could then serve content on the legitimate subdomain.

todayisnew Follow

Originally disclosed on HackerOne

Bounty$500 View original
  • Triaged in 3 hours
  • Fixed in 7 days
  • Paid in 5 days
  • Disclosed after 2.4 years

Good day, I truly hope it treats you great on your side of the screen :)

I have found that your website tim-exclusive.shopify.com is pointed via a cname to an unclaimed Heroku Instance

This was not registered on Heroku.

I was able to take over the domain:

See my POC (Pug of Concept) http://tim-exclusive.shopify.com/

POC Video: https://www.dropbox.com/s/0p6dqz3rwbx2wxn/Screenshot%202018-10-16%2011.30.52.png?dl=0

Options How to fix:

  1. Remove the Cname record on tim-exclusive.shopify.com to not point to Heroku

  2. Ask me to remove my registered tim-exclusive.shopify.com on Heroku, and you can re register yours :)

May you be well on your side of the screen :)

-Eric

Impact

control over domain :)

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

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The researcher found that the Shopify host tim-exclusive.shopify.com was pointed, through a CNAME record, at a Heroku instance that nobody had claimed. The Heroku instance was unclaimed and not registered on Heroku, so the researcher registered it and took over the domain.

The report states the finding plainly: the site is pointed via a CNAME to an unclaimed Heroku instance, and that instance was not registered on Heroku. The researcher then registered it and was able to take over the domain. The proof of concept is the live URL itself:

Text
http://tim-exclusive.shopify.com/

The report also links a proof of concept video:

Text
https://www.dropbox.com/s/0p6dqz3rwbx2wxn/Screenshot%202018-10-16%2011.30.52.png?dl=0

The researcher offered two remediation options:

  1. Remove the CNAME record on tim-exclusive.shopify.com so it no longer points to Heroku.
  2. Ask the researcher to remove the registered tim-exclusive.shopify.com on Heroku so Shopify can re-register its own instance.

The impact section is a single line: control over the domain. The report records a bounty of 500.00 USD, was disclosed on 2021-02-24, and is filed under the weakness "Improper Authentication - Generic". No severity or CVSS score is given.

Root cause

The likely root cause is a dangling DNS record: a CNAME on a Shopify-controlled hostname pointed at a Heroku instance that was unclaimed and not registered. DNS delegation and application ownership on the platform are separate things, and nothing reconciled them. Registering the unclaimed Heroku instance was enough to make the third-party service answer for the Shopify hostname.

Impact

As the report puts it, the outcome is control over the domain. In practice that means whoever claims the backing instance can serve content under the Shopify hostname. The report does not describe any further use of that control, such as cookie theft, phishing or interception of traffic, so the demonstrated impact stops at taking over the hostname.

How this kind of bug works

Subdomain takeover happens when a DNS record for a name in the target's zone points at a resource the target no longer controls, and the provider of that resource lets anyone claim the same identifier. Common patterns are a CNAME to a SaaS hostname whose app or bucket was deleted, or an A record to a cloud IP that has since been released and reassigned.

The mechanism is straightforward. The DNS record is authoritative: resolvers send clients to the third-party endpoint. The third-party endpoint decides what to serve based on the hostname or path it receives, and if the identifier is unclaimed, the first party to register it gets to answer. The target's own infrastructure is not involved at all, so none of its authentication or access controls apply.

Defences are about lifecycle hygiene: removing DNS records when a backing service is decommissioned, keeping an inventory that maps each external hostname to its owner, and preferring providers that reserve identifiers or require domain verification before serving content for a custom hostname.

How to test for it

  1. Enumerate hostnames for the target: certificate transparency logs, passive DNS, search engine results, and the target's own JavaScript and documentation.
  2. Resolve each hostname and record CNAME chains, A and AAAA records. Flag CNAMEs pointing at SaaS platforms, object storage, CDNs, and application hosting services.
  3. For each flagged record, request the hostname over HTTP and HTTPS and read the response body and headers. Provider error pages are the strongest signal: messages about an app not found, a bucket that does not exist, or a hostname that is not configured.
  4. Confirm the identifier is actually claimable by attempting to register it on the provider, using a benign placeholder. A positive result is that the provider accepts the registration and then serves your placeholder content when the target hostname is requested.
  5. Stop at proof. Serve a harmless marker page, do not collect traffic, and report immediately.

Common false positives: the provider still reserves the name even though it returns an error page; the DNS record points at a provider that serves a generic page for all unknown hostnames but does not let you claim the name; the hostname is already covered by a wildcard certificate and the error page comes from the target's own edge; or the record is stale but the provider requires domain verification, which blocks the claim.

How it is fixed

  • Remove the dangling DNS record, or repoint it at a resource the organisation controls.
  • Re-register the identifier on the third-party service if the service is still needed, then verify the hostname resolves to the intended content.
  • Where the provider supports it, enable domain verification so the provider refuses to serve content for a hostname the account has not proven it owns.
  • Add monitoring that resolves external-facing hostnames on a schedule and alerts on provider error signatures or unexpected CNAME targets.

Hunting notes

This bug class tends to hide in forgotten corners: marketing microsites, campaign pages, legacy help-centre and status hostnames, and anything created by a team that has since moved on. CNAMEs to application platforms, storage buckets, and CDN distributions are the classic candidates, and the same logic applies to records pointing at IP addresses that may have been released.

Useful recon signals are CNAME targets on shared hosting domains, provider-specific error strings in response bodies, and hostnames that resolve but return a provider default page. Certificate transparency can reveal hostnames that never appear in the main site.

To get a report accepted, show the claim end to end: the DNS record, the provider error before claiming, the successful registration, and the target hostname serving your placeholder afterwards. Keep the placeholder inert, avoid any interaction with real users, and offer to release the identifier so the organisation can reclaim it. That combination demonstrates control without causing harm, which is what a triager needs to see.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

A security researcher found that a Shopify web address, tim-exclusive.shopify.com, was set up to send visitors to a service called Heroku. Heroku is a platform where people can put a small web application online under a name they choose. The Shopify address was linked to a Heroku application name that nobody had registered. Because the name was unclaimed, the researcher registered it and was able to take over the domain.

The report describes the finding directly: the site is pointed via a CNAME to an unclaimed Heroku instance, and that instance was not registered on Heroku. The researcher then registered it and was able to take over the domain. The proof of concept is the live address itself:

Text
http://tim-exclusive.shopify.com/

A CNAME is a DNS record. DNS is the system that turns a name people type, like tim-exclusive.shopify.com, into the address of a server. A CNAME says "for this name, look at that other name instead". Here the other name was a Heroku application name. If the Heroku application does not exist, the CNAME points at nothing, and anyone who registers that application name on Heroku can make their own content appear at the Shopify address.

The report also links a proof of concept video:

Text
https://www.dropbox.com/s/0p6dqz3rwbx2wxn/Screenshot%202018-10-16%2011.30.52.png?dl=0

The researcher offered two ways to fix it:

  1. Remove the CNAME record on tim-exclusive.shopify.com so it no longer points to Heroku.
  2. Ask the researcher to remove the registered tim-exclusive.shopify.com on Heroku so Shopify can re-register its own instance.

The impact section is a single line: control over the domain. The report records a bounty of 500.00 USD, was disclosed on 2021-02-24, and is filed under the weakness "Improper Authentication - Generic". No severity or CVSS score is given.

Why it happened

The likely cause is a dangling DNS record: a CNAME on a Shopify-controlled hostname pointed at a Heroku instance that was unclaimed and not registered. DNS delegation and application ownership on the platform are separate things, and nothing reconciled them. Registering the unclaimed Heroku instance was enough to make the third-party service answer for the Shopify hostname.

Impact

As the report puts it, the outcome is control over the domain. In practice that means whoever claims the backing instance can serve content under the Shopify hostname. The report does not describe any further use of that control, such as cookie theft, phishing or interception of traffic, so the demonstrated impact stops at taking over the hostname.

In general, how this kind of bug works

Subdomain takeover happens when a DNS record for a name in the target's zone points at a resource the target no longer controls, and the provider of that resource lets anyone claim the same identifier. Common patterns are a CNAME to a SaaS hostname whose app or bucket was deleted, or an A record to a cloud IP that has since been released and reassigned.

The mechanism is straightforward. The DNS record is authoritative: resolvers send clients to the third-party endpoint. The third-party endpoint decides what to serve based on the hostname or path it receives, and if the identifier is unclaimed, the first party to register it gets to answer. The target's own infrastructure is not involved at all, so none of its authentication or access controls apply.

Defences are about lifecycle hygiene: removing DNS records when a backing service is decommissioned, keeping an inventory that maps each external hostname to its owner, and preferring providers that reserve identifiers or require domain verification before serving content for a custom hostname.

In general, how to test for it

  1. Enumerate hostnames for the target: certificate transparency logs, passive DNS, search engine results, and the target's own JavaScript and documentation.
  2. Resolve each hostname and record CNAME chains, A and AAAA records. Flag CNAMEs pointing at SaaS platforms, object storage, CDNs, and application hosting services.
  3. For each flagged record, request the hostname over HTTP and HTTPS and read the response body and headers. Provider error pages are the strongest signal: messages about an app not found, a bucket that does not exist, or a hostname that is not configured.
  4. Confirm the identifier is actually claimable by attempting to register it on the provider, using a benign placeholder. A positive result is that the provider accepts the registration and then serves your placeholder content when the target hostname is requested.
  5. Stop at proof. Serve a harmless marker page, do not collect traffic, and report immediately.

Common false positives: the provider still reserves the name even though it returns an error page; the DNS record points at a provider that serves a generic page for all unknown hostnames but does not let you claim the name; the hostname is already covered by a wildcard certificate and the error page comes from the target's own edge; or the record is stale but the provider requires domain verification, which blocks the claim.

In general, how it is fixed

  • Remove the dangling DNS record, or repoint it at a resource the organisation controls.
  • Re-register the identifier on the third-party service if the service is still needed, then verify the hostname resolves to the intended content.
  • Where the provider supports it, enable domain verification so the provider refuses to serve content for a hostname the account has not proven it owns.
  • Add monitoring that resolves external-facing hostnames on a schedule and alerts on provider error signatures or unexpected CNAME targets.

In general, hunting notes

This bug class tends to hide in forgotten corners: marketing microsites, campaign pages, legacy help-centre and status hostnames, and anything created by a team that has since moved on. CNAMEs to application platforms, storage buckets, and CDN distributions are the classic candidates, and the same logic applies to records pointing at IP addresses that may have been released.

Useful recon signals are CNAME targets on shared hosting domains, provider-specific error strings in response bodies, and hostnames that resolve but return a provider default page. Certificate transparency can reveal hostnames that never appear in the main site.

To get a report accepted, show the claim end to end: the DNS record, the provider error before claiming, the successful registration, and the target hostname serving your placeholder afterwards. Keep the placeholder inert, avoid any interaction with real users, and offer to release the identifier so the organisation can reclaim it. That combination demonstrates control without causing harm, which is what a triager needs to see.

Glossary

  • DNS: the system that maps human-readable names to server addresses.
  • CNAME: a DNS record that says one name should be looked up under another name.
  • Subdomain: a name that sits under a larger domain, such as tim-exclusive.shopify.com under shopify.com.
  • Subdomain takeover: taking control of a subdomain by claiming a third-party resource that its DNS record still points to.
  • Heroku: a platform for running web applications under a chosen application name.
  • Instance: a running copy of an application on a hosting service.
  • Dangling DNS record: a DNS record that points at a resource which no longer exists or is no longer controlled by the domain owner.
  • SaaS: software delivered over the internet, usually run by a provider.
  • Bucket: a storage container on a cloud platform, often addressable by name.
  • CDN: a network of servers that delivers content close to users.
  • A record: a DNS record that maps a name directly to an IP address.
  • AAAA record: a DNS record that maps a name to an IPv6 address.
  • Certificate transparency logs: public records of issued TLS certificates, useful for discovering hostnames.
  • Passive DNS: historical DNS data collected by third parties.
  • Wildcard certificate: a certificate that covers a domain and all its subdomains.
  • Domain verification: a provider check that an account really owns a hostname before serving content for it.
  • Triager: the person who first reviews a security report and decides whether it is valid.
  • CVSS: a standard score for the severity of a vulnerability.
  • Bounty: a payment made for a valid security report.

More by todayisnew

View all

12 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.

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.