Vendor Audit

Dangling DNS records

A CNAME record points one name at another. A dangling CNAME points at a name that no longer exists, usually a cloud bucket, app or CDN endpoint that was deleted. At many providers anyone can create a resource with the freed name. Whoever does then serves their own content on this domain, with a valid certificate (subdomain takeover).

How Dangling DNS works

This audit follows the CNAME chain of the domain as entered and of its www form, and reports a chain whose last name returns NXDOMAIN (does not exist). A timeout or server error is not counted, since it does not show that the name is free.

Only these two names are checked. A takeover can happen on any subdomain, so an inventory of the zone's CNAME records, checked when a cloud resource is removed, is the lasting fix.

The audit also looks up one random name under the domain. If it resolves, the zone has a wildcard record (RFC 4592): every name, mistyped or unused, reaches a server. That is often deliberate on hosting platforms, so it is listed rather than counted, but a wildcard pointing at a service the domain no longer controls hands every name to whoever claims it.

How to fix it

Delete CNAME records for services that are no longer used, or re-create the resource at the provider before the name is claimed.

The 2 Dangling DNS checks Vendor Audit runs

Each check has a fixed set of results, and each result has one rating. These are the exact words the report uses.

Dangling CNAME

Standard: RFC 1034; OWASP WSTG-CONF-10

What it checks. A CNAME on the domain or its www form should point at a name that still exists.

Why it matters. When the target was a deleted cloud resource, anyone who re-creates it at the provider can serve content on this domain.

How to fix it. Delete the CNAME, or re-create the resource it points at.

Wildcard DNS

Standard: RFC 4592

What it checks. A wildcard record (*.example.com) answers for every name under the domain that has no record of its own. This looks up one random name.

Why it matters. Every mistyped or made-up name then reaches a server, and a wildcard that points at a service the domain no longer controls hands every name to whoever claims it. Some hosting platforms rely on wildcards on purpose.

How to fix it. Remove the wildcard record unless something needs it, and publish records only for the names in use.

Related

Nameservers · TLS and certificates