]> git.ipfire.org Git - thirdparty/bind9.git/commit
Cover exact-name NODATA synthesis from a pending NSEC
authorOndřej Surý <ondrej@isc.org>
Tue, 7 Jul 2026 12:06:48 +0000 (14:06 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 8 Jul 2026 09:50:27 +0000 (11:50 +0200)
commitdc0273288323c91a64dd63576b920bfdfd67e7f8
tree57151a37d2c90dd05fda1150534a286f432bfe4d
parent91955ca087604de1ce83b7e3af1bcb771666b5e8
Cover exact-name NODATA synthesis from a pending NSEC

The #5872 reproducer plants a covering NSEC that is rejected inside the
cache (find_coveringnsec), so it never reaches the trust check on the
exact-match NODATA branch of query_coveringnsec(). This adds a companion
case: an NSEC owned by the victim name itself, injected at pending trust
via a CD=1 query, is returned by the cache as a NODATA proof for the
exact node and must not be used to synthesize a NODATA that would deny
the victim's real A record.

Reuses the f004.test fixture with a victim-owned forged NSEC.

Assisted-by: Claude:claude-fable-5
bin/tests/system/nsec_synthesis/ans1/f004.py
bin/tests/system/nsec_synthesis/tests_nsec_exact_nodata.py [new file with mode: 0644]