Skip to content
Subdomain takeover Disclosed report Intermediate

Domain Takeover of Reddit.ru via DNS Hijacking

The domain reddit.ru had its hosted DNS zone deleted at the provider Reg.ru while the registrar still pointed to those nameservers, causing DNS resolution to fail. An attacker could recreate the missing zone and take control of the domain's content and email.

indianajson Follow

Originally disclosed on HackerOne

Bounty$500 Medium View original
  • Triaged in 3 days
  • Fixed in 3 days
  • Paid in 3 days
  • Disclosed after 4 months

Summary

I discovered that Reddit.ru was vulnerable to DNS hijacking via DNS provider, Reg.ru. This would allow a malicious attacker to control the content on this domain, as well as, create email addresses associated with it... I'm going to be totally honest and say that any of us ethical hackers would have nerded out giving ourselves @reddit.ru emails.

Explanation

Reviewing the WHOIS records for Reddit.ru you will see that this is a Reddit-owned domain and that Reg.ru nameservers are listed as the authority for the domain. However, if you had run a DIG request on Reddit.ru you would have gotten a SERVFAIL error. This is because, despite having Reg.ru set as the authoritative nameserver with the domain's registrar, the hosted zone in Reg.ru had been deleted, allowing anyone to create the missing hosted zone and take control of the domain's content, including creating email accounts.

Proof of Concept / Verified Takeover

I created the missing Hosted Zone within Reg.ru as a proof of concept and to keep any malicious actors from hijacking the domain before Reddit could take corrective action. For a visible proof of concept, please check the TXT records for Reddit.ru, which will display:

JavaScript
reddit.ru.		86400	IN	TXT	"faberge@wearehackerone"

Mitigation

Removing the Reg.ru nameservers for Reddit.ru from your registrar will remove the ability for someone to take control of the domain and will remove my control of the domain. No @reddit.ru email for me... how sad.

Impact

First, DNS hijacking of domains has a higher severity because this vulnerability allows a malicious attacker to completely control all aspects of a domain opening the door to a variety of sophisticated attacks including phishing attacks, and malware distribution. Worse yet, domains owned by reputable companies typically receive greater leniency for spam emails from email providers, thus allowing a malicious attacker to more widely distribute spam than would otherwise be possible.

Second, similar to subdomain takeovers, DNS hijacking has become a more severe issue with the advent of open source tools such as Modlishka, which would allow a malicious actor to invisibly operate a high fidelity spoof of Reddit. Simply put, nothing would indicate to a user that the site was being controlled by someone else, however, a malicious attacker would be able to invisibly siphon sensitive information without any way to identify the domain as compromised. This would be a highly effective way to siphon Russian user's Reddit credentials. An ideal option would be to run advertisements on Google Ads targeting Russian searches for reddit.

Third, since this is a primary domain of Reddit (reddit.ru) the value of this takeover is substantially higher for its ability to negatively impact the brand and would have proven more useful had any of the attack vectors listed above to be executed against it compared to any of the other ~1,000 domains owned by Reddit.

Overall, this takeover presents a real and present danger to Reddit, Inc.

The original report as published on HackerOne, by indianajson. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the domain's hosted DNS zone was deleted at the DNS provider while the registrar still listed that provider's nameservers, leaving the zone free for anyone to claim.

Impact

An attacker could control all content and email for the domain, enabling phishing, malware distribution and credential theft, though the researcher's own takeover was a defensive proof of concept.

What the attacker needed

Ability to create a zone at the DNS provider; domain still points to that provider

The fix

The registrar should remove the Reg.ru nameservers for the domain so that no one can claim the missing zone.

How it was found

  1. Check the WHOIS record and see that the domain is Reddit-owned and uses Reg.ru nameservers.
  2. Run a DNS query for the domain and observe a SERVFAIL error.
  3. Create the missing hosted zone at Reg.ru to claim the domain.
  4. Add a TXT record as visible proof of control.

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 report has not been written yet. The Original tab links to the source.

DNS is the system that turns a domain name into the server that hosts a website. If the company that runs the DNS service loses the record for a domain, anyone who can sign up for that service can recreate it and point the domain wherever they like. Here the researcher did exactly that to prove the problem, then left a text record as evidence.

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.

More from Reddit

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

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.