bind9/bin/tests/system/rrl
Aram Sargsyan baa9698c9d 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.
2022-09-08 09:15:30 +02:00
..
ns1 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
ns2 Use DEFAULT_HMAC for rndc 2022-07-07 10:11:42 +10:00
ns3 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
ns4 Use DEFAULT_HMAC for rndc 2022-07-07 10:11:42 +10:00
.gitignore [master] tests directory cleanup 2014-03-06 11:11:27 -08:00
broken.conf.in Convert hmac-sha256 references in system tests to DEFAULT_HMAC 2022-07-07 10:11:42 +10:00
clean.sh Convert hmac-sha256 references in system tests to DEFAULT_HMAC 2022-07-07 10:11:42 +10:00
setup.sh Convert hmac-sha256 references in system tests to DEFAULT_HMAC 2022-07-07 10:11:42 +10:00
tests.sh Fix RRL responses-per-second bypass using wildcard names 2022-09-08 09:15:30 +02:00