Skip to content

In-depth lesson · bug class

Subdomain takeover

What every disclosed Subdomain takeover report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.

reports cited in this lesson
207

Learning Subdomain takeover reading list Beginner web, step 8Cloud and infrastructure, step 1

Overview

What it is and why programs pay for it.

Subdomain takeover is what happens when a subdomain of a target still points, through DNS, at a third-party service that nobody at the target controls any more. The record survives but the resource behind it does not, so anyone who can register that resource name can serve their own content on the target's subdomain. The evidence covers dangling records to object storage buckets, CDN and cloud app endpoints, hosted blogging and helpdesk platforms, page builders, package hosting and name server zones, among others. Programs care because the hostname carries the target's brand and often its trust: a page served there looks legitimate to users, customers and automated systems.

What it usually leads to depends on where the subdomain sits. The most common outcome is content injection on a trusted host, which can be used for phishing or for serving files that others download. More serious cases arise when the subdomain is inside a trust boundary: cookies scoped to the parent domain can leak to it, OAuth redirect whitelists and CORS origins that include it can be abused, and a taken-over host can act as an open redirect. Some reports show escalation to reading authenticated data or to account takeover flows, and some show denial of service by breaking an expected flow.

It turns up most often where teams move quickly and leave things behind: media and CDN subdomains, cloud app and traffic manager endpoints, blog and documentation subdomains, helpdesk addresses, and names mentioned in public docs or repositories. It is also common on features that let users attach custom domains, such as portfolios, on-demand pages and storefronts, and on domains belonging to acquired companies or products where ownership of the DNS estate is less clear.

The database behind this lesson holds 224 reports, 108 with a summary and 59 paid, so a good share of submissions did not result in a reward. That is a useful signal for a beginner: finding a dangling record is only the start, and the reports that counted were the ones that showed real control and a concrete consequence.

How it works

The mechanics, as the reports show them.

The mechanism starts with a DNS record. A subdomain is given a CNAME pointing at a third-party hostname, or an A record pointing at a cloud IP, or NS records delegating it to a name server zone. At the time it is set up, the third-party resource exists and serves the intended content. The record is the only thing tying the target's name to that resource.

Later the resource goes away. A bucket is deleted, a cloud app is deprovisioned, a Heroku app is removed, a helpdesk is closed, a hosted zone is deleted at the provider, an elastic IP is released back to the pool, or a domain registration is allowed to expire. The DNS record is not cleaned up, so it now points at a name or address that is free.

The second ingredient is that the third-party service lets someone claim that name without proving they control the DNS. Many platforms attach a custom domain on request, or let a new account register a name that was previously used, or allow a hostname to be added before ownership is verified. Where the name is a bucket or an app name, the claim is simply registering it. Where it is a custom domain on a platform, the claim is adding it to a new account.

Once claimed, the attacker's content is served whenever the target's subdomain is requested, because the DNS record still sends traffic there. The evidence shows this confirmed in several ways: a test page served from a claimed bucket with static hosting enabled, a bucket created in a different region still taking control of the subdomain, and a custom domain added to a pages project without verification. The hostname in the browser is the target's, so the content inherits its trust.

The impact then depends on context. If the subdomain is a CORS origin or an OAuth redirect target, the claim can bypass those controls. If session cookies are scoped to the parent domain, they are sent to the taken-over host. If the subdomain is used to distribute installers, keyrings or package files, files served under expected names get downloaded by anyone running the build or install. If the record is an NS delegation to a deleted zone, control extends to every record under the domain, including mail.

There are variations that make the same weakness harder to spot. A trailing dot on a hostname can change routing or slip past a string comparison during domain verification. A wildcard domain added for the parent can cover a specific subdomain that could not be added directly. A fallback domain used for unknown requests can serve content on subdomains. A fix for one claim path can be bypassed by changing the endpoint or adding a parameter. These are all recorded as ways the underlying mistake resurfaced after an initial fix.

Year by year

1 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2025: 61
Reports per year
20142
20154
201626
201747
201825
201923
202025
202136
202236
202325
202454
202561
202633
  1. 2024

    54 reports · median $500

    New this year4

    • GitLab Pages custom domains without ownership verification first appear clearly in the disclosed reports.
    • Subdomains CNAMEd to unclaimed Netlify apps and CNAMEs pointing at ELB hostnames whose parent domain is unregistered appear in the disclosed reports.
    • Inbound email subdomains CNAMEd to a mail provider that no longer reserves the name appear as a takeover target in the disclosed reports.
    and 1 more

    Kept working3

    • Visiting a subdomain that CNAMEs to an external service and looking for a Not Found or unknown domain error showed the name was unclaimed in the disclosed reports.
    • Searching documentation pages for links to external domains and checking whether any had expired and could be bought worked in the disclosed reports.
    and 1 more

    Turned up less4

    • Object storage bucket takeovers, common in earlier years, are rarer in the 2024 reports, which show only one AWS related case.
    • Azure cloud service and traffic manager takeovers, frequent in earlier years, do not feature in the 2024 reports.
    and 2 more
Every point, year by year

Where it is found

67

The features and places the reports found it in, most-reported first.

  1. Subdomains with DNS records pointing at S3 buckets, including buckets that no longer exist.

    Seen in 9 reports
  2. Media and CDN subdomains fronted by object storage or CDN services.

    Seen in 6 reports
  3. Cloud app and traffic manager endpoints at the end of a CNAME chain.

    Seen in 6 reports
  4. Blog subdomains pointed at hosted blogging platforms.

    Seen in 5 reports
  5. Heroku app names mentioned in public docs or pointed at by CNAMEs, including expired app names.

    Seen in 5 reports
View all 67

Root causes

35

The mistakes in the code or configuration behind the reports.

  1. DNS records were left pointing at services after the underlying resource was deleted or cancelled.

    Seen in 27 reports
  2. Third-party services allowed anyone to claim a hostname or custom domain without verifying DNS ownership.

    Seen in 8 reports
  3. DNS records were left pointing at third-party services where the name was never claimed or was released.

    Seen in 5 reports
  4. A DNS record still pointed at a deleted or never-claimed S3 bucket, leaving the bucket name free to register.

    Seen in 3 reports
  5. A dangling CNAME pointed at a deprovisioned Azure cloud service that was never removed from DNS.

    Seen in 3 reports
View all 35

Things to try

The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.

ticked in this lesson

Cloud app and PaaS hostnames

of 3 ticked
  • Seen in 6 reports
  • Seen in 3 reports
  • Seen in 3 reports
More in Cloud app and PaaS hostnames

CDN and edge distributions

of 3 ticked
More in CDN and edge distributions

Object storage buckets

of 3 ticked
  • Seen in 9 reports
  • Seen in 5 reports
  • Seen in 4 reports
More in Object storage buckets

Subdomain enumeration and recon

of 3 ticked
  • Seen in 4 reports
  • Seen in 4 reports
  • Seen in 3 reports
More in Subdomain enumeration and recon
View more things to try

Bypasses and variations

16

How reports got past filters, encoders and other defences.

  1. A claimed subdomain can bypass OAuth whitelists and CORS protections.

    Seen in 3 reports
  2. Serving files under expected names from a claimed bucket gets them downloaded by anyone running the build or install.

    Seen in 2 reports
  3. A previous fix for a subdomain takeover was bypassed by adding a domain parameter to the page-editing request body.

    Seen in 1 report
  4. A later fix was bypassed by changing the endpoint path and adding a page URL parameter with the target subdomain.

    Seen in 1 report
  5. When the specific subdomain could not be added, adding the wildcard domain for the parent succeeded and covered the subdomain.

    Seen in 1 report
View all 16

Payouts

60 paid

Public bounties in US dollars, from the data. 60 of 491 reports show an amount.

a quarter paid up to
$288
median
$500
three quarters paid up to
$1,000
highest
$10k

One in ten paid reports was paid $3,000 or more.

SeverityReportsPaidMedianHighest
Critical 37 0 None paid None
High 51 2 $550 $1,000
Medium 77 13 $500 $3,100
Low 50 7 $200 $500
Informational 10 1 $500 $500
Unrated 266 37 $500 $10k

Typical fixes

11

How programs fixed it, as the reports describe.

  1. Remove DNS records when the service or resource they point at is decommissioned, deleted or deprovisioned.

    Seen in 26 reports
  2. Require proof of DNS ownership before a third-party service attaches a custom domain.

    Seen in 5 reports
  3. Remove or update links to expired domains in documentation and handbooks.

    Seen in 3 reports
  4. Scope session cookies to the specific host rather than the parent domain.

    Seen in 2 reports
  5. Validate the domain parameter server-side against domains the account actually owns.

    Seen in 2 reports
View all 11

Tips for beginners

13

Advice for a first hunt, drawn from the reports.

  1. Look beyond the obvious cloud services. The evidence includes helpdesk addresses, hosted blogging platforms, page builders, uptime monitors, feedback and idea services, podcast hosting, documentation sites and mail provider records. A beginner who only checks buckets will miss most of the surface.

    Seen in 5 reports
  2. Think about what the subdomain is trusted for. Check whether it is inside an OAuth redirect whitelist, a CORS origin list, a cookie scope, or a distribution path for installers and package files. A takeover on a plain marketing host is weaker than one that sits in a trust boundary, and the difference is what makes the report worth submitting.

    Seen in 4 reports
  3. Search public material for names the target no longer controls: documentation, handbooks, repositories, build scripts, mobile app source and third-party profiles. Expired domains and unclaimed app names referenced there are common, and the fix is often just removing the link, which is why they persist.

    Seen in 4 reports
  4. Watch for verification bypasses. Try the same domain with a trailing dot, or add the wildcard for the parent when the specific subdomain is refused, or check whether a grace period lets an unverified domain be served. These are documented variations and are worth testing once you have a candidate.

    Seen in 4 reports
  5. Start with reconnaissance at scale rather than a single host. Enumerate the target's subdomains with passive and active sources, then follow each result's CNAME chain and check the A records. The reports that found takeovers mostly came from systematic enumeration and then testing each candidate, not from guessing one name.

    Seen in 3 reports
View all 13

Guides and techniques

View all

The best explainers, cheat sheets and technique posts on Subdomain takeover, from around the web.

Keep learning

Where this lesson fits, and what to read next.

Lessons on single techniques in Subdomain takeover

How this is made: our model read every listed Subdomain takeover report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 26 Nov 2026 from 224 reports. All Subdomain takeover reports.