Guides · ← All guides
Forgotten Subdomains: The Staging Site You Forgot Is Still Public
Published: November 14, 2026 · Last reviewed: November 14, 2026 · 7 min read
Run a free BreachHunter assessment on your site →
Ask an owner to list their subdomains and you will get the main site, maybe the shop, maybe webmail. The scan typically returns more — the certificate logs remember what the team does not: the staging copy from the redesign, the old. name kept “just in case” after a migration, the dev box a contractor spun up and never retired.
This guide explains why forgotten subdomains punch above their weight (real data copies, debug settings, shared cookies, trusted network position), how an assessment's recon assembles the list from public sources, and the disposition framework — protect it, park it, or kill it — that turns an inventory surprise into a one-afternoon cleanup.
Why are staging and old subdomains such reliable targets?
Staging exists to be convenient, and convenience strips controls: debug mode on (the finding in debug consoles in production often lives here), placeholder passwords, IP allow-lists “temporarily” removed, and — the dangerous one — a copy of the production database so the design “looks real”. Attackers know this pattern cold, which is why scanner wordlists and CT-log searches both start with staging, dev, test, old, beta and v2.
The trust relationships finish the job. Cookies set for the parent domain are shared with subdomains, some SSO setups trust any subdomain callback, and a staging host inside your network perimeter is a foothold with a view. The assessment cannot see your internal trust wiring from outside, but it reports the public fact that matters: these names resolve, they serve, and their banners show what they run — the same recon output the attacker starts from, described phase by phase in the assessment guide.
Protect, park, or kill: a disposition for every name
Every subdomain the recon returns gets one of three decisions, recorded with an owner. Protect: it is a real service — then it joins the patching, scanning and monitoring rotation as a first-class citizen, with authentication in front of anything not meant for the public. Park: the name must keep resolving (printed materials, partner links) but serves nothing — point it at a static placeholder or a redirect to the main site and remove the old application entirely. Kill: no purpose survives questioning — delete the DNS record, the host and the certificate.
The common error is the fourth, unlisted disposition: leave it, because deciding felt like work. A forgotten name is not neutral; it is unmonitored surface with your domain's reputation attached. The inventory exercise is also the cure for the related DNS disease in subdomain takeover — you cannot spot a dangling record in a zone you have never compared against reality.
Worked example: copperkettle.example
Copper Kettle Brewing's recon returned 14 subdomains. The owners recognized nine. The surprises included staging.copperkettle.example (the 2024 site redesign, still live, running the pre-redesign software with its admin password unchanged since the design agency handed it over) and old.copperkettle.example (the pre-2023 shop, still taking test orders against a stale customer database).
Recon subdomain inventory (CT logs + DNS): 14 names staging.copperkettle.example -> live, banner: PHP/7.4 (EOL), /wp-admin reachable old.copperkettle.example -> live, storefront build from 2023, real customer DB copy + 12 expected names (www, shop, mail, taproom-menu, ...)
Dispositions took one meeting: old. was killed outright (record, host, database copy deleted), staging. was rebuilt as a short-lived environment behind SSO and excluded from holding production data — a sanitized dataset replaced the real one — and the remaining names got owners in the brewery's ops doc. The next scan's inventory matched the doc exactly, which is the actual goal: not fewer subdomains, but zero unexplained ones.
The five actions to take
From surprise inventory to owned estate:
- Pull your own CT-log and DNS inventory (or read the scan's recon list) and put every name in a doc with an owner.
- Classify each as protect, park or kill — and date the decision; “later” is how the list regrows.
- For staging/dev survivors: SSO or IP restriction in front, sanitized data only, debug off, same patch cadence as production.
- Delete killed names at every layer: DNS record, host/application, certificate, and any database copies.
- Re-run recon quarterly and diff it against your doc — a new unexplained name is a finding, whoever created it.
Run a free BreachHunter assessment on your site →
Frequently asked questions
How do scanners find subdomains we never linked anywhere?
Primarily certificate transparency: every publicly trusted certificate is logged in public, searchable databases (crt.sh is the common interface), and the log entries name the subdomains. DNS zone data and search-engine indexes add more. “Unlinked” has never meant unlisted.
Is a staging site with a password on it safe enough?
A login page helps, but shared or weak credentials are the norm on staging, and the software/data exposure remains. The robust pattern is network or SSO restriction in front of the whole environment, plus production-data prohibition — then the password is the second wall, not the only one.
Should staging use real customer data so designs look right?
No. Sanitized or synthetic datasets give the same layout fidelity without turning a forgotten dev box into a breach of your real customer list. Several public incidents trace exactly to “real data on the staging copy”.
What do we do with a subdomain a contractor created and nobody can access?
Treat access recovery as the task: the DNS is yours, so the record can be removed today even if the host is unreachable. Kill the record first, then chase the hosting account at leisure — resolution is what makes it public.
How often should the inventory be re-checked?
Quarterly, and after any agency engagement, campaign or migration. Those three events mint subdomains; the diff between the scan's list and your doc is the cheapest security review you will ever run.