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.
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 .
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
- Gather subdomains from open-source tools.
- Run a Nuclei template to find hosts with SERVFAIL or REFUSED DNS responses.
- Perform a DNS trace on a flagged domain to confirm dangling NS records pointing to Azure.
- Register the domain in an Azure account and check if the assigned NS records match the dangling ones.
- 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.