Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain takeover on svcgatewayus.starbucks.com

A Starbucks subdomain had a DNS CNAME chain pointing to an Azure cloud app that was no longer registered, allowing anyone to claim it. An attacker could register the Azure app and gain full control over the subdomain's content.

Patrik Hudak Follow

Originally disclosed on HackerOne

Critical 9.3 View original
  • Triaged in 40 hours
  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 3 months

Summary by the researcher

Subdomain takeover possible on one of Starbucks's subdomain. The subdomain pointed to Microsoft Azure Cloud App which was no longer registered under Azure.

Detailed write-up: https://0xpatrik.com/subdomain-takeover-starbucks/

The report

Hello,

this is pretty serious security issue in some context, so please act as fast as possible.

Overview:

One of the starbucks.com subdomains is pointing to Azure, which has unclaimed CNAME record. ANYONE is able to own starbucks.com subdomain at the moment.

This vulnerability is called subdomain takeover. You can read more about it here:

Details:

svcgatewayus.starbucks.com has CNAME to s00197tmp0crdfulprod0.trafficmanager.net which has CNAME to 1fd05821-7501-40de-9e44-17235e7ab48b.cloudapp.net. However, 1fd05821-7501-40de-9e44-17235e7ab48b.cloudapp.net is not registered in Azure cloud anymore and thus can be registered by anyone. After registering the Cloud App in Azure portal, the person doing so has full control over content on svcgatewayus.starbucks.com.

PoC:

http://svcgatewayus.starbucks.com

### Mitigation:

  • Remove the CNAME record from starbucks.com DNS zone completely.
  • Claim it back in Azure portal after I release it

Regards,

Patrik Hudak

Impact

Subdomain takeover is abused for several purposes:

  • Malware distribution
  • Phishing / Spear phishing
  • XSS
  • Authentication bypass
  • ...

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

The original report as published on HackerOne, by 0xpatrik. 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 DNS record: the subdomain's CNAME chain ended at an Azure cloud app that had been deleted but the DNS record was not removed.

Impact

An attacker could host arbitrary content on the Starbucks subdomain, which could be used for malware distribution, phishing, XSS, or authentication bypass, and a free SSL certificate could be obtained for it.

What the attacker needed

None

The fix

The CNAME record should be removed from the DNS zone, and the Azure app should be claimed back after release.

How it was found

  1. Resolve the subdomain and follow its CNAME chain to the final Azure cloud app hostname.
  2. Check that the final Azure cloud app is no longer registered.
  3. Register the same cloud app name in the Azure portal.
  4. Access the subdomain to confirm control over its content.

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 part of a website's address, like blog.example.com. This report found that one of Starbucks's subdomains was set up to point to a cloud service that had been deleted, so anyone could sign up for that same cloud service name and take over the subdomain. That would let them host their own content on a Starbucks address, which could be used for phishing or malware.

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 Patrik Hudak

View all

3 more disclosed reports, best first.

More from Starbucks

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.