Test TSIG verification in DNS transports

AuthenticationDiscovery

Written with a model's help from “The TSIG That Wasn’t: Finding an Authentication Bypass Across CoreDNS Transports” by Noel Duma on Hacktive Security. Read the writeup before relying on it.

When testing DNS servers that support multiple transports, such as gRPC, QUIC, DoH, and DoH3, try sending DNS requests with forged TSIG records, including invalid MACs, unknown key names, and missing TSIG records. Verify that the server correctly rejects requests with invalid TSIG records. If a transport accepts requests with forged TSIG records, it may indicate a bypass of TSIG authentication. Check the server's response to ensure that it properly verifies the HMAC and rejects requests with invalid TSIG records. This can be done by sending requests with different types of forged TSIG records, such as those with zero bytes, random bytes, or truncated values, and checking the server's response.

Follow #authentication-bypass, #dns or #tsig for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.