Skip to content
Subdomain takeover Write-up Intermediate

Azure DNS Takeover @ Swisscom

A domain had dangling NS records pointing to Azure DNS, allowing an attacker to potentially take over the domain by registering it in their own Azure account. The attacker successfully registered the domain and created a subdomain pointing to an external site, demonstrating control.

Hussein Ayoub Follow

Published on medium.com

This writeup details the discovery of a DNS takeover vulnerability in Swisscom. The vulnerability allowed an attacker to gain full control over the vulnerable domain target.com .

Hussein Ayoub, on medium.com

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 the domain and control its DNS records, potentially redirecting traffic or hosting malicious content.

What the attacker needed

Azure account (student subscription worked); dangling NS records pointing to Azure

The fix

The issue was fixed by Swisscom's CSIRT.

How it was found

  1. Gather subdomains from open-source tools.
  2. Run a Nuclei template to find hosts with SERVFAIL or REFUSED DNS responses.
  3. Perform a DNS trace on a flagged domain to confirm dangling NS records pointing to Azure.
  4. Register the domain in an Azure account and check if the assigned NS records match the dangling ones.
  5. Create a subdomain pointing to an external site to prove control.

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.

DNS records tell computers where to find a website. Sometimes these records point to a service that is no longer used, leaving them 'dangling'. If an attacker can claim that unused service, they can control the domain, which is called a DNS 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 Hussein Ayoub

View all

2 more disclosed reports, best first.

More from Swisscom

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.