Skip to content

Fix logic in xfr ReadMsg + add test #1649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025
Merged

Conversation

ddevine-NS1
Copy link
Contributor

Hi!

This fixes a possible bug where a xfr client can skip tsig validation if the server doesn't respond with a tsig.

Say I setup an xfr client with a tsig provider. If it connects to a server which doesn't implement tsig, but that server can perform a transfer without adding the tsig to the response then the current logic will skip validation.

m.IsTsig() && t.tsigProvider() is going to look for the tsig in the message, see none and consider the transfer valid, but I think the client should be checking the signature since the tsig provider is configured on the client.

@miekg
Copy link
Owner

miekg commented Apr 23, 2025

your rational makes sense

@miekg miekg merged commit ed312a3 into miekg:master Apr 23, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants