Skip to content
Subdomain takeover Disclosed report Beginner

Subdomain Takeover of brand.zen.ly

A subdomain of the target pointed via CNAME to an external service whose page had been removed, so anyone could register that service and claim the subdomain. The reporter registered at the service and took control of the subdomain, which could be used for phishing, malware hosting or cookie theft.

megaman_ Follow with egyptionking

Originally disclosed on HackerOne

Bounty$750 Medium View original
  • Triaged in 14 hours
  • Fixed in 3 days
  • Paid in 15 hours
  • Disclosed after 9 days

Hello Gents,

Background:

  • Subdomain takeover vulnerabilities occur when a subdomain (subdomain.example.com) is pointing to a service (e.g. GitHub pages, Heroku, etc.) that has been removed or deleted. This allows an attacker to set up a page on the service that was being used and point their page to that subdomain. For example, if subdomain.example.com was pointing to a GitHub page and the user decided to delete their GitHub page, an attacker can now create a GitHub page, add a CNAME file containing subdomain.example.com, and claim subdomain.example.com.

Summary:

  • I just went to brand.zen.ly and it shows an error "Not Found", also I've checked the CNAME is pointing to brandpad.io, which means it can be added to any account.
  • This is pretty serious security issue in some context, so please act as fast as possible.
  • I was able to takeover brand.zen.ly by registering at Brandpad.

Vulnerable URL:

Proof of Concept:

└─$ dig brand.zen.ly
brand.zen.ly.		255	IN	CNAME	brandpad.io.

Recommended Fix:

  • Check your DNS-configuration for subdomains pointing to services not in use.
  • Set up your external service so it fully listens to your wildcard DNS.

Impact

  • Subdomain takeover is abused for several purposes:
  1. Malware distribution.
  2. Phishing / Spear phishing.
  3. XSS and steal cookies.
  4. Bypass domain security.
  5. Legitimate mail sending and receiving on behalf of Datadog subdomain.

Thanks and have a nice day!

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Zenly ran a marketing or brand-related subdomain, brand.zen.ly, which was not served by Zenly's own infrastructure. Instead, the DNS record for that hostname was a CNAME pointing at a third-party service, brandpad.io. Brandpad is a hosted product: a customer signs up, gets an account, and the service serves their content.

The bug class here is subdomain takeover. As the report's own background section puts it:

  • Subdomain takeover vulnerabilities occur when a subdomain (subdomain.example.com) is pointing to a service (e.g. GitHub pages, Heroku, etc.) that has been removed or deleted. This allows an attacker to set up a page on the service that was being used and point their page to that subdomain. For example, if subdomain.example.com was pointing to a GitHub page and the user decided to delete their GitHub page, an attacker can now create a GitHub page, add a CNAME file containing subdomain.example.com, and claim subdomain.example.com.

The vulnerable URL named in the report is:

Text
https://brand.zen.ly

Setup

The researcher needed no special access to Zenly. The only precondition was a free account on the third-party service, Brandpad: the report states that the takeover was achieved "by registering at Brandpad". The tooling shown is a single DNS lookup with dig. No credentials, roles or versions are given.

Finding it

The researcher visited brand.zen.ly and got an error page reading "Not Found". That alone is a weak signal, but the DNS record explained it: the hostname was a CNAME to brandpad.io, and the report's reading is that the target on that service was no longer claimed, so the name "can be added to any account". In other words, the DNS delegation still existed while the resource it pointed at had gone away, which is exactly the dangling-pointer condition described in the background section.

The researcher judged this serious enough to ask for fast action: "This is pretty serious security issue in some context, so please act as fast as possible."

Exploitation

Step 1: confirm the dangling CNAME

The researcher resolved the hostname:

Bash
└─$ dig brand.zen.ly
brand.zen.ly.		255	IN	CNAME	brandpad.io.

The output shows a single CNAME record: brand.zen.ly is an alias for brandpad.io, with a TTL of 255 seconds. There is no A record of Zenly's own in the answer, so every visitor to the subdomain is handed off to whatever Brandpad serves for that name.

Step 2: observe the error

Visiting https://brand.zen.ly returned "Not Found". The report presents this as the visible symptom of the unclaimed name on the third-party service, and asks the reader to check it directly: "Please visit: https://brand.zen.ly."

Step 3: claim the name on Brandpad

The researcher registered an account at Brandpad and was able to take over brand.zen.ly, which the report describes as having "takeover brand.zen.ly". Because the DNS CNAME still pointed at brandpad.io, content served from the newly created account appeared under Zenly's own hostname. The report does not include the Brandpad configuration screens, the exact field used, or a captured HTTP response from the claimed page.

Root cause

A DNS record for a Zenly-owned hostname was left pointing at a third-party service after the corresponding resource on that service stopped being controlled by Zenly. The report's reading is that the name "can be added to any account", so once it was free, anyone who signed up could claim it. The report frames the underlying mistake as a DNS hygiene problem: subdomains pointing to services no longer in use.

Why the existing setup did not prevent it is only implied: the CNAME was never removed when the Brandpad side was abandoned, and nothing on the Brandpad side reserved the name for Zenly. The report does not describe any verification step by Brandpad that would have blocked the claim.

Impact

The report lists the purposes for which subdomain takeover is abused:

  1. Malware distribution.
  2. Phishing / Spear phishing.
  3. XSS and steal cookies.
  4. Bypass domain security.
  5. Legitimate mail sending and receiving on behalf of Datadog subdomain.

The report lists these as purposes for which subdomain takeover is abused, without demonstrating them on this hostname. The fifth item is copied from a generic list and names Datadog rather than Zenly; the report gives no evidence of mail-related impact for this hostname. The report also hedges the severity itself: "This is pretty serious security issue in some context".

Fix

The report gives two recommendations, neither of which is described as already applied:

  • Check your DNS-configuration for subdomains pointing to services not in use.
  • Set up your external service so it fully listens to your wildcard DNS.

The first is the direct remedy: remove or repoint the CNAME for brand.zen.ly so it no longer dangles at a claimable name. The second is preventive: make the external service answer for the whole wildcard so that an unclaimed label cannot be picked up by a stranger.

Variants to test

  • Enumerate CNAMEs across the estate and resolve each target. A positive result is a CNAME whose target returns a service-specific "not found" or "no such app" page, as brand.zen.ly did.
  • Check for CNAMEs pointing at hosted site builders and page services, the category Brandpad belongs to. A positive result is a target name that can be registered on the service and then serves content under the victim hostname.
  • Re-test hostnames that once resolved but now error. A positive result is the same pattern: DNS still delegated, resource gone.
  • Look for wildcard DNS combined with per-tenant hostname routing. A positive result is a hostname the service will accept from a new account without any proof of ownership.

Hunting notes

This bug hides in DNS, not in the application, so the signal comes from resolution rather than from crawling. The pattern to look for during recon is a hostname on the target's domain whose CNAME points at a third-party platform, combined with an error page from that platform instead of target content. The dig output above is the whole evidence chain: one CNAME, one error page, one registration on the third-party service.

What made the report convincing was the demonstration that the name could actually be claimed by an outsider, not just that the page was broken. The researcher registered at Brandpad and took over the hostname, and the report asks readers to visit the live URL to check it. The report does not show the claimed page's contents or any further exploitation beyond the takeover itself.

A practical caution follows from the report's own wording: the impact list is generic, and one entry refers to a different company's subdomain. When writing up this class of bug, tie each claimed impact to what was actually demonstrated on the affected hostname.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

Zenly is a company with a website at zen.ly. Like most companies, it uses subdomains: names that sit in front of the main domain, such as brand.zen.ly. A subdomain is a bit like a separate door into the same building. Visitors who go to brand.zen.ly expect to reach something Zenly controls.

In this case, brand.zen.ly was not served by Zenly's own computers. Instead, Zenly had set up a forwarding instruction in the internet's address book (DNS) that said: anyone looking for brand.zen.ly, please go to brandpad.io. Brandpad is a hosted service where people sign up for an account and the service publishes their pages.

The problem was that the name on Brandpad was not claimed by Zenly, but the forwarding instruction was still there. So the address still pointed at Brandpad, and Brandpad had nothing to show for that name. Anyone who signed up at Brandpad could claim that name and start serving their own content under Zenly's subdomain. That is what the researcher did. This class of bug is called a subdomain takeover.

Background: what a subdomain takeover is

The report opens with a definition, quoted here exactly:

  • Subdomain takeover vulnerabilities occur when a subdomain (subdomain.example.com) is pointing to a service (e.g. GitHub pages, Heroku, etc.) that has been removed or deleted. This allows an attacker to set up a page on the service that was being used and point their page to that subdomain. For example, if subdomain.example.com was pointing to a GitHub page and the user decided to delete their GitHub page, an attacker can now create a GitHub page, add a CNAME file containing subdomain.example.com, and claim subdomain.example.com.

A few terms in that paragraph need unpacking for a newcomer:

  • DNS (Domain Name System) is the internet's phone book. You type a name like brand.zen.ly, and DNS tells your browser which computer to talk to. Without DNS you would have to remember numeric addresses for every site.
  • A CNAME record is one kind of DNS entry. It means "this name is just another name for that other name". It is like a mail-forwarding sticker on a letterbox: post sent to this address is redirected to another address. The CNAME does not contain an address itself; it points at another name, and that name is then looked up in turn.
  • A third-party service is a company that hosts things for you, so you do not have to run the computers yourself. GitHub Pages and Heroku are examples in the quote; Brandpad is the one used here.

The everyday comparison: imagine you rent a PO box, and you put a sticker on your front door saying "all post goes to PO box 123". Then you stop paying for PO box 123. The sticker is still on your door. Anyone who now rents PO box 123 receives all your post. The sticker is the CNAME; the PO box is the third-party account; the person who rents the box is the attacker.

The vulnerable URL

The report names one address as affected:

Text
https://brand.zen.ly

https:// is the secure version of the web protocol, the one your browser uses when the padlock is shown. brand.zen.ly is the hostname. Nothing else in the report is claimed to be affected.

Setup: what the researcher needed

The researcher did not need any special access to Zenly. No password, no employee account, no internal tool. The only thing needed was a free account on Brandpad, the third-party service. The report says the takeover was achieved "by registering at Brandpad".

The only tool shown in the report is dig, a command-line program that asks DNS a question and prints the answer. If you have never used a command line: it is a text window where you type commands instead of clicking. dig is the DNS equivalent of typing a name into a phone book and reading back the entry.

Finding it

Step 1: notice the broken page

The researcher visited brand.zen.ly in a browser and got an error page that said "Not Found". On its own, a broken page is a weak signal: plenty of pages are simply broken for boring reasons. What made it interesting was the next step.

Step 2: look up the DNS record

The researcher asked DNS where brand.zen.ly actually goes. The answer showed it was a CNAME pointing at brandpad.io. That means the subdomain was not hosted by Zenly at all; it was handed off to Brandpad. Combined with the "Not Found" page, the picture was: the forwarding instruction still exists, but the thing it forwards to is no longer claimed by Zenly. The report's reading is that the name "can be added to any account".

The researcher treated this as urgent: "This is pretty serious security issue in some context, so please act as fast as possible."

Exploitation

Step 1: confirm the dangling CNAME

The researcher ran this command:

Bash
└─$ dig brand.zen.ly
brand.zen.ly.		255	IN	CNAME	brandpad.io.

Line by line:

  • └─$ dig brand.zen.ly is the prompt and the command. dig is the DNS lookup tool; brand.zen.ly is the name being asked about. The └─$ part is just the shell prompt shown in the terminal, not something you type.
  • brand.zen.ly. is the name that was queried. The trailing dot means "this is the full name, no more suffixes to add".
  • 255 is the TTL, or time to live, in seconds. It tells other DNS servers how long they may remember this answer before asking again. Here it is 255 seconds, a little over four minutes.
  • IN stands for "Internet", the class of record. You will see it on almost every DNS answer and can ignore it.
  • CNAME is the record type: an alias, as explained above.
  • brandpad.io. is the target of the alias. So the whole line reads: "brand.zen.ly is another name for brandpad.io, and you may remember that for 255 seconds."

What matters is what is not in the answer: there is no address record of Zenly's own. Every visitor to the subdomain is handed off to whatever Brandpad serves for that name. That is the dangling pointer: the alias exists, but the thing it points at is not controlled by Zenly any more.

Step 2: observe the error

The researcher visited https://brand.zen.ly and got "Not Found". The report presents this as the visible symptom of the unclaimed name on Brandpad, and invites the reader to check it directly: "Please visit: https://brand.zen.ly." Seeing the error yourself is the quickest way to confirm the symptom without any tools.

Step 3: claim the name on Brandpad

The researcher registered an account at Brandpad and was able to take over brand.zen.ly. The report describes this as having "takeover brand.zen.ly". Because the DNS CNAME still pointed at brandpad.io, content served from the newly created account appeared under Zenly's own hostname.

If nobody has, and the service lets a new signup claim it, then the new signup gets the traffic. The report does not include the Brandpad configuration screens, the exact field used, or a captured response from the claimed page.

Root cause

A DNS record for a Zenly-owned hostname was left pointing at a third-party service after the corresponding resource on that service stopped being controlled by Zenly. The report's reading is that the name "can be added to any account", so once it was free, anyone who signed up could claim it. The report frames the underlying mistake as a DNS hygiene problem: subdomains pointing to services no longer in use.

Why the existing setup did not prevent it is only implied: the CNAME was never removed when the Brandpad side was abandoned, and nothing on the Brandpad side reserved the name for Zenly. The report does not describe any verification step by Brandpad that would have blocked the claim.

Impact

The report lists the purposes for which subdomain takeover is abused:

  1. Malware distribution.
  2. Phishing / Spear phishing.
  3. XSS and steal cookies.
  4. Bypass domain security.
  5. Legitimate mail sending and receiving on behalf of Datadog subdomain.

Some of these terms need explaining:

  • Malware distribution means hosting files that harm visitors, such as fake installers. Because the download comes from a name people trust, more people click it.
  • Phishing is a fake page that asks for a password or card number and sends it to the attacker. Spear phishing is the same idea aimed at a specific person or team, often with details tailored to them.
  • XSS (cross-site scripting) is when an attacker gets their own code to run inside a page on someone else's site. Your browser then treats that code as part of the trusted site. Cookies are small pieces of data a site stores in your browser, often used to keep you logged in. If attacker code runs on the site's own domain, it may be able to read cookies belonging to that domain, which is what "steal cookies" refers to.
  • Bypass domain security means getting past filters that trust a domain. Many organisations allow traffic to domains they consider safe; a page on a trusted subdomain can slip through.

The report lists these as purposes for which subdomain takeover is abused, without demonstrating them on this hostname. The fifth item is copied from a generic list and names Datadog rather than Zenly; the report gives no evidence of mail-related impact for this hostname. The report also hedges the severity itself: "This is pretty serious security issue in some context".

Fix

The report gives two recommendations, neither of which is described as already applied:

  • Check your DNS-configuration for subdomains pointing to services not in use.
  • Set up your external service so it fully listens to your wildcard DNS.

The first is the direct remedy: remove or repoint the CNAME for brand.zen.ly so it no longer dangles at a claimable name. The second is preventive: make the external service answer for the whole wildcard so that an unclaimed label cannot be picked up by a stranger. A wildcard DNS entry is one that answers for any name under a pattern, for example anything ending in a given suffix, rather than one exact name.

Variants to test

If you want to look for this class of bug yourself, the report's pattern suggests these checks:

  • Enumerate CNAMEs across the estate and resolve each target. A positive result is a CNAME whose target returns a service-specific "not found" or "no such app" page, as brand.zen.ly did.
  • Check for CNAMEs pointing at hosted site builders and page services, the category Brandpad belongs to. A positive result is a target name that can be registered on the service and then serves content under the victim hostname.
  • Re-test hostnames that once resolved but now error. A positive result is the same pattern: DNS still delegated, resource gone.
  • Look for wildcard DNS combined with per-tenant hostname routing. A positive result is a hostname the service will accept from a new account without any proof of ownership.

Hunting notes

This bug hides in DNS, not in the application, so the signal comes from resolution rather than from crawling. The pattern to look for during recon is a hostname on the target's domain whose CNAME points at a third-party platform, combined with an error page from that platform instead of target content. The dig output above is the whole evidence chain: one CNAME, one error page, one registration on the third-party service.

What made the report convincing was the demonstration that the name could actually be claimed by an outsider, not just that the page was broken. The researcher registered at Brandpad and took over the hostname, and the report asks readers to visit the live URL to check it. The report does not show the claimed page's contents or any further exploitation beyond the takeover itself.

A practical caution follows from the report's own wording: the impact list is generic, and one entry refers to a different company's subdomain. When writing up this class of bug, tie each claimed impact to what was actually demonstrated on the affected hostname.

Glossary

  • DNS (Domain Name System): the internet's phone book; it translates names like brand.zen.ly into the information a browser needs to reach the right server.
  • Subdomain: a name that sits in front of a main domain, such as brand in brand.zen.ly.
  • CNAME record: a DNS entry that says one name is an alias for another name; it forwards lookups rather than giving an address directly.
  • TTL (time to live): how long, in seconds, a DNS answer may be remembered before it is looked up again.
  • A record: a DNS entry that gives an actual numeric address for a name.
  • Third-party service: an outside company that hosts content or runs a feature for you, so you do not have to operate it yourself.
  • Subdomain takeover: a bug where a subdomain points at a third-party service whose resource has gone, letting anyone who signs up there claim the name and serve content under the victim's domain.
  • Dangling CNAME: a CNAME whose target no longer belongs to the domain owner, so the name is free to be claimed by someone else.
  • dig: a command-line tool that asks DNS a question and prints the answer.
  • Hostname: the name part of a web address, such as brand.zen.ly.
  • HTTPS: the secure version of the web protocol, used when your browser shows a padlock.
  • Phishing: a fake page or message that tricks someone into handing over credentials or payment details.
  • Spear phishing: phishing aimed at a specific person or team, often with tailored details.
  • Malware: software designed to harm or take over a device.
  • XSS (cross-site scripting): getting attacker code to run inside a page on someone else's site, so the browser treats it as trusted.
  • Cookie: a small piece of data a site stores in your browser, often used to keep you logged in.
  • Wildcard DNS: a DNS entry that answers for any name matching a pattern, rather than one exact name.
  • Recon: the information-gathering phase of security testing, before any exploitation.
  • Tenant: one customer's separate space inside a shared hosted service.

More by megaman_

View all

8 more disclosed reports, best first.

More from Zenly

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.