Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain Takeover in http://genghis-cdn.shopify.io/ pointing to Fastly

A Shopify subdomain was left pointing at a Fastly CDN service that no longer existed, so the DNS record was dangling. Anyone able to register that hostname with Fastly could serve content on the Shopify subdomain.

peroni Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 4 days
  • Disclosed after 4 days

Hi,

I've found a Shopifu cdn domain here which had an instance of fastly setup but did not remove the dns record when the service was cancelled. a subdomain takeover similar to that of https://hackerone.com/reports/32825 could be possible.

Vulnerable URL: http://genghis-cdn.shopify.io

Page Response:

Fastly error: unknown domain: genghis-cdn.shopify.io. Please check that this domain has been added to a service.

Which indicate that this domain is point to fastly but there is no app in fastly with that name allowing anyone to claim it. The subdomain "http://genghis-cdn.shopify.io/" is currently pointing to Fastly (shopify-e.map.fastly.net), but is not registered to a service.

$ host genghis-cdn.shopify.io
genghis-cdn.shopify.io is an alias for shopify-e.map.fastly.net.
shopify-e.map.fastly.net is an alias for prod.shopify-e.map.fastlylb.net.
prod.shopify-e.map.fastlylb.net has address 151.101.60.108

Thanks!

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

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 DNS record for the subdomain was not removed after the Fastly service behind it was cancelled, leaving a dangling CNAME.

Impact

An attacker could claim the hostname on Fastly and serve arbitrary content on a Shopify-owned subdomain, which could be used for phishing or other abuse; the report does not demonstrate an actual takeover.

What the attacker needed

Ability to register the hostname on Fastly

How it was found

  1. Resolve the subdomain and observe that it is an alias for a Fastly hostname.
  2. Request the subdomain and see Fastly's error saying the domain is unknown.
  3. Conclude that no Fastly service claims the domain, so it can be registered by anyone.

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 company can point its own web address at an outside hosting service by adding a DNS record, which is like a forwarding note. If the company later cancels the hosting but leaves the forwarding note in place, a stranger can sign up for that same hosting slot and take over the address. That lets them show their own pages under the company's trusted 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.

More by peroni

View all

1 more disclosed report, 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.