New subdomain takeover case : Clever Cloud
A subdomain pointed to Clever Cloud via A records but the application no longer existed, leaving the subdomain unclaimed. An attacker could register a Clever Cloud account, deploy an application, and add the vulnerable subdomain as a custom domain to take control of it.
It all started during a recon phase on a YesWeHack program, when I came across a rather curious 404 not found page that I’d never seen before :
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 the DNS records for the subdomain still pointed to Clever Cloud after the application was deleted, and Clever Cloud did not verify domain ownership before allowing a new account to claim it.
Impact
An attacker could take control of the subdomain and host arbitrary content, which could be used for phishing or other attacks.
What the attacker needed
A Clever Cloud account; a GitHub account; a vulnerable subdomain
The fix
The subdomain owner should remove the dangling DNS records, and Clever Cloud should verify domain ownership before allowing custom domains.
How it was found
- Find a subdomain with a 404 page from Clever Cloud.
- Check DNS records to confirm it points to Clever Cloud.
- Create a Clever Cloud account via GitHub signup.
- Deploy a new static application.
- Add the vulnerable subdomain as a custom domain in the application settings.
- Verify the subdomain now serves the attacker's content.
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 prefix like 'blog' in blog.example.com. If it points to a cloud service but the app there is deleted, anyone who signs up to that service can claim the subdomain and serve their own content. This is called 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.