Blog

How a subdomain takeover can damage your business

A broken geometric bridge illustrating a subdomain takeover

A subdomain takeover happens when someone else gains control of content or a service available through an address your business still owns. One common cause is an old domain record pointing to a hosted resource that has been removed. If the provider allows another party to claim the relevant destination, the business address can begin serving something the business never approved.

What is a subdomain takeover?

A subdomain is an address beneath your main domain, such as one used for a campaign, support service or customer portal. DNS, the system that translates domain names into destinations, connects that address to the relevant service.

When a service is retired, its DNS entry may remain. These dangling DNS records need review because their destination may no longer belong to the intended account.

A missing resource alone does not prove that takeover is possible. Some providers verify domain ownership or reserve the name, preventing another account from binding it.

The assessment therefore needs to establish both the abandoned connection and the conditions that could transfer control. A provider error message is a useful clue, but it is not conclusive evidence by itself.

Why it matters

Consider a business that ends a marketing campaign and closes the hosting service behind its campaign address. Existing emails, printed material and other websites may still direct customers to that address.

If another party can bind the destination, those customers could see misleading content under a familiar business name. The result might include impersonation, fraudulent requests or damage to the company's reputation.

Wider technical consequences depend on how other services trust the affected address. Cookie settings, permitted integrations and account recovery arrangements need separate assessment before assuming that other user accounts are exposed.

Reviewing unknown web applications can help identify addresses the business has forgotten. The ownership and retirement process then needs to connect each address to a maintained service or remove its dependency safely.

How penetration testers check for it

  • Review agreed domain records and hosting information for addresses that point to missing, retired or unexplained services.
  • Compare public behaviour with the provider's current ownership and resource-binding rules, distinguishing a stale record from a confirmed opportunity to transfer control.
  • Use approved verification methods and owner-supplied evidence to assess claimability, with any action affecting a live domain specifically included in the assessment arrangements.
  • Explain the affected address, relevant provider conditions and plausible business impact, recording uncertainty where evidence does not establish an actual takeover route.

How to fix it

  • Keep an inventory connecting domain records to service owners, hosting accounts and business purposes. Include supplier-managed campaigns and temporary project environments.
  • Remove or correct obsolete records before releasing their underlying hosted resources. Account for DNS caching when coordinating changes and confirming retirement.
  • Enable provider-supported domain ownership verification and retain the records needed to preserve it. Check the provider's actual protection rather than assuming all hosted services behave alike.
  • Review abandoned cloud services, expired dependencies and unexpected domain changes regularly. Investigate supplier account closures and migrations as part of the same retirement process.

After remediation, check the public records and the service binding again. Removing an error page without correcting the ownership relationship may leave the original condition unresolved.

Read about our methodology or contact pentested.com to discuss testing for your website.

See your first test report this week.

Book a 30 minute demo. We will verify one of your targets with you and run a test against it, so you can judge the results on your own systems.

Book a demo