Virtual Host Enumeration
Discover web applications that share one address by varying Host headers and hostname routing within your authorized scope
Use when: one in-scope address serves multiple applications, or you suspect admin, staging and API vhosts answer on an existing host
Avoid when: each application has its own dedicated hostname already documented in your inventory
Procedure
- Confirm which address and hostname are in scope, since a vhost probe still sends requests to the host you name.
- Collect candidate names from DNS, certificate SANs, archive data and your permutation work rather than guessing from nothing.
- Send requests with the candidate Host header while keeping the connection target fixed, at a rate that matches your ceiling.
- Compare each response against a baseline for the default vhost: status, length, title and a content hash all matter.
- Group hits by application type so an admin interface and a marketing site do not end up in the same bucket.
- Add discovered vhosts to inventory with their discovery method, then re-run only the delta on future passes.
Signals
- A candidate Host produces a different title or content hash than the default vhost baseline.
- Content length, status code and redirect target all shift together, which is a strong vhost signal rather than noise.
- A vhost returns an application login page that no public hostname serves.
- The default vhost answers identically for unknown names, which means your baseline must come from a known-good host.
Patterns
1. Baseline
Host: unknown-random.invalid -> 404, len=1243, hash=9f3a...
Host: app.example.com -> 200, len=48210, hash=11bc... DIFF
2. Probe set
candidates: admin, api, staging, old, mail, vpn, build, cdn
carried from: dns + crt.sh + permutations, not random dictionary blasting
3. Hit record
ip=203.0.113.10 vhost=admin.example.com method=host-header status=200 app=admin-console
Pitfalls
- Using a random unknown host as the baseline when the server default page differs from every real vhost, producing false hits.
- Probing with names you invented instead of sourced candidates, which multiplies requests without adding coverage.
- Forgetting that a CDN in front of the address may answer any Host with the same edge page and hide the real vhost.
Done when
- Each discovered vhost differs from the baseline on at least two independent response properties.
- New vhosts are recorded in inventory with discovery method, and unconfirmed candidates are excluded from later phases.
References
1---2name: virtual-host-enumeration3description: "Discover web applications that share one address by varying Host headers and hostname routing within your authorized scope. Use when one in-scope address serves multiple applications, or you suspect admin, staging and API vhosts answer on an existing host"4pack: reconcraft5version: 1.0.06category: bug-bounty-tooling7tags: [vhost, web, enumeration]8metadata:9 source: https://skillmd.com/skills/wsh7ash/virtual-host-enumeration10---1112# Virtual Host Enumeration1314> Discover web applications that share one address by varying Host headers and hostname routing within your authorized scope1516**Use when:** one in-scope address serves multiple applications, or you suspect admin, staging and API vhosts answer on an existing host1718**Avoid when:** each application has its own dedicated hostname already documented in your inventory1920## Procedure21221. Confirm which address and hostname are in scope, since a vhost probe still sends requests to the host you name.232. Collect candidate names from DNS, certificate SANs, archive data and your permutation work rather than guessing from nothing.243. Send requests with the candidate Host header while keeping the connection target fixed, at a rate that matches your ceiling.254. Compare each response against a baseline for the default vhost: status, length, title and a content hash all matter.265. Group hits by application type so an admin interface and a marketing site do not end up in the same bucket.276. Add discovered vhosts to inventory with their discovery method, then re-run only the delta on future passes.2829## Signals3031- A candidate Host produces a different title or content hash than the default vhost baseline.32- Content length, status code and redirect target all shift together, which is a strong vhost signal rather than noise.33- A vhost returns an application login page that no public hostname serves.34- The default vhost answers identically for unknown names, which means your baseline must come from a known-good host.3536## Patterns3738**1. Baseline**3940```text41Host: unknown-random.invalid -> 404, len=1243, hash=9f3a...42Host: app.example.com -> 200, len=48210, hash=11bc... DIFF43```4445**2. Probe set**4647```text48candidates: admin, api, staging, old, mail, vpn, build, cdn49carried from: dns + crt.sh + permutations, not random dictionary blasting50```5152**3. Hit record**5354```text55ip=203.0.113.10 vhost=admin.example.com method=host-header status=200 app=admin-console56```5758## Pitfalls5960- Using a random unknown host as the baseline when the server default page differs from every real vhost, producing false hits.61- Probing with names you invented instead of sourced candidates, which multiplies requests without adding coverage.62- Forgetting that a CDN in front of the address may answer any Host with the same edge page and hide the real vhost.6364## Done when6566- Each discovered vhost differs from the baseline on at least two independent response properties.67- New vhosts are recorded in inventory with discovery method, and unconfirmed candidates are excluded from later phases.6869## References7071- [OWASP Web Security Testing Guide - information gathering](https://owasp.org/www-project-web-security-testing-guide/)72- [RFC 9110 - Host routing semantics](https://www.rfc-editor.org/rfc/rfc9110)