Skip to content
Subdomain takeover Write-up Beginner

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.

supr4s Follow

Published on supras.io

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 :

Supr4s, on supras.io

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

  1. Find a subdomain with a 404 page from Clever Cloud.
  2. Check DNS records to confirm it points to Clever Cloud.
  3. Create a Clever Cloud account via GitHub signup.
  4. Deploy a new static application.
  5. Add the vulnerable subdomain as a custom domain in the application settings.
  6. 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.

More by supr4s

View all

13 more disclosed reports, 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.