Skip to content
Subdomain takeover Write-up Beginner

How a Single Forgotten DNS Record Can Turn a Trusted Domain into a Gambling Site

A subdomain of a real company pointed via a CNAME record to an unclaimed Shopify resource, allowing anyone to register that resource and control the subdomain. An attacker could then host a gambling site, phishing pages, or malware under the trusted domain.

akashutosh659 Follow

Published on medium.com

Security incidents don’t always begin with zero-days, nation-state actors, or advanced malware.

Ashutosh Anand, on medium.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 dangling CNAME record pointing to a third-party service (Shopify) that was no longer claimed, allowing anyone to register it.

Impact

An attacker could run phishing campaigns that bypass email filters, host malware, create fake stores, and abuse cookies and sessions under a trusted brand.

What the attacker needed

Public DNS records; unclaimed third-party service

The fix

The fix was to remove the unused CNAME record or properly reclaim the third-party service; the text says it was patched within seconds.

How it was found

  1. Scan public DNS records and notice a CNAME from a company subdomain to a Shopify endpoint.
  2. Check whether the Shopify endpoint is unclaimed.
  3. Claim the unclaimed Shopify resource to gain control of the subdomain.
  4. Serve a gambling website under the trusted subdomain.

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 is a smaller part of a company's website, like shop.example.com. A CNAME record is a DNS setting that points one name to another service. If that other service is no longer used but the DNS record remains, someone else can claim the service and take over the 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 akashutosh659

View all

4 more disclosed reports, best first.

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.