Commit bef03dcf authored by Committed by Petr Špaček
lib/cache: fix CVE-2019-10191
Don't stash a packet with mismatching QNAME+QTYPE. When receiving an NXDOMAIN or NODATA packet in an insecure zone, it would get cached with KR_RANK_INSECURE regardless of mismatch in QNAME. If the 0x20 pattern was preserved in the fake QNAME, such packet would then be used to answer queries with matching QNAME, even if there's no proof that this QNAME is insecure.
Showing with 15 additions and 1 deletion