This is not new but it still happens in 2014… Hijacking a website with just a small e-mail. Here are the facts. For a while, I’m hosting a friend’s website. His website is quite old and it already moved from servers to servers depending on my deployed infrastructure. A few weeks ago, I notified my friend that a new change should occur asap: The website will be moved (again) to another IP address. Since the last server change, the domain name also moved and is now hosted by an ISP. My friend trusted me and suggested to contact directly the ISP. In this case, the ISP was the registrar and hosting the zone on its DNS servers at the same time! I followed the procedure and contacted the registrar as mentionned on dns.be:
I took a deep breath and sent an e-mail to <email@example.com> explaining the situation:
From: <me> To: <firstname.lastname@example.org> Cc: <my-friend> Subject: Change request xxx.be Dear DnsMaster, A friend of mine is hosting his website on my server (xxx.be). I would like to move the website to a new server. This change implies a new IP address for this host: IN A x.x.x.x IN AAAA x:x:x:x:x:x Could you please implement those changes? If extra controls are required, you can reach me on +32 xxx xx xx xx. Best Regards, Xavier
I was ready to fight and prove them that my request was legitimate but it happened otherwise. I received a nice auto-reply with some classic commercial content (read: “You are very important to us!“) and a ticket number. Step one completed! I expected to have, at least, another e-mail asking me for more details or a phone call (I gave my mobile number especially for this purpose) but… nothing! This is the timeline of events:
- 10:50 : Original mail sent (see above)
- 10:55 : Auto-reply with my ticket number
- 11:35 : Changes done, ticket closed
- 11:45 : Testing from a public DNS server (to avoid caching issues) – new IP alive!
In less than one hour, the domain name zone was updated! Scrary! In this case, it was good news for me because I was able to complete the website migration much quicker than expected. But from a security point of view, we are facing some issues:
- I’m not listed as contact or owner in the domain name administrative information
- I’m never in contact with the <dnsmaster>, they don’t know me
- The email sent was a piece of cake to write by a (novice) social-engineering guy
- No contact was taken with me to confirm the change (and even, as an attacker, I would reply: “Sure, do it!“)
Why spend time to pwn servers, play MitM attacks or poison DNS caches if only one e-mail is good enough to hijack a website?