OWASP Hunting

Config & design

Subdomain Takeover

A subdomain takeover happens when a DNS record (usually a CNAME, but also A, NS or MX) points at a third-party service or resource that is no longer claimed, so an attacker can register the resource and serve content from the victim's subdomain. Impact includes phishing from a trusted domain, cookie theft for parent-domain cookies, CORS and CSP trust abuse, OAuth redirect abuse and email interception for dangling MX.

Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.

These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.

Payload files

Folder on GitHub

Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.

subdomain-takeover-payloads.txt

78 payloads · 3.9 KB
Source

Loading payloads for Subdomain Takeover…

Common Attack Vectors#

  • Dangling CNAME to a deprovisioned SaaS (object storage, static hosting, PaaS, help desks, CDNs)
  • Dangling NS delegation to a zone that no longer exists at the provider (full-zone takeover)
  • Dangling A/AAAA to released cloud IP addresses or elastic IPs
  • Expired registrar domains used as a CNAME target
  • MX records pointing at an unclaimed mail domain
  • Wildcard DNS combined with a claimable service
  • Dangling references in scripts, CSS and OAuth redirect allow-lists

Testing Approach#

Enumerate subdomains from certificate transparency, passive DNS and your own resolver. Resolve each name and record the CNAME chain. A takeover candidate has a CNAME to a provider and an HTTP response matching that provider's "unclaimed" fingerprint, or NXDOMAIN on the CNAME target. Verify that the provider allows claiming the resource and that the program's scope includes the host. Prove control only with a harmless, unlinked file (for example a text file with a unique marker at an unguessable path), never with defacement. Remove the claimed resource when finished and report promptly.

References#

Responsible Use

All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.

  • Systems and applications you own
  • Authorized penetration testing engagements
  • Bug bounty programs with defined scope
  • Educational lab environments (DVWA, WebGoat, HackTheBox)