bind9/bin
alessio 887502e37d Drop malformed notify messages early instead of decompressing them
The DNS header shows if a message has multiple questions or invalid
NOTIFY sections. We can drop these messages early, right after parsing
the question. This matches RFC 9619 for multi-question messages and
Unbound's handling of NOTIFY.
To further add further robustness, we include an additional check for
unknown opcodes, and also drop those messages early.

Add early_sanity_check() function to check for these conditions:
- Messages with more than one question, as required by RFC 9619
- NOTIFY query messages containing answer sections (like Unbound)
- NOTIFY messages containing authority sections (like Unbound)
- Unknown opcodes.
2025-02-25 10:40:38 +01:00
..
check Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
confgen Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
delv Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
dig Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
dnssec Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
named Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
nsupdate Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
plugins Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
rndc Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
tests Drop malformed notify messages early instead of decompressing them 2025-02-25 10:40:38 +01:00
tools Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00