Skip to content
Subdomain takeover Write-up Advanced

Hijacking Broken Nameservers to Compromise Your Target

Two of the authoritative nameservers for iom.int were expired domains, allowing an attacker to register them and become an authoritative nameserver. By setting long TTLs, the attacker could poison DNS caches and control the domain's DNS for many users, enabling certificate issuance, email interception, and phishing.

thehackerblog.com

Published on thehackerblog.com

In a past piece of research, we explored the issue of nameserver domains expiring allowing us to take over full control of a target domain. In that example we took over the domain name maris.int by buying an expired domain name which was authoritative for the domain.

The author, on thehackerblog.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 issue arbitrary SSL/TLS certificates, intercept targeted email, phish credentials, and potentially take over the .int domain itself, though the attack only works when the malicious nameserver is selected (about 50% of the time) and relies on cache poisoning to increase effectiveness.

What the attacker needed

Expired nameserver domain; ability to register the expired domain; DNS resolver caching

How it was found

  1. Scan the .int zone for domains with nameservers that are expired domains.
  2. Identify iom.int as having two nameservers (ns1.iom.org.ph and ns2.iom.org.ph) that are expired.
  3. Register the expired domain iom.org.ph to control those nameservers.
  4. Configure the registered domain to act as an authoritative nameserver for iom.int.
  5. Set long TTLs on DNS responses to increase the chance of cache poisoning.

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.

Every website relies on DNS to translate its name into an IP address. If some of the servers responsible for answering that translation can be taken over, an attacker can give false answers. This report shows how an attacker could take over two such servers for a domain and then poison the caches of DNS resolvers so that many users get the attacker's answers.

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.

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.