Nessus
[Top] [All Lists]

Re: Bind_query

To: Nessus@list.nessus.org
Subject: Re: Bind_query
From: "George A. Theall" <theall@tenablesecurity.com>
Date: Thu, 21 Dec 2006 08:38:01 -0500
Cc:
Delivered-to: sp-com-lists@consult.net
Delivered-to: nessus-list1@securepoint.com
Delivered-to: Nessus@list.nessus.org
In-reply-to: <C565AB59099A9645ACBEA5E7D52CAB5A63A175@EX.spohn.central>
List-archive: <http://mail.nessus.org/pipermail/nessus>
List-help: <mailto:nessus-request@list.nessus.org?subject=help>
List-id: Discussion of Nessus software <nessus.list.nessus.org>
List-post: <mailto:nessus@list.nessus.org>
List-subscribe: <http://mail.nessus.org/mailman/listinfo/nessus>, <mailto:nessus-request@list.nessus.org?subject=subscribe>
List-unsubscribe: <http://mail.nessus.org/mailman/listinfo/nessus>, <mailto:nessus-request@list.nessus.org?subject=unsubscribe>
References: <C565AB59099A9645ACBEA5E7D52CAB5A63A175@EX.spohn.central>
Sender: nessus-bounces@list.nessus.org
User-agent: Thunderbird 1.5.0.8 (X11/20061110)
On Tue, Dec 19, 2006 at 03:58:36PM -0600, Scott Pate wrote:

Plugin 10539 reported a DNS server as allowing recursive queries.  I
tried to verify this with:
...
if ( (pk["flags"] & 0x8085) == 0x8080 )
security_warning(port:53, proto:"udp");
...
It looks like nessus is relying on the 'ra' bit to determine if
recursion is available...correct?

Yes.

If this is the case, why does it report this since the response (from
below) is 0x8082?

Look at the code - 0x8082 & 0x8085 == 0x8080, right? So where's 0x8085 come from? Well, 0x8000 indicates the message is a response and 0x0080 indicates recursion is available.

Also, when the script builds the query, it apparently sets the DNS flags
to "dns["flags"] = 0x0100;", but from the packet capture you see that
the query is actually 0x0000.  Is this correct?

No, it's a bug. Thanks for pointing it out. I've just fixed it.

George
--
theall@tenablesecurity.com
_______________________________________________
Nessus mailing list
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus

<Prev in Thread] Current Thread [Next in Thread>
  • Bind_query, Scott Pate
    • Re: Bind_query, George A. Theall <=