Exploiting Vulnerabilities in a TLD Registrar: Lessons from the .to Takeover Risk
A SQL injection vulnerability in the .to TLD registrar's website allowed retrieval of plaintext DNS master passwords, which could be used to log into the registrar portal and overwrite nameservers for any .to domain. This would enable domain hijacking and man-in-the-middle attacks on high-profile domains.
On October 8th, 2021, researchers identified a set of vulnerabilities in the Tonga Network Information Center, the registrar responsible for the .to TLD. These flaws made it possible to alter the nameservers for any domain under .to.
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 a SQL injection flaw combined with plaintext storage of DNS master passwords and missing multi-factor authentication on domain management functions.
Impact
Attackers could have hijacked any .to domain, enabling man-in-the-middle attacks, phishing, session hijacking, credential theft, and manipulation of APIs and web services; the report notes the issue was patched within 24 hours and no malicious exploitation occurred.
What the attacker needed
Access to the registrar's website; No authentication required for SQL injection
The fix
The registrar patched the SQL injection and implemented additional hardening measures.
How it was found
- Exploit a SQL injection vulnerability on the registrar's website to retrieve plaintext DNS master passwords for customers.
- Use those credentials to log into the registrar's web portal, bypassing normal authentication mechanisms.
- Overwrite nameservers for victim domains, redirecting all traffic to attacker-controlled DNS infrastructure through DNS 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.
A top-level domain (TLD) is the last part of a web address, like .com or .to. The organisation that manages a TLD keeps records that tell the internet where each website lives. This report says a mistake in the .to manager's website let someone read secret passwords, which could then be used to change those records and send visitors to a fake website.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.