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.
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.
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
- Enumerate subdomains of the target with subfinder.
- Visit each subdomain manually and note the responses.
- Notice a Fastly error saying the domain is unknown.
- Check the CNAME record with dig and confirm it points to Fastly.
- Create a Fastly account, start a new CDN service and add the subdomain as a domain.
- 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.