Skip to content

Wildcards that answer from a rotating IP pool (CDN/load-balanced) bypass the fingerprint filter #48

Closed

Description

@TMHSDigital

Why it matters

Many real wildcards sit behind CDNs or load balancers and return different A records per query. subenum fingerprints a wildcard from only two probes and drops a result only when its records are a strict subset of that fingerprint, so most wildcard answers from a pool are reported as real subdomains even with -force.

Evidence

  • internal/scan/runner.go:142-156 (recordsSubset) plus two probes in internal/dns/resolver.go:286-287.
  • Repro (hermetic test DNS): wildcard answering with 1 of 8 IPs, -force, 50 names → 45 of 50 reported as real, only 5 filtered.
  • CNAME wildcards in front of CDNs with rotating A records behave the same way.

Suggested approach

  • Probe more names (e.g. 5) to build the fingerprint.
  • Re-validate near-misses: if a result's records overlap the fingerprint, or its CNAME target matches the wildcard's CNAME target, re-probe a fresh random label under the same parent before accepting it.
  • Prefer CNAME-target fingerprinting when the wildcard answers via CNAME.
  • Add a test with a rotating-pool wildcard.

Done when

In the rotating-pool test, at least 95% of wildcard answers are filtered and no real names are lost.

Activity

  1. added
    bug
    priority: medium
    area: dns
    area: scan
    on Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: dnsarea: scanbugpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions