Vulnerabilities > CVE-2011-0923 - Improper Input Validation vulnerability in HP Data Protector
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
The client in HP Data Protector does not properly validate EXEC_CMD arguments, which allows remote attackers to execute arbitrary Perl code via a crafted command, related to the "local bin directory."
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 1 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Server Side Include (SSI) Injection An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
- Cross Zone Scripting An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
- Cross Site Scripting through Log Files An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
- Command Line Execution through SQL Injection An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
Exploit-Db
description HP Data Protector Arbitrary Remote Command Execution. CVE-2011-0923. Remote exploit for windows platform id EDB-ID:27400 last seen 2016-02-03 modified 2013-08-07 published 2013-08-07 reporter Alessandro Di Pinto and Claudio Moletta source https://www.exploit-db.com/download/27400/ title HP Data Protector Arbitrary Remote Command Execution description HP Data Protector 6.1 EXEC_CMD Remote Code Execution. CVE-2011-0923. Remote exploit for windows platform id EDB-ID:18521 last seen 2016-02-02 modified 2012-02-25 published 2012-02-25 reporter metasploit source https://www.exploit-db.com/download/18521/ title HP Data Protector 6.1 EXEC_CMD Remote Code Execution description HP Data Protector - Remote Root Shell (Linux). CVE-2011-0923. Remote exploit for linux platform id EDB-ID:17648 last seen 2016-02-02 modified 2011-08-10 published 2011-08-10 reporter SZ source https://www.exploit-db.com/download/17648/ title HP Data Protector - Remote Root Shell Linux description HP Data Protector Remote Shell for HP-UX. CVE-2011-0923. Remote exploit for hp-ux platform id EDB-ID:17614 last seen 2016-02-02 modified 2011-08-05 published 2011-08-05 reporter Adrian Puente Z. source https://www.exploit-db.com/download/17614/ title HP Data Protector Remote Shell for HP-UX
Metasploit
description This module exploits HP Data Protector's omniinet process, specifically against a Windows setup. When an EXEC_CMD packet is sent, omniinet.exe will attempt to look for that user-supplied filename with kernel32!FindFirstFileW(). If the file is found, the process will then go ahead execute it with CreateProcess() under a new thread. If the filename isn't found, FindFirstFileW() will throw an error (0x03), and then bails early without triggering CreateProcess(). Because of these behaviors, if you try to supply an argument, FindFirstFileW() will look at that as part of the filename, and then bail. Please note that when you specify the 'CMD' option, the base path begins under C:\\. id MSF:AUXILIARY/ADMIN/HP/HP_DATA_PROTECTOR_CMD last seen 2020-01-25 modified 2017-07-24 published 2012-03-23 references reporter Rapid7 source https://github.com/rapid7/metasploit-framework/blob/master//modules/auxiliary/admin/hp/hp_data_protector_cmd.rb title HP Data Protector 6.1 EXEC_CMD Command Execution description This exploit abuses a vulnerability in the HP Data Protector service. This flaw allows an unauthenticated attacker to take advantage of the EXEC_CMD command and traverse back to /bin/sh, this allows arbitrary remote code execution under the context of root. id MSF:EXPLOIT/LINUX/MISC/HP_DATA_PROTECTOR_CMD_EXEC last seen 2020-05-21 modified 2017-07-24 published 2012-02-24 references reporter Rapid7 source https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/linux/misc/hp_data_protector_cmd_exec.rb title HP Data Protector 6 EXEC_CMD Remote Code Execution
Packetstorm
data source https://packetstormsecurity.com/files/download/122713/hp-data-protector-rce.py.txt id PACKETSTORM:122713 last seen 2016-12-05 published 2013-08-07 reporter Alessandro Di Pinto source https://packetstormsecurity.com/files/122713/HP-Data-Protector-Arbitrary-Remote-Command-Execution.html title HP Data Protector Arbitrary Remote Command Execution data source https://packetstormsecurity.com/files/download/122712/hp_data_protector_rce.rb.txt id PACKETSTORM:122712 last seen 2016-12-05 published 2013-08-07 reporter Alessandro Di Pinto source https://packetstormsecurity.com/files/122712/HP-Data-Protector-Arbitrary-Remote-Command-Execution.html title HP Data Protector Arbitrary Remote Command Execution data source https://packetstormsecurity.com/files/download/101766/hpdp-exec.txt id PACKETSTORM:101766 last seen 2016-12-05 published 2011-05-28 reporter fdisk source https://packetstormsecurity.com/files/101766/HP-Data-Protector-Client-Code-Execution.html title HP Data Protector Client Code Execution data source https://packetstormsecurity.com/files/download/110186/hp_data_protector_cmd_exec.rb.txt id PACKETSTORM:110186 last seen 2016-12-05 published 2012-02-24 reporter Wireghoul source https://packetstormsecurity.com/files/110186/HP-Data-Protector-6.1-EXEC_CMD-Remote-Code-Execution.html title HP Data Protector 6.1 EXEC_CMD Remote Code Execution data source https://packetstormsecurity.com/files/download/103738/hpdp-shell.txt id PACKETSTORM:103738 last seen 2016-12-05 published 2011-08-05 reporter Adrian Puente Z. source https://packetstormsecurity.com/files/103738/HP-Data-Protector-Remote-Shell.html title HP Data Protector Remote Shell
Saint
bid 46234 description HP Data Protector Client EXEC_CMD Command Execution osvdb 72526 title hp_data_protector_exec_cmd type remote bid 46234 description HP Data Protector Client agent EXEC_SETUP code execution osvdb 72525 title hp_data_protector_exec_setup_exec type remote
Seebug
bulletinFamily exploit description No description provided by source. id SSV:71955 last seen 2017-11-19 modified 2014-07-01 published 2014-07-01 reporter Root source https://www.seebug.org/vuldb/ssvid-71955 title HP Data Protector - Remote Root Shell (Linux Version) bulletinFamily exploit description No description provided by source. id SSV:81012 last seen 2017-11-19 modified 2014-07-01 published 2014-07-01 reporter Root source https://www.seebug.org/vuldb/ssvid-81012 title HP Data Protector Arbitrary Remote Command Execution bulletinFamily exploit description No description provided by source. id SSV:71927 last seen 2017-11-19 modified 2014-07-01 published 2014-07-01 reporter Root source https://www.seebug.org/vuldb/ssvid-71927 title HP Data Protector Remote Shell for HP-UX bulletinFamily exploit description No description provided by source. id SSV:71730 last seen 2017-11-19 modified 2014-07-01 published 2014-07-01 reporter Root source https://www.seebug.org/vuldb/ssvid-71730 title HP Data Protector Client EXEC_CMD Remote Code Execution PoC (ZDI-11-055)
References
- http://dvlabs.tippingpoint.com/blog/2011/02/07/zdi-disclosure-hp
- http://marc.info/?l=bugtraq&m=130391284726795&w=2
- http://marc.info/?l=bugtraq&m=130391284726795&w=2
- http://securityreason.com/securityalert/8261
- http://securityreason.com/securityalert/8323
- http://securityreason.com/securityalert/8329
- http://www.securityfocus.com/bid/46234
- http://www.vupen.com/english/advisories/2011/0308
- http://zerodayinitiative.com/advisories/ZDI-11-055/
- http://dvlabs.tippingpoint.com/blog/2011/02/07/zdi-disclosure-hp
- http://zerodayinitiative.com/advisories/ZDI-11-055/
- http://www.vupen.com/english/advisories/2011/0308
- http://www.securityfocus.com/bid/46234
- http://securityreason.com/securityalert/8329
- http://securityreason.com/securityalert/8323
- http://securityreason.com/securityalert/8261
- http://marc.info/?l=bugtraq&m=130391284726795&w=2
- http://marc.info/?l=bugtraq&m=130391284726795&w=2