Skip to content
Subdomain takeover Write-up Beginner

Fastly Subdomain Takeover leading to $$ Bounty Reward

A subdomain pointed via CNAME to Fastly but was not claimed by any Fastly service, so the author could register it on their own Fastly account. An attacker could then serve their own content from the organisation's subdomain.

sohailahmed0x0 Follow

Published on medium.com

I am writing this write-up after a long time. My previous write-ups were useful to many people, so I thought that I should contribute to the community from which I have learned myself.

Sohail Ahmed, on medium.com

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 a dangling DNS record: the subdomain's CNAME still pointed to Fastly after the corresponding Fastly service was removed or never claimed.

Impact

An attacker could serve their own content from the organisation's subdomain, which could be used for phishing or to damage trust; the text does not describe any further exploitation.

What the attacker needed

Ability to create a free Fastly account; dangling CNAME to Fastly

How it was found

  1. Enumerate subdomains of the target with subfinder.
  2. Visit each subdomain manually and note the responses.
  3. Notice a Fastly error saying the domain is unknown.
  4. Check the CNAME record with dig and confirm it points to Fastly.
  5. Create a Fastly account, start a new CDN service and add the subdomain as a domain.
  6. Observe that the domain is accepted rather than rejected as already taken, confirming the takeover.

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 assets.example.com that belongs to the main site. Its DNS record can point to an outside service such as a content delivery network. If that outside service no longer has the name registered, anyone who signs up can claim it and put their own pages there, which is called a subdomain takeover.

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 sohailahmed0x0

View all

1 more disclosed report, best first.

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.