]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
mitigate NXNSAttack protocol vulnerability for wildcards in victim zone
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 5 May 2020 09:32:02 +0000 (11:32 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Mon, 18 May 2020 19:51:19 +0000 (21:51 +0200)
commitba7b89db780fe3884b4e90090318e25ee5afb118
treea22575446934c2b6dec22b787b169c41df5644d8
parent54f05e4d7b2e47c0bdd30b84272fc503cc65304b
mitigate NXNSAttack protocol vulnerability for wildcards in victim zone

Attacker might generate fake NS records pointing to victim's DNS zone.
If the zone contains wildcard the attacker might force us into packet
exchange with a (lame) DNS server on that IP address.

We now limit number of consecuctive failures and kill whole request if
limit is exceeded.
daemon/lua/kres-gen.lua
lib/defines.h
lib/layer/iterate.c
lib/resolve.c
lib/resolve.h