Skip to content
Subdomain takeover Disclosed report Intermediate

Possible (we need to wait for some time) takeover of subdomain badootech.badoo.com which is pointing to Medium servers

A Badoo subdomain was pointed at Medium's servers via DNS records without the domain being claimed on Medium, leaving it open to a future subdomain takeover. If Medium resumes its custom domain service, an attacker could claim the hostname and serve their own content on it, which the reporter says could be used for phishing.

w2w Follow

Originally disclosed on HackerOne

Medium 6.6 View original
  • Triaged in 3 days
  • Fixed in 10 days
  • Paid in 10 days
  • Disclosed after 47 days

##Description: Hello, team! Recently I found a new subdomain pushed; it's https://badootech.badoo.com/. The site's content contains a Medium icon with the text "Oops! We couldn’t find that page. Sorry about that.", DNS records are: badootech.badoo.com. 21399 IN A 52.1.173.203 badootech.badoo.com. 21399 IN A 52.4.225.124 badootech.badoo.com. 21399 IN A 52.0.16.118 badootech.badoo.com. 21399 IN A 52.1.147.205 badootech.badoo.com. 21399 IN A 52.4.145.119 badootech.badoo.com. 21399 IN A 52.4.240.221 badootech.badoo.com. 21399 IN A 52.4.38.70 badootech.badoo.com. 21399 IN A 52.4.175.111 badootech.badoo.com. 21399 IN A 52.6.3.192 badootech.badoo.com. 21399 IN A 52.6.46.142 badootech.badoo.com. 21399 IN A 52.1.119.170 badootech.badoo.com. 21399 IN A 52.5.181.79

This is a classic pointing to the Medium as a part of claiming custom domain. The thing here is that you haven't claim badootech.badoo.com host in the medium but added DNS records that could lead to subdomain takeover. Let's look at the process of how custom domains are linked with Medium's blogs at https://medium.com/feedium/how-to-set-up-a-custom-domain-on-medium-fbcb4041a1b9. https://extranewsfeed.com/ is an example of the Medium custom domain, and it has identical DNS records as your subdomain does! According to the article, steps to registering a custom domain on Medium are as following:

  1. Inform Medium you want to turn your publication into a custom domain.
  2. You’ll have to send Medium your: Publication URL, your registered domain URL, your domain registrar site (ex. GoDaddy)
  3. At one point, Medium charged a $75 fee for doing this service to account for extra costs on their side. I’m not sure if they will restart this or make it free yet.
  4. If Medium approves, they will send you: a CNAME and A Records.
  5. You have to log in to your domain registrar (ex. GoDaddy) and adjust the CNAME and A Record values to match the ones Medium gave you.
  6. Wait 4 to 24 hours, and your new domain should be up and running!

Since DNS records were added already, we can skip the 5th step. All we have to do is to send to the Medium team a link to your domain, a link to my blog on medium, and the hosting name (it's "register" according to whois). Here is my request, along with the answer :

Screenshot_2020-11-13_at_18.09.07.png
Screenshot_2020-11-13_at_18.09.07.png From the original on HackerOne

As you can see, Medium paused, providing the "custom domains" service but will relaunch it soon. When it is available, it'd be possible to take over a domain. I decided to send a report right away and let you know about it before the subdomain will be taken over by someone.

Impact

Impact here is the phishing as with the "Shopify" subdomain takeover, severity at your discretion. I'd recommend removing DNS records.

The original report as published on HackerOne, by w2w. 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 DNS records for the subdomain were pointed at Medium's hosting without the custom domain being claimed in Medium, so the name remains available for anyone to register there.

Impact

The reporter states the takeover is not currently possible because Medium paused its custom domain service, but that it could be used for phishing once the service returns.

What the attacker needed

DNS records already point to Medium; Medium custom domain service active

The fix

The reporter recommends removing the dangling DNS records.

How it was found

  1. Resolve the subdomain and observe that its DNS records point to Medium's servers.
  2. Visit the subdomain and see Medium's 'page not found' content.
  3. Compare the records with a known Medium custom domain and confirm they match.
  4. Follow Medium's custom domain process and note that only the claim request remains, since DNS is already set.

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.

A subdomain is a name like shop.example.com that belongs to the main site. Here the company pointed one of its subdomains at a third-party service (Medium) but never registered that name with the service, so anyone who registers it there could put their own pages on the company's address. That is called subdomain takeover, and it is often used to trick people into trusting a link that looks official.

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 by w2w

View all

10 more disclosed reports, best first.

More from Bumble

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.