Black Hat 2021: DNS loophole makes nation-state level spying as easy as registering a domain
A loophole in managed DNS providers allowed registering a domain with the same name as the provider's name server, causing Windows dynamic DNS clients to send internal network information to the attacker's IP address. This exposed data from over 15,000 organisations, including internal IP addresses, computer names, employee names, and office locations.
Published on wiz.io
Today at Black Hat, Wiz CTO Ami Luttwak and I are presenting on a new class of vulnerabilities we discovered that exposes valuable dynamic DNS data from millions of endpoints worldwide. DNS (Domain Name Service) is one of the foundations of the Internet, an immensely complex and decentralized system that, at its core…
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 provider did not verify domain ownership and allowed registering a domain identical to its own name server, breaking tenant isolation and causing Windows dynamic DNS clients to resolve the name server to the attacker's IP.
Impact
Attackers could collect internal IP addresses, computer names, employee names, and office locations from over 15,000 organisations, potentially enabling further attacks; Amazon and Google have fixed the issue, but other providers may still be vulnerable.
What the attacker needed
Ability to register a domain on the DNS platform; Victim uses Windows dynamic DNS; Victim's DNS queries reach the hijacked name server
The fix
Managed DNS providers should verify domain ownership before allowing registration, and organisations should configure their DNS resolvers properly so dynamic DNS updates do not leave the internal network.
How it was found
- Register a new domain on the DNS platform with the same name as the provider's official DNS server.
- Ensure the registered domain is managed by the same name server that will be queried.
- Point the domain to the attacker's IP address.
- Wait for Windows endpoints to query the hijacked name server about itself, sending dynamic DNS updates to the attacker's IP.
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 is like the internet's phone book, turning website names into numeric addresses. Dynamic DNS automatically updates these records when a device's IP address changes. The researchers found that by registering a domain with the same name as a DNS server, they could trick Windows computers into sending their private network details to the attacker instead of the real server.
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.