bind9/bin
Aram Sargsyan 35e37505f0 Fix RRL responses-per-second bypass using wildcard names
It is possible to bypass Response Rate Limiting (RRL)
`responses-per-second` limitation using specially crafted wildcard
names, because the current implementation, when encountering a found
DNS name generated from a wildcard record, just strips the leftmost
label of the name before making a key for the bucket.

While that technique helps with limiting random requests like
<random>.example.com (because all those requests will be accounted
as belonging to a bucket constructed from "example.com" name), it does
not help with random names like subdomain.<random>.example.com.

The best solution would have been to strip not just the leftmost
label, but as many labels as necessary until reaching the suffix part
of the wildcard record from which the found name is generated, however,
we do not have that information readily available in the context of RRL
processing code.

Fix the issue by interpreting all valid wildcard domain names as
the zone's origin name concatenated to the "*" name, so they all will
be put into the same bucket.

(cherry picked from commit baa9698c9d)
2022-09-08 09:36:50 +02:00
..
check Replace ISC_NORETURN with C11's noreturn 2022-03-25 08:42:18 +01:00
confgen Replace ISC_NORETURN with C11's noreturn 2022-03-25 08:42:18 +01:00
delv Reset parser before parsing of internal trust anchor 2022-08-19 15:21:41 +10:00
dig Allow fallback to IDNA2003 processing 2022-09-05 10:21:28 +02:00
dnssec Wait with NSEC3 during a DNSSEC policy change 2022-08-22 19:21:39 +02:00
named Do not use libxml2 deprecated functions 2022-09-06 09:20:55 +00:00
nsupdate Rename yes_or_no to boolean 2022-07-04 16:09:24 +02:00
plugins Hyperlink program names to their manual pages 2022-03-14 11:01:31 +01:00
rndc Rename key_id to server_key 2022-07-04 16:09:23 +02:00
tests Fix RRL responses-per-second bypass using wildcard names 2022-09-08 09:36:50 +02:00
tools quote addresses in YAML output 2022-08-31 16:17:56 -07:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00