Substack Domain Takeover
Substack does not verify domain ownership when a customer adds a custom domain, so if a domain has a CNAME record pointing to Substack's custom domain target but is not linked to any blog, an attacker can add it to their own blog and serve arbitrary content. This allows takeover of inactive or wildcard domains.
Published on blog.nietaanraken.nl
Substack is a popular blogging platform. It allows writers to easily create their own personal blog, with payments, comments, analytics and other advanced features.
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
Impact
An attacker could take over inactive custom domains and serve arbitrary content, potentially affecting many domains; the $50 fee may deter some attackers but does not prevent the attack.
What the attacker needed
Domain with CNAME to Substack but not linked; attacker pays $50 fee
The fix
Substack should require customers to authenticate domain ownership, for example using Cloudflare for SaaS hostname validation.
How it was found
- Find a domain that has a CNAME record pointing to target.substack-custom-domains.com but is not linked to any Substack blog.
- Add that domain to your own Substack blog (requires paying the $50 fee).
- Substack will serve your blog content on that domain.
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.
When you use a custom domain for a blog, you point your domain to the blog platform using a DNS record called a CNAME. Substack only checks that this record exists, not that you actually own the domain. So if someone leaves a CNAME record pointing to Substack but stops using the blog, anyone else can claim that domain on Substack and put their own content there.
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.