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.
-
A claimed subdomain can bypass OAuth whitelists and CORS protections.
Seen in 3 reports
-
Serving files under expected names from a claimed bucket gets them downloaded by anyone running the build or install.
-
A previous fix for a subdomain takeover was bypassed by adding a domain parameter to the page-editing request body.
Seen in 1 report
-
A later fix was bypassed by changing the endpoint path and adding a page URL parameter with the target subdomain.
Seen in 1 report
-
When the specific subdomain could not be added, adding the wildcard domain for the parent succeeded and covered the subdomain.
-
Appending a trailing dot to the hostname changed how the request was routed.
-
A trailing dot on a domain name made it distinct from the existing customer domain during verification.
Seen in 1 report
-
Escalate a subdomain takeover by abusing document.domain to reach cookies set for sibling subdomains.
Seen in 1 report
-
Use a taken-over subdomain that is a trusted CORS origin to read private data such as chat messages.
Seen in 1 report
-
Taking over a deleted hosted zone gives control of every record under the domain, including mail.
-
Claiming a whitelisted domain bypasses Content Security Policy and allows client-side code execution if an XSS exists.
Seen in 1 report
-
A claimed subdomain can set cookies for the parent domain that block access for individual users.
Seen in 1 report
-
Disabling Force HTTPS on a Pages project lets a custom domain be added and served without verification.
Seen in 1 report
-
Enabling the domain after adding it as a custom hostname makes bucket access work even when it is initially blocked.
Seen in 1 report
-
Creating the bucket in a different region still allows control of the subdomain.
Seen in 1 report
-
Setting the Host header to a Netlify app address reveals content served from an unclaimed app.
Seen in 1 report