Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain takeover of datacafe-cert.starbucks.com

A subdomain had a dangling CNAME record pointing to an unclaimed Azure web service, which the reporter registered. An attacker could therefore control the content served on that subdomain.

parzel Follow

Originally disclosed on HackerOne

High 7.5 View original
  • Triaged in 7 hours
  • Fixed in 18 days
  • Paid in 7 hours
  • Disclosed after 27 days

Summary: The subdomain datacafe-cert.starbucks.com had an CNAME record pointing to an unclaimed Azure webservice. This is a high severity security issue because an attacker can register the subdomain on Azure and therefore can own the subdomain datacafe-cert.starbucks.com.

Description: The dangling CNAME record of datacafe-cert.starbucks.com is pointing to s00397nasv101-datacafe-cert.azurewebsites.net which was not claimed by you. I registered a service with this name and therefore was able to takeover the subdomain. Every attacker doing this has afterwords full control over the contents served on this subdomain.

Platform(s) Affected: http://datacafe-cert.starbucks.com/ https://datacafe-cert.starbucks.com/

Supporting Material/References:

view-source:http://datacafe-cert.starbucks.com/

How can the system be exploited with this bug?

The full domain can be taken over. Arbitrary content can be served under it.

How did you come across this bug ?

I noticed the dangling CNAME record of datacafe-cert.starbucks.com.

Recommendations for fix

  1. Remove the dangling CNAME record from datacafe-cert.starbucks.com
  2. I release s00397nasv101-datacafe-cert.azurewebsites.net
  3. You can reclaim it if you want

Impact

This issue can be exploited in several ways, for example but not limited to: XSS, Phishing, Session Hijacking due to bypassing of SOP

The original report as published on HackerOne, by parzel. 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

Impact

An attacker could serve arbitrary content on the subdomain, enabling phishing, XSS, and session hijacking by bypassing the same-origin policy.

What the attacker needed

None

The fix

The dangling CNAME record should be removed and the Azure service name reclaimed or released.

How it was found

  1. Notice the dangling CNAME record of the subdomain.
  2. Register the unclaimed Azure web service name.
  3. Take over the subdomain and serve arbitrary 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 prefix like 'shop' in shop.example.com. Its DNS record can point to another service, here an Azure website. If that Azure name is free, anyone can claim it and serve their own content under the company's subdomain.

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 parzel

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.