Repository navigation
Fix auth nsec3 code - #1280
Merged
Merged
Fix auth nsec3 code#1280
Conversation
out of zone (above apex) data. Could lead to hang while trying to prove a wildcard answer. Reported by Dmitrii Kuvaiskii from Amazon Web Services.
- Bailing out on zone apex; - Explicit parenthesis.
wcawijngaards
approved these changes
May 9, 2025
wcawijngaards
left a comment
Member
There was a problem hiding this comment.
This fixes the issues in the places it was reported and also extra checks in other places. The code looks nice.
gthess
added a commit
that referenced
this pull request
May 12, 2025
- Merge #1280: Fix auth nsec3 code. Fixes NSEC3 code to not break on broken auth zones that include unsigned out of zone (above apex) data. Could lead to hang while trying to prove a wildcard answer.
|
Five minutes late to the party, but I verified this patch on my end, using a clean Amazon Linux 2023 Docker image. It works correctly: $ history | awk '{$1=$1;print}' | cut -d' ' -f2-
# without the fix
git clone https://github.com/NLnetLabs/unbound.git
cd unbound/
git checkout bugfix/auth-nsec3-hang-on-broken-zone~4
./configure
make -j
make install
vim testdata/auth_nsec3_wild.rpl # add the malformed line to induce hang
make test
... hangs ...
# with the fix
make distclean
git checkout bugfix/auth-nsec3-hang-on-broken-zone
./configure
make -j
make install
make test
... no hang, success! |
Member
Author
|
Thanks for the verification! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix NSEC3 code to not break on broken auth zones that include unsigned out of zone (above apex) data. Could lead to hang while trying to prove a wildcard answer. Reported by Dmitrii Kuvaiskii from Amazon Web Services.