You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Collect NSEC3 hashes and match them offline instead of dismissing NSEC3 zones #477
NSEC3-signed zones are detected and then dismissed ("NSEC3 would hide them"). With the parameters RFC 9276 recommends (0 extra iterations, no salt), the NSEC3 chain can be collected in a few hundred NXDOMAIN answers and its hashes matched offline against every candidate subenum already has (the nsec3map/nsec3walker technique).
Where
internal/dns/nsec.go:158 (denialOf records DenialNSEC3 and skips the record's contents)
internal/axfr/axfr.go:100 ("NSEC3 would hide them"), :260 (WalkStop = "the zone is signed with NSEC3, which hides its names")
internal/dnsserver/server.go:651 (the lab server already serves NSEC3)
examples/labs/lab8-nsec-walk.zone:6 (Lab 8 asks the learner to switch to nsec3)
Impact
DNSSEC zones most often use NSEC3. Instead of a "not walkable" note, users could get:
names confirmed with no per-name queries;
the exact number of names in the zone, which turns the run-quality report into "found 41 of 57";
a finding when the zone uses zero iterations and no salt.
Suggested fix
Add -nsec3-collect, bounded by -max-queries, -max-duration and -rate:
Parse NSEC3 RDATA from denial answers, and query random labels aimed at uncovered hash gaps until the ring closes or the budget ends.
Hash every wordlist, source and permutation candidate locally with the zone's parameters, and mark matches as found after one confirming lookup, as sources are verified.
Report nsec3: {names_in_zone, hashes_collected, cracked, iterations, salt} in -stats.
Extend dnsserver.addDenial to serve a full NSEC3 chain so the lab can test it.
Document that opt-out zones cover only delegations.
Activity