I Took Over the Infrastructure. The CDN Still Said No.
A subdomain's DNS record pointed to a deprovisioned tenant on a third-party SaaS platform, which the researcher could register and control. However, a CDN in front of the subdomain blocked traffic to the new tenant because it required a DNS verification record the researcher could not create, so the takeover was not exploitable.
Published on medium.com
Bug Bounty
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.
Context
A subdomain on a large enterprise's domain had a CNAME record pointing to a tenant on a third-party SaaS platform, described in the report as a partner-portal provider. Archive data confirmed that the subdomain had once been a live partner portal for the company. The original tenant on the SaaS platform had since been deprovisioned, but the DNS record was never cleaned up, so the platform identifier the CNAME pointed to was sitting there unclaimed and free for anyone to register on the platform.
That is the classic shape of a subdomain takeover candidate: a dangling DNS record pointing at a resource that no longer exists but whose name can be re-registered by a third party.
Setup
The precondition was the dangling CNAME and the ability to register the corresponding identifier on the third-party SaaS platform, which the report says was unclaimed once the original tenant was deprovisioned. The proof of concept was a page hosted on the newly claimed tenant, and a screenshot of it was taken as evidence.
Finding it
The researcher identified the subdomain, followed its CNAME to the SaaS platform tenant, and used archive data to establish that the subdomain had previously served as the company's partner portal. The tenant behind the CNAME had been deprovisioned, but the DNS record remained in place, leaving the platform identifier unclaimed.
Exploitation
Step 1: Register the dangling identifier
The researcher registered the exact third-party platform identifier that the company's DNS had been pointing to for years. Registration gave full administrative access to the tenant, including branding tools and homepage templates.
Step 2: Customise the tenant and host a proof of concept
The researcher customised the instance and hosted a PoC page on it, exactly as the triager had requested. A screenshot was captured to prove the claimed tenant was live and under the researcher's control.

The screenshot is the evidence that the claimed tenant was live and customised by the researcher.
Step 3: Observe what the real subdomain returns
The actual subdomain still returned a CDN-level DNS resolution error the entire time. A CDN sat in front of the domain, and it would not complete the handshake to a newly claimed backend tenant without a DNS verification record on the company's own zone. The researcher does not control that zone, so the record does not exist, so the CDN never bridges the connection.
No request or response is shown in the report for this step; the observable result was the CDN-level DNS resolution error on the real subdomain throughout.
Root cause
The dangling CNAME is the underlying hygiene failure: the company deprovisioned the SaaS tenant but left the DNS record pointing at the identifier. That is what allowed the identifier to be re-registered by anyone.
What stopped the takeover from becoming a live vulnerability is a second, independent control. The CDN in front of the domain gates the connection to a backend tenant on a DNS verification record in the company's own zone. Because the researcher does not control that zone, the verification record does not exist, and the CDN refuses to bridge traffic to the claimed tenant.
The report draws a distinction that is easy to conflate. The CNAME pointing at the identifier proves the company's DNS used to depend on it. It does not mean the identifier is still part of the company's trust boundary once the original tenant is gone. Once the platform frees the identifier, it is just an available slot, like an unclaimed username, fully decoupled from anything the company controls. Claiming it makes the claimant the owner of a generic tenant that happens to share a name with something the company once used; it does not put the claimant inside the company's infrastructure.
Impact
The finding closed as Not Applicable. The researcher had full administrative control over the claimed tenant, but no real visitor to the real subdomain ever landed on content the researcher controlled, because the CDN blocked that path categorically, independent of anything happening on the SaaS platform side. The report is explicit that what would constitute the vulnerability is real traffic, an actual visitor to the real subdomain landing on attacker-controlled content, and that step never happened.
Fix
The report does not describe a remediation applied by the company. The implied fix is DNS hygiene: remove the CNAME record once the SaaS tenant it points to is deprovisioned, so the identifier is not left dangling. The CDN's DNS-level verification requirement is what prevented exploitation in this case, and the report treats it as an independent security boundary rather than a substitute for cleaning up the record.
Variants to test
- Dangling CNAME with no proxy in front. Look for a subdomain whose CNAME points at a deprovisioned tenant on a SaaS platform, with no CDN or reverse proxy in front.
- Dangling CNAME behind a CDN that does not gate on DNS verification. Same setup, but check whether the CDN in front requires a verification record in the target's own zone before bridging to a newly claimed backend.
- Dangling CNAME behind a CDN that does gate on DNS verification. This is the case in the report. This is the case in the report: the CDN required a DNS verification record in the company's zone, which the researcher did not control, so the real subdomain returned a resolution error.
- Claimed tenant with administrative access but no traffic path. Before reporting, verify whether real traffic reaches the claimed backend.
What happened, in plain words
A large company once ran a partner portal on a subdomain of its own domain. A subdomain is a name that sits in front of the main domain, like partners.example.com in front of example.com. That portal was not hosted on the company's own servers. Instead, the company pointed the subdomain at a rented service run by another company, a SaaS platform. SaaS stands for Software as a Service: software you use over the internet instead of installing it on your own machines. The report calls this particular platform a partner-portal provider, meaning a service built for hosting partner portals.
The pointer from the company's subdomain to that rented service is a DNS record of a specific type called a CNAME. DNS is the internet's address book: it turns names people type into the addresses computers use. A CNAME is an entry that says "this name is really another name, go look that one up instead". So the company's DNS said, in effect, "for this subdomain, ask the SaaS platform".
Later the company stopped using the rented service and the account on the platform, called a tenant, was shut down. A tenant is one customer's own separate space on a shared platform, like one person's account on a website. But the DNS record was never removed. It kept pointing at a name on the platform that no longer belonged to anyone. On that platform, such a name could be registered by anyone who asked for it, the same way an unused username can be taken by a new person.
The researcher found this leftover pointer, registered the free name on the platform, and got full administrative control of the tenant: the branding tools, the homepage templates, everything. They built a proof-of-concept page on it. A proof of concept, or PoC, is a small demonstration that shows a problem is real rather than theoretical. They took a screenshot as evidence.
Then came the twist. The real subdomain, the one a normal visitor would type, never showed the researcher's page. It returned an error the whole time, an error produced by a CDN sitting in front of the domain. A CDN, or content delivery network, is a worldwide layer of servers that sits between visitors and a website, caching content and filtering traffic. This CDN refused to pass traffic through to the newly claimed tenant unless a special verification record existed in the company's own DNS zone. A DNS zone is the set of DNS records one organisation controls for its domain. The researcher did not control that zone, so the record did not exist, so the CDN never made the connection.
The finding was closed as Not Applicable. The researcher had won the backend, the rented space on the platform, but lost the actual attack path, the route by which a real visitor would reach attacker-controlled content. The lesson is that a CDN, a WAF (web application firewall, a filter for web traffic) or a reverse proxy (a server that forwards requests to servers behind it) can act as its own independent security boundary. It does not care who owns the backend; it only cares whether you can prove control of the DNS in front of it.
The finding
A subdomain on a large enterprise's domain had a CNAME record pointing to a tenant on a third-party SaaS platform, described in the report as a partner-portal provider. Archive data confirmed that the subdomain had once been a live partner portal for the company. Archive data here means saved copies of old web pages, such as the Internet Archive, which let you see what a site looked like in the past.
The original tenant on the SaaS platform had since been deprovisioned. Deprovisioned means switched off and removed as an active account. But the DNS record was never cleaned up, so the platform identifier the CNAME pointed to was sitting there unclaimed and free for anyone to register on the platform. An identifier here is simply the name of the tenant on the platform, the string that identifies which customer space is meant.
That is the classic shape of a subdomain takeover candidate: a dangling DNS record pointing at a resource that no longer exists but whose name can be re-registered by a third party. A subdomain takeover is the class of bug where someone else can claim the thing your name points at and then serve their own content under your name. "Dangling" means the record points at something that is no longer there, like a house key that still opens a door to a flat nobody rents any more.
Setup
The researcher needed no account on the target itself. The precondition was simply the dangling CNAME and the ability to register the corresponding identifier on the third-party SaaS platform, which the report says was open to anyone once the original tenant was deprovisioned. The proof of concept was a page hosted on the newly claimed tenant, and a screenshot of it was taken as evidence.
Why this matters for a beginner: the researcher never logged into the company's systems. They only registered the unclaimed identifier on the third-party platform. That is what makes this kind of bug interesting: the weakness lives in a record the company forgot, not in a password or a login form.
Finding it
The researcher identified the subdomain, followed its CNAME to the SaaS platform tenant, and used archive data to establish that the subdomain had previously served as the company's partner portal. The tenant behind the CNAME had been deprovisioned, but the DNS record remained in place, leaving the platform identifier unclaimed.
In everyday terms: they found a name that pointed at a rented space, checked old snapshots of the web to see what that space used to be, and confirmed the rented space was now empty but still named in the company's address book.
Exploitation
Step 1: Register the dangling identifier
The researcher registered the exact third-party platform identifier that the company's DNS had been pointing to for years. Registration gave full administrative access to the tenant, including branding tools and homepage templates.
Why take this step: if the name is free, registering it is the cheapest possible test of whether the pointer is truly dangling.
Step 2: Customise the tenant and host a proof of concept
The researcher customised the instance and hosted a PoC page on it, exactly as the triager had requested. A triager is the person at a bug bounty programme who first reads a report and decides whether it is valid. A screenshot was captured to prove the claimed tenant was live and under the researcher's control.

The screenshot is the evidence that the claimed tenant was live and customised by the researcher.
Why take this step: a report that says "I could probably register this" is weak. A report that shows a live page with your own content on the claimed tenant is concrete evidence that the name was free and that you now own it.
Step 3: Observe what the real subdomain returns
The actual subdomain still returned a CDN-level DNS resolution error the entire time. A CDN sat in front of the domain, and it would not complete the handshake to a newly claimed backend tenant without a DNS verification record on the company's own zone. The researcher does not control that zone, so the record does not exist, so the CDN never bridges the connection.
A handshake here means the CDN checking with the backend and agreeing to pass traffic to it. A backend is the server or service that actually holds the content, as opposed to the front layer visitors talk to. A DNS verification record is a special entry in a domain's zone that proves the domain owner agrees to the connection, much like a signed permission slip.
No request or response is shown in the report for this step; the observable result was the CDN-level DNS resolution error on the real subdomain throughout.
Why this step matters: claiming the backend is only half the story. The question that decides whether there is a real vulnerability is what a normal visitor sees when they type the real subdomain. Here the answer was an error, not the researcher's page.
Root cause
The dangling CNAME is the underlying hygiene failure: the company deprovisioned the SaaS tenant but left the DNS record pointing at the identifier. That is what allowed the identifier to be re-registered by anyone. Hygiene here means basic housekeeping: removing things you no longer use.
What stopped the takeover from becoming a live vulnerability is a second, independent control. A control is any safeguard that limits what can happen. The CDN in front of the domain gates the connection to a backend tenant on a DNS verification record in the company's own zone. Because the researcher does not control that zone, the verification record does not exist, and the CDN refuses to bridge traffic to the claimed tenant.
The report draws a distinction that is easy to conflate. The CNAME pointing at the identifier proves the company's DNS used to depend on it. It does not mean the identifier is still part of the company's trust boundary once the original tenant is gone. A trust boundary is the line between what an organisation controls and what it does not. Once the platform frees the identifier, it is just an available slot, like an unclaimed username, fully decoupled from anything the company controls. Claiming it makes the claimant the owner of a generic tenant that happens to share a name with something the company once used; it does not put the claimant inside the company's infrastructure.
A comparison: imagine a company cancels its lease on a shop and moves out, but leaves the shop's name on its letterhead. Anyone can rent that shop and put their own sign above the door. But if the building's front gate is controlled by the landlord, who only opens it for tenants the company itself vouches for, then renting the shop gets you nothing: no customer ever walks in.
Impact
The finding closed as Not Applicable. The researcher had full administrative control over the claimed tenant, but no real visitor to the real subdomain ever landed on content the researcher controlled, because the CDN blocked that path categorically, independent of anything happening on the SaaS platform side. The report is explicit that what would constitute the vulnerability is real traffic, an actual visitor to the real subdomain landing on attacker-controlled content, and that step never happened.
Why this distinction matters to a programme: a takeover that nobody can reach does not let an attacker phish the company's users, steal cookies or serve malware under the company's name. A cookie is a small piece of data a site stores in your browser to remember you, and stealing one can let an attacker act as you. None of that was possible here because the traffic never arrived.
Fix
The report does not describe a remediation applied by the company. The implied fix is DNS hygiene: remove the CNAME record once the SaaS tenant it points to is deprovisioned, so the identifier is not left dangling. The CDN's DNS-level verification requirement is what prevented exploitation in this case, and the report treats it as an independent security boundary rather than a substitute for cleaning up the record.
In plain words: delete the pointer when you cancel the service. Do not rely on the CDN to save you, even though here it did.
Variants to test
- Dangling CNAME with no proxy in front. Look for a subdomain whose CNAME points at a deprovisioned tenant on a SaaS platform, with no CDN or reverse proxy in front.
- Dangling CNAME behind a CDN that does not gate on DNS verification. Same setup, but check whether the CDN in front requires a verification record in the target's own zone before bridging to a newly claimed backend.
- Dangling CNAME behind a CDN that does gate on DNS verification. This is the case in the report. This is the case in the report: the CDN required a DNS verification record in the company's zone, which the researcher did not control, so the real subdomain returned a resolution error.
- Claimed tenant with administrative access but no traffic path. Before reporting, verify whether real traffic reaches the claimed backend.
Takeaway for hunters
Before reporting a takeover, check what sits in front of the vulnerable subdomain. If it is proxied through a CDN, ask whether that CDN independently gates traffic on DNS-level verification you do not control, because if it does, "I claimed the backend" and "I control what real users see" are two different claims, and only the second one is the vulnerability that matters.
Glossary
- Backend: the server or service that actually holds a site's content, behind any front layer visitors talk to.
- CDN (content delivery network): a worldwide layer of servers placed in front of a website to cache content and filter traffic.
- CNAME: a DNS record that says one name is really another name, so the lookup should continue at that other name.
- Control (security control): any safeguard that limits what an attacker can do.
- Cookie: a small piece of data a website stores in your browser to remember you between visits.
- Deprovisioned: switched off and removed as an active account or service.
- Dangling DNS record: a DNS record that points at something that no longer exists.
- DNS: the internet's address book, turning names into the addresses computers use.
- DNS verification record: a special entry in a domain's zone that proves the domain owner agrees to a connection.
- DNS zone: the set of DNS records one organisation controls for its domain.
- Handshake: the check in which a front layer and a backend agree to pass traffic to each other.
- Identifier: the name of a tenant on a platform, the string that identifies which customer space is meant.
- Not Applicable: a bug bounty decision meaning the report does not qualify as a valid vulnerability.
- PoC (proof of concept): a small demonstration showing that a problem is real rather than theoretical.
- Reverse proxy: a server that receives requests and forwards them to servers behind it.
- SaaS (Software as a Service): software you use over the internet instead of installing it yourself.
- Subdomain: a name in front of a main domain, such as
partners.example.comin front ofexample.com. - Subdomain takeover: a bug where someone else can claim the resource a subdomain points at and serve their own content under that name.
- Tenant: one customer's separate space on a shared platform, like one account on a website.
- Triager: the person at a bug bounty programme who first reads a report and decides whether it is valid.
- Trust boundary: the line between what an organisation controls and what it does not.
- WAF (web application firewall): a filter that inspects web traffic and blocks requests that look malicious.