My Experience of Hacking Dutch Government (DNS Hijacking)
A subdomain of the Dutch government pointed via a CNAME record to a hostname under a domain that had expired and was available for registration. An attacker could register that domain and serve their own content under the government subdomain.
Hello Hackers, I’m Faiyaz, also known in the hacking community as hackerronin or You can call me Ronin…. Btw I’m a security enthusiast who spends most of my time bug hunting, penetration testing and develop website’s and android apps.
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 dangling DNS record: the CNAME pointed to a hostname under a domain that had lapsed and was available for anyone to register.
Impact
An attacker could serve arbitrary content under a government subdomain, which could be used for phishing or to damage trust; the report does not claim any further impact.
What the attacker needed
Ability to register the expired domain; a server to host content
The fix
The report was fixed after being reported, though the text does not describe the fix; typically the dangling DNS record should be removed or repointed.
How it was found
- Enumerate subdomains of the target and filter for active ones.
- Manually inspect DNS records of each subdomain.
- Notice a CNAME record pointing to a hostname under an external domain.
- Check whether the parent domain of that hostname is still registered.
- Register the available domain and point the hostname's A record to a server you control.
- Visit the government subdomain and see your own content load.
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 CNAME record is like a forwarding address in the domain name system (DNS): it tells visitors that one website name is an alias for another. If the domain that the alias points to is no longer owned by anyone, someone else can buy it and control what appears at the original government address. This is called subdomain 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.