Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain takeover of d02-1-ag.productioncontroller.starbucks.com

A Starbucks subdomain had a dangling DNS record pointing to an unclaimed Azure Cloud Service, allowing an attacker to claim that service and host arbitrary content on the Starbucks domain. This could be used to impersonate the site, steal cookies, or bypass domain security.

mindtrick Follow

Originally disclosed on HackerOne

High 8.4 View original
  • Triaged in 3 days
  • Fixed in 9 days
  • Paid in 3 days
  • Disclosed after 19 days

Summary: I was able to claim the subdomain: d02-1-ag.productioncontroller.starbucks.com using Azure Cloud Service

Platform(s) Affected: Subdomain Azure Cloud Service

Steps To Reproduce:

  1. Using dig, I was able to determine that the subdomain 'd02-1-ag.productioncontroller.starbucks.com' was vulnerable to takeover. The record showed status: NXDOMAIN and was pointing to the CNAME: 3edbac0a-5c43-428a-b451-a5eb268f888b.cloudapp.net.
  2. Using this information, I was able to create a new Azure Cloud Service with the name '3edbac0a-5c43-428a-b451-a5eb268f888b'. This would resolve to the CNAME record mentioned above.
  3. I then crafted a website and uploaded it to the cloud service using this as a guide: https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-how-to-create-deploy-portal.
  4. I was then able to view the uploaded site at http://d02-1-ag.productioncontroller.starbucks.com

Supporting Material/References:

POC: http://d02-1-ag.productioncontroller.starbucks.com/poc-2sKR4C.html

How can the system be exploited with this bug?

See impact below.

How did you come across this bug ?

Using enumeration, I was able to discover this domain and determined it was vulnerable by the DNS record data mentioned in the steps above.

Recommendations for fix

To mitigate this issue you can:

  • Remove the DNS record from the DNS zone if it is no longer needed.
  • Claim the domain name in a permanent DNS record so it cannot be used elsewhere.

Impact

This is extremely vulnerable to attacks as a malicious user could create any web page with any content and host it on the starbucks.com domain. This would allow them to post malicious content which would be mistaken for a valid site. They could steal cookies, bypass domain security, steal sensitive user data, etc. Here is a nice write-up of the vulnerabilities: https://0xpatrik.com/subdomain-takeover/

As mentioned in the write-up above the

The original report as published on HackerOne, by mindtrick. 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 pointing to a deprovisioned Azure Cloud Service that was not removed.

Impact

A malicious user could host any content on the starbucks.com domain, potentially stealing cookies, bypassing domain security, or stealing sensitive user data.

What the attacker needed

Ability to create Azure Cloud Service; knowledge of the vulnerable subdomain

The fix

The DNS record should be removed if no longer needed, or the domain name should be claimed in a permanent DNS record.

How it was found

  1. Use dig to check the subdomain and find it returns NXDOMAIN with a CNAME to an Azure Cloud Service.
  2. Create a new Azure Cloud Service with the same name as the CNAME target.
  3. Upload a website to the cloud service.
  4. Visit the subdomain to see the uploaded site.

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 address, like blog.example.com. If that subdomain points to a cloud service that no longer exists, anyone can sign up for that same service name and take control of the subdomain. This is called a subdomain takeover, and it lets an attacker put their own content on the real company's domain.

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