Skip to content
Subdomain takeover Write-up Intermediate

Microsoft Account Takeover Vulnerability Affecting 400 Million Users

A dangling CNAME record for a Microsoft subdomain allowed an attacker to take over that subdomain, and because Microsoft's OAuth login system trusted that subdomain as a redirect URI, login tokens were sent to the attacker. An attacker could then use the stolen tokens to log in as any victim who clicked a crafted link.

Aviva Zacks Follow

Published on safetydetective.com

SafetyDetectives Cybersecurity Team SafetyDetectives Cybersecurity Team Published on: December 11, 2018 Updated 2 times since publishing](https://www.safetydetectives.com/author/sdteam/)

Aviva Zacks, on safetydetective.com

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 a combination of a dangling CNAME record allowing subdomain takeover and an OAuth redirect URI validation that trusted any subdomain of office.com.

Impact

An attacker could take over any Microsoft Outlook, Microsoft Store, or Microsoft Sway account by sending a crafted link, and the report expects it to affect all Microsoft accounts.

What the attacker needed

Victim clicks a crafted link; attacker registers the dangling Azure app name; no account needed for the victim beyond having a Microsoft…

The fix

The vulnerabilities were fixed by Microsoft at the end of November 2018.

How it was found

  1. Open the Azure Portal and create a new Web App resource.
  2. Enter the app name successcenter-msprod (the name the dangling CNAME pointed to).
  3. Complete the setup by selecting OS type and plan.
  4. Add a custom domain for success.office.com and save the settings.
  5. Deploy an application to the web app to control the subdomain.
  6. Send a crafted login.live.com link with wreply pointing to success.office.com to a victim to capture their token.

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.

A subdomain of Microsoft was pointing to an Azure web app that no longer existed, so anyone could register that same app name and take control of the subdomain. Microsoft's login system trusted that subdomain to receive login tokens, so when a victim clicked a special link, their login token was sent to the attacker, who could then use it to sign in as the victim.

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 Meta

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.