Case 6B8127 · Cloud · L2 Practitioner

Subdomain Takeover

Practise as: Explain itLevel: L2 Practitioner
  1. 01 What is it?
  2. 02 How is it abused?
  3. 03 How do you stop it?
What a strong answer covers

Try it out loud first. Then check yourself:

  1. A DNS record still points at a deleted cloud resource: S3 website bucket, Azure App Service name, or released public IP
  2. Attacker claims the same name or gets the IP reassigned, then serves their content on your subdomain
  3. Impact: convincing phishing, cookies scoped to the parent domain, and abuse of CORS or CSP allowlists that trust *.you.com
  4. Stop: remove DNS before deprovisioning, use alias records, and continuously diff DNS against live resources
  5. Provider controls help, such as Azure App Service domain verification TXT records, but only inventory closes the gap

If the interviewer pushes back

  • Why is a takeover worse when the parent site sets session cookies with Domain=.example.com?

More Cloud cards

All Cloud cards →

cardosec draws a security topic and gives you a clock: explain it out loud with no notes, then see what you covered and what you missed. Free during early access.

Reviewed 2026-10-09