]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add consistency checks to responses with NSEC3
authorPetr Špaček <pspacek@isc.org>
Fri, 6 Jun 2025 15:10:42 +0000 (17:10 +0200)
committerPetr Špaček <pspacek@isc.org>
Tue, 29 Jul 2025 10:59:12 +0000 (12:59 +0200)
commitdc3f349e9d261f3f7814935e1df7139034fd2e3a
treec788e39d69b98152614d526a96b40f320bf58004
parent87974b62d5283b40c9d11e7e83943018efd18d0a
Add consistency checks to responses with NSEC3

Basic sanity checks - limited to responses from a single zone:
- NSEC3 type cannot be present in type bitmap:
  By definition, the type bitmap describes state of the unhashed name
  but NSEC3 RR is present at a different owner name. RFC 7129 section 5
- NSEC3 owner names cannot be duplicated:
  Unless the response crosses zone boundary, parent zone has insecure
  delegation for child, but child is signed ... don't do that.
- All parameters are consistent across all RRs present in answer:
  RFC 5155 section 7.2, last paragraph - at least when we don't cross
  zone boundary.

(cherry picked from commit cfaf5c997f73e1d91735d6c87a2a21cab391eabd)
bin/tests/system/dnssec/tests_nsec3.py