Skip to content
Subdomain takeover Disclosed report Beginner

subdomain Takeover at blog.exchangemarketplace.com

A DNS record for blog.exchangemarketplace.com pointed to Shopify but the domain was unclaimed, allowing an attacker to add it to their own store. The program states the security impact was minimal because the domain had not been used and plans to use it had been abandoned.

m7mdharoun Follow

Originally disclosed on HackerOne

  • Triaged in 26 hours
  • Fixed in 28 hours
  • Disclosed after 29 hours

Summary by the program

@m7mdharoun noticed that blog.exchangemarketplace.com had been configured with a DNS record pointing at Shopify, but that the domain had not been claimed. This allowed him to add the domain to his own store. Because the domain had not been used (and plans to use it had been abandoned) the security impact of this subdomain takeover was minimal.

Summary by the researcher

#For full report and the Takeover with Steps visit my blog :

██████

The report

Hi , I believe that exchangemarketplace.com is belong to shopify it was vulnerable to Subdomain Takeover so I takeover it to my shopify store

Poc : goto blog.exchangemarketplace.com

#Suggested fix : clear your subdomain dns

Impact

Subdomain Takeover

The original report as published on HackerOne, by m7mdharoun. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is blog.exchangemarketplace.com, a hostname under exchangemarketplace.com, which the researcher states belongs to Shopify. The researcher reports that the subdomain was vulnerable to subdomain takeover and that he took it over to his own Shopify store.

The program's summary describes the same event from its side: the hostname had been configured with a DNS record pointing at Shopify, but the domain had not been claimed. That let the researcher add the domain to his own store. The program also notes that the domain had not been used and that plans to use it had been abandoned, so the security impact was minimal.

The researcher's own summary is short and points elsewhere for detail:

Text
#For full report and the Takeover with Steps visit my blog :
>██████

The report body reads:

Text
Hi ,
 I believe that `exchangemarketplace.com` is belong to shopify it was vulnerable to Subdomain Takeover
so I takeover it to my shopify store

>`Poc :` goto
blog.exchangemarketplace.com

#`Suggested fix :`
clear your subdomain dns

The proof of concept is the hostname itself: the report says to visit blog.exchangemarketplace.com. The suggested fix is to clear the subdomain's DNS record. The impact section states only "Subdomain Takeover".

The report was rated low severity and disclosed on 1 October 2018. No bounty amount is given.

Root cause

The likely root cause is a dangling DNS record: a record for blog.exchangemarketplace.com still pointed at Shopify, while no Shopify store had claimed that hostname. The program says the domain had not been claimed and that the researcher was able to add it to his own store. The DNS record still pointed at Shopify while the domain was unclaimed.

Impact

Here the impact was minimal, and the program says why: the hostname was unused and the plan to use it had been dropped. In the general case, whoever controls such a hostname controls the content served on it. That content is served under the organisation's domain, so it inherits the trust that domain carries: links, cookies scoped to the parent domain, and any allowlists or redirect logic that treat the domain as trusted. The report does not describe any of these consequences for this target, and none should be assumed.

How this kind of bug works

Subdomain takeover happens when a DNS record for a name under your domain points at a third-party service, and the resource on that service that the record was meant to reach no longer exists or was never created. The third party still answers for the hostname, but it has no owner for it. Many providers then let any customer claim the name, because from their point of view it is simply an unconfigured custom domain.

Typical sources are cloud storage buckets, static site hosts, platform-as-a-service apps, CDNs, marketing and helpdesk platforms, and storefront hosts. The record survives because DNS is managed separately from the service: someone deletes the app or the bucket, or abandons a project, and the CNAME or A record is left behind.

The danger is not the third-party page itself but the name it is served under. Anything that trusts *.example.com now trusts an attacker's content. That includes cookies set on the parent domain, cross-origin policies that allow the subdomain, OAuth redirect URIs, password reset links, and content injection into pages that embed the subdomain.

Defences are mostly operational: keep an inventory of DNS records and the services they point at, remove records when a service is decommissioned, and prefer providers that require domain verification before a hostname can be attached. Some providers reserve names or refuse claims without a verification token in DNS or HTTP, which closes the gap.

How to test for it

  1. Enumerate subdomains with certificate transparency logs, passive DNS sources and brute force, then resolve each name and record the CNAME target or the A record's owning service.
  2. Fingerprint the service behind each record: the response body, error page, headers and TLS certificate often name the provider.
  3. Look for the provider's "unclaimed" signal: a specific 404 page, a message such as "no such app", "repository not found", or a bucket-not-found error served with the provider's branding.
  4. Confirm by attempting to claim the name on the provider with a free or trial account, adding the hostname as a custom domain. A successful claim that starts serving your content on the target hostname is the proof.
  5. Stop at the minimum: serve a harmless marker page, do not collect traffic or cookies, and remove the claim once the report is acknowledged.

Common false positives: a hostname that resolves but returns the provider's generic landing page while the name is in fact reserved; a wildcard DNS record that answers for every name but is not claimable; a record pointing at a service that still has an active owner; and a 404 from the origin server rather than the third party. Check who actually answers before claiming a takeover.

How it is fixed

Remove the dangling DNS record, or repoint it at a resource the organisation controls. If the service is still wanted, recreate the resource and claim the hostname, then verify it. Add the hostname to monitoring so that a future decommissioning triggers a DNS cleanup, and require domain verification at the provider where it is offered.

Hunting notes

These bugs cluster around abandoned projects: old blogs, campaign microsites, staging environments, documentation portals and event pages. Recon signals include CNAMEs to hosting and storefront platforms, responses whose bodies mention a provider's error page, and certificates issued for the hostname by the provider rather than the organisation. Comparing current DNS against historical passive DNS often reveals records left behind after a migration.

To get a report accepted, show the claim working end to end: the DNS record, the provider's unclaimed response, and your marker content served at the target hostname. Explain what the hostname could reach, such as cookies scoped to the parent domain or trusted redirect targets, but do not overstate it. If the name was unused, say so, as the program here did; a clear, honest impact statement is more persuasive than an inflated one.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

A company called Shopify runs a service that lets anyone build an online shop. When you set up a shop there, you can attach your own web address to it, for example blog.example.com, so that visitors reach your shop through that name instead of a generic Shopify address.

For that to work, the owner of the address has to change a DNS record. DNS is the internet's address book: it translates a name people type, like blog.exchangemarketplace.com, into the location of the server that should answer. A DNS record is one line in that address book saying "this name points there".

The researcher, m7mdharoun, noticed that blog.exchangemarketplace.com had a DNS record pointing at Shopify, but no Shopify shop had claimed that name. In other words, the address book said "ask Shopify", but Shopify had no customer registered for that address. Because Shopify lets a customer attach a custom address to their shop, the researcher simply added blog.exchangemarketplace.com to his own shop. The researcher added blog.exchangemarketplace.com to his own shop.

This is called a subdomain takeover. A subdomain is a name that sits under a main domain: exchangemarketplace.com is the main domain, and blog.exchangemarketplace.com is a subdomain of it. A takeover means someone else gains control of what is served at that name.

The program's own summary confirms the story: the hostname had been configured with a DNS record pointing at Shopify, but the domain had not been claimed, which allowed the researcher to add it to his own store. The program also notes that the domain had not been used and that plans to use it had been abandoned, so the security impact was minimal. In plain terms: the company had once intended to use the domain, gave up on the idea, and the DNS record still pointed at Shopify.

The researcher's summary is short and sends readers elsewhere for the detail:

Text
#For full report and the Takeover with Steps visit my blog :
>██████

The report body itself reads:

Text
Hi ,
 I believe that `exchangemarketplace.com` is belong to shopify it was vulnerable to Subdomain Takeover
so I takeover it to my shopify store

>`Poc :` goto
blog.exchangemarketplace.com

#`Suggested fix :`
clear your subdomain dns

Line by line: the opening states the belief that exchangemarketplace.com belongs to Shopify and was vulnerable to subdomain takeover, and that the researcher took it over to his own Shopify store. "PoC" stands for proof of concept, the smallest demonstration that a bug is real; here it is simply the instruction to visit blog.exchangemarketplace.com. The suggested fix is to clear the subdomain's DNS record, that is, to delete the leftover line in the address book.

The proof is minimal: the report says to open the address. The impact section says only "Subdomain Takeover". The report was rated low severity and disclosed on 1 October 2018. No bounty amount is given.

In general, how this kind of bug works

A subdomain takeover happens when a DNS record for a name under your domain points at a third-party service, and the thing on that service the record was meant to reach no longer exists or was never created. The third party still answers for the name, but nobody owns it there. Many providers then let any customer claim the name, because from their side it is just an unconfigured custom address.

A useful comparison is a forwarding address. You tell the post office to send mail for your flat to a warehouse. Later you stop renting space in the warehouse, but you never cancel the forwarding. Anyone who rents that space now receives your mail.

Typical sources are cloud storage buckets, static site hosts, platform-as-a-service apps, content delivery networks, marketing and helpdesk platforms, and storefront hosts. The record survives because DNS is managed separately from the service: someone deletes the app or the bucket, or abandons a project, and the record is left behind.

The danger is not the third-party page itself but the name it is served under. Anything that trusts *.example.com now trusts an attacker's content. That includes cookies set on the parent domain (small pieces of data a site stores in your browser, which the browser sends back on later visits), cross-origin policies that allow the subdomain, login redirect addresses, password reset links, and content injected into pages that embed the subdomain. For this particular target the report describes none of these consequences, and none should be assumed.

Defences are mostly operational: keep an inventory of DNS records and the services they point at, remove records when a service is decommissioned, and prefer providers that require domain verification before a name can be attached. Some providers reserve names or refuse claims without a verification token in DNS or HTTP, which closes the gap.

How to test for it

  1. Enumerate subdomains with certificate transparency logs (public records of certificates issued for names), passive DNS sources and brute force, then resolve each name and record where it points.
  2. Fingerprint the service behind each record: the response body, error page, headers and TLS certificate often name the provider.
  3. Look for the provider's "unclaimed" signal: a specific 404 page, a message such as "no such app", "repository not found", or a bucket-not-found error served with the provider's branding.
  4. Confirm by attempting to claim the name on the provider with a free or trial account, adding the hostname as a custom domain. A successful claim that starts serving your content on the target hostname is the proof.
  5. Stop at the minimum: serve a harmless marker page, do not collect traffic or cookies, and remove the claim once the report is acknowledged.

Common false positives: a hostname that resolves but returns the provider's generic landing page while the name is in fact reserved; a wildcard DNS record that answers for every name but is not claimable; a record pointing at a service that still has an active owner; and a 404 from the origin server rather than the third party. Check who actually answers before claiming a takeover.

How it is fixed

Remove the dangling DNS record, or repoint it at a resource the organisation controls. If the service is still wanted, recreate the resource and claim the hostname, then verify it. Add the hostname to monitoring so that a future decommissioning triggers a DNS cleanup, and require domain verification at the provider where it is offered.

Hunting notes

These bugs cluster around abandoned projects: old blogs, campaign microsites, staging environments, documentation portals and event pages. Recon signals include records pointing at hosting and storefront platforms, responses whose bodies mention a provider's error page, and certificates issued for the hostname by the provider rather than the organisation. Comparing current DNS against historical passive DNS often reveals records left behind after a migration.

To get a report accepted, show the claim working end to end: the DNS record, the provider's unclaimed response, and your marker content served at the target hostname. Explain what the hostname could reach, such as cookies scoped to the parent domain or trusted redirect targets, but do not overstate it. If the name was unused, say so, as the program here did; a clear, honest impact statement is more persuasive than an inflated one.

Glossary

  • DNS: the internet's address book, translating names into the location of the server that answers for them.
  • DNS record: one entry in that address book, saying which server a name points at.
  • Domain: the main name a site is known by, such as exchangemarketplace.com.
  • Subdomain: a name sitting under a main domain, such as blog.exchangemarketplace.com.
  • Subdomain takeover: gaining control of what is served at a subdomain because its DNS record points at an unclaimed third-party resource.
  • Dangling DNS record: a record left pointing at a service resource that no longer exists or was never created.
  • Hostname: a specific name on the internet, such as blog.exchangemarketplace.com.
  • Shopify: a platform for building and running online shops, which lets customers attach their own domain names.
  • Custom domain: your own web address attached to a hosted service instead of the service's generic address.
  • Claiming a domain: registering a name with a provider so that it serves your content.
  • PoC (proof of concept): the smallest demonstration that a bug is real.
  • Severity: a rating of how much harm a bug could cause, here low.
  • Impact: the practical consequence of a bug for the affected organisation.
  • Cookie: a small piece of data a site stores in your browser and the browser sends back on later visits.
  • Certificate transparency logs: public records of security certificates issued for names, useful for finding subdomains.
  • Passive DNS: historical records of which names resolved to which servers.
  • Fingerprint: identifying which service runs behind a name from its responses, headers or certificate.
  • False positive: a finding that looks like a bug but is not one.
  • Wildcard DNS record: a record that answers for every possible name under a domain.
  • Verification token: a value a provider asks you to place in DNS or on a page to prove you control a name.

More by m7mdharoun

View all

9 more disclosed reports, best first.

More from Shopify

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.