Skip to content

fix: sanitize DNS TXT record bytes before processing in contact_dns#3325

Open
deacon-mp wants to merge 1 commit intomasterfrom
fix/dns-txt-sanitize
Open

fix: sanitize DNS TXT record bytes before processing in contact_dns#3325
deacon-mp wants to merge 1 commit intomasterfrom
fix/dns-txt-sanitize

Conversation

@deacon-mp
Copy link
Contributor

DNS TXT records could contain non-UTF8 bytes causing decode errors. Added sanitization. With tests.

Add null byte stripping, 64KB size limit, and logging for suspicious
DNS TXT record content to prevent processing of malformed data.
@deacon-mp deacon-mp requested a review from Copilot March 16, 2026 03:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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