Skip to content
Subdomain takeover Write-up Intermediate

Microsoft Azure vulnerability affecting thousands of new subdomains each month

A subdomain takeover vulnerability in Microsoft Azure allows attackers to claim dangling DNS entries pointing to Azure resources, enabling them to host phishing sites on trusted subdomains. Researchers found around 15,000 vulnerable subdomains each month, which could be used to steal credentials or distribute malware.

keytos.io

Published on keytos.io

Subdomain takeover is a vulnerability that has plagued cloud users since the beginning of the cloud. This is a common vulnerability that is exploited by attackers to hijack existing trusted subdomains - allowing them to impersonate organizations and attack their site users and employees, or to show spam content via…

The author, on keytos.io

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, organisations delete cloud resources without removing the corresponding DNS entries, and cloud providers do not enforce checks to prevent re-claiming of those dangling records.

Impact

Attackers could steal user credentials, spread false information, or trick users into downloading malware via trusted subdomains; some password managers may auto-fill credentials, and Microsoft's fixes only partially address the issue.

What the attacker needed

Dangling DNS record pointing to Azure; attacker can create matching Azure resource; no ownership validation on resource

How it was found

  1. Use certificate transparency logs to find certificate authorities that issue certificates for Azure-hosted sites.
  2. Scan certificate transparency logs for those CAs and check if each site is still working.
  3. If a subdomain is pointed at a resource but the site is not operational, check if the DNS entry points to Azure.
  4. If the DNS points to Azure, check if the Azure resource is available; if so, the site is vulnerable.

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.

When a company deletes a cloud service but leaves the DNS record pointing to it, an attacker can recreate that service and take over the subdomain. This lets them host fake pages on the company's own domain, which users trust. The report found thousands of such forgotten records in Microsoft Azure.

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.

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.