Skip to content

In-depth lesson · Subdomain takeover

Bypasses and variations

Every point the Subdomain takeover reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 16 of 16
  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
  6. Appending a trailing dot to the hostname changed how the request was routed.

    Seen in 1 report
  7. A trailing dot on a domain name made it distinct from the existing customer domain during verification.

    Seen in 1 report
  8. Escalate a subdomain takeover by abusing document.domain to reach cookies set for sibling subdomains.

    Seen in 1 report
  9. Use a taken-over subdomain that is a trusted CORS origin to read private data such as chat messages.

    Seen in 1 report
  10. Taking over a deleted hosted zone gives control of every record under the domain, including mail.

    Seen in 1 report
  11. Claiming a whitelisted domain bypasses Content Security Policy and allows client-side code execution if an XSS exists.

    Seen in 1 report
  12. A claimed subdomain can set cookies for the parent domain that block access for individual users.

    Seen in 1 report
  13. Disabling Force HTTPS on a Pages project lets a custom domain be added and served without verification.

    Seen in 1 report
  14. Enabling the domain after adding it as a custom hostname makes bucket access work even when it is initially blocked.

    Seen in 1 report
  15. Creating the bucket in a different region still allows control of the subdomain.

    Seen in 1 report
  16. Setting the Host header to a Netlify app address reveals content served from an unclaimed app.

    Seen in 1 report