Skip to content
Subdomain takeover Write-up Beginner

Neglected DNS records exploited to takeover subdomains

Two Redbooth subdomains had CNAME records pointing to Heroku app names that were not registered, so anyone could claim those names and serve content on the subdomains. An attacker could host fake login pages, redirect users, or inject malicious code under the trusted domain.

Yassine Aboukir Follow

Published on web.archive.org

In this write up I will be talking about a security issue identified in Redbooth platform which « is a communication and collaboration platform that provides a single place for shared tasks, discussions, file sharing, and more. » – Read more at: https://www.crunchbase.com/organization/redbooth

Yassine Aboukir, on web.archive.org

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 company stopped using a Heroku app but left the CNAME record in DNS, and Heroku did not verify that a claimant owned the domain.

Impact

An attacker could host fake login pages, redirect users to malicious sites, inject code to steal cookies, or deface the page, all under the company's trusted subdomain.

What the attacker needed

Public DNS records are visible; CNAME points to an unclaimed service name; attacker can register that service name

The fix

The company removed the dangling DNS records, and the issues were fixed.

How it was found

  1. Check the target's public DNS records and find a CNAME pointing to an external service.
  2. Notice that the referenced Heroku app name had not been registered.
  3. Sign up for Heroku and claim that app name.
  4. Upload a test web page to prove control of the subdomain.
  5. Repeat the same process on another subdomain with a neglected record.

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 DNS record is like an address book entry that tells browsers where a website lives. Here, the company's address book still pointed one of its subdomains at a hosting account name that nobody had claimed, so the researcher signed up for that name and effectively became the website. This is called subdomain takeover: an outsider can put their own content on a company's trusted web address.

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 Yassine Aboukir

View all

2 more disclosed reports, best first.

More from Heroku

View all

The newest disclosed reports for this program.

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.