mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Weak verification for signed TKEY response
The introduced grep call checks whether there was a response that has an answer and an additional record. There should be only one in the nsupdate output that is for the TKEY response.
This commit is contained in:
parent
cbe51ba325
commit
9fcad11e34
1 changed files with 6 additions and 0 deletions
|
|
@ -39,6 +39,12 @@ EOF
|
|||
return 1
|
||||
}
|
||||
|
||||
# Weak verification that TKEY response is signed.
|
||||
grep -q "flags: qr; QUESTION: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1" nsupdate.out${num} || {
|
||||
echo "I:bad tkey response (not tsig signed)"
|
||||
return 1
|
||||
}
|
||||
|
||||
out=`$DIG $DIGOPTS -t $type -q $host | egrep "^${host}"`
|
||||
lines=`echo "$out" | grep "$digout" | wc -l`
|
||||
[ $lines -eq 1 ] || {
|
||||
|
|
|
|||
Loading…
Reference in a new issue