Skip to content
Subdomain takeover Disclosed report Beginner

Take over subdomain undici.nodejs.org.cdn.cloudflare.net

A Node.js subdomain pointed to a Cloudflare CDN hostname that was not claimed, so it could be added to a GitHub account and used to serve content under the trusted subdomain, enabling phishing, malware or SSL certificates.

algisec1337 Follow with fakhricrd

Originally disclosed on HackerOne

Medium 6.9 View original
  • Fixed in 3 days
  • Disclosed after 2 months

Hello,

this is a pretty serious security issue in some contexts, so please act as soon as possible

Summary:

I just went to undici.nodejs.org, and I've also checked the IP of the main domain it goes to cdn.cloudflare.net which means if it's not added it can be added to any github account your subdomain should be added to your account so shows the URL you selected. This vulnerability is called subdomain takeover

•Remove CNAME records from DNS zone completely

Poc http://undici.nodejs.org.cdn.cloudflare.net/

Impact

Subdomain takeovers are abused for several purposes:

Malware distribution •Phishing / Spear phishing •XSS •Bypass authentication •...

The list goes on and on. Since some certificate authorities (Let's Encrypt) only require domain verification, SSL certificates can be generated easily.

Regards Algisec1337

Attachments

20221107_064929_edited.mp4 From the original on HackerOne

The original report as published on HackerOne, by algisec1337. 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 a dangling CNAME record pointing to an unclaimed Cloudflare CDN hostname.

Impact

An attacker could use the subdomain for phishing, malware distribution, XSS, or authentication bypass, and could easily obtain SSL certificates for it.

The fix

The CNAME record should be removed from the DNS zone completely.

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 takeover happens when a website's address points to an external service the owner no longer controls. If someone else can claim it, they can put their own content at the trusted address. This report suggests a Node.js subdomain pointed to a Cloudflare CDN name that may not have been claimed.

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 Node.js

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.