What is DNS dangling?
Let’s start with some fundamentals…
Domain Name System (DNS) is a protocol that automatically translates memorable domain names (like xpertex.com!) into numerical IP addresses.
A Canonical Name (CNAME) is a type of DNS database record that acts as an alias for another domain, pointing to separate, ‘canonical’ domain instead of an IP address. It indicates that a domain name is actually an alias (or nickname, if you prefer) for another domain.
When DNS records point domain names to other domains in this way, when one of those domains is abandoned, that DNS record is left dangling. And unfortunately, this means it can be hijacked to gain access to a network, where the bad actor can then begin a range of insidious activities, particularly subdomain takeover. Far from just an intrusive nuisance, this will typically lead to:
Data Theft: Attackers can access sensitive information flowing through the subdomain, which can then be sold or held to ransom.
Phishing and Scams: The legitimate appearance of the subdomain can be used to conduct phishing attacks.
Malware Distribution: The subdomain can serve as a platform for distributing malware.
Reputation Damage: An organisation’s reputation can suffer significant harm through the misuse of its subdomain, as shown in the scenario we opened this article with.