Lucene search
+L

WebNMS 5.2 / 5.2 SP1 Multiple Vulnerabilities

🗓️ 13 Sep 2016 00:00:00Reported by Copyright (C) 2016 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 116 Views

WebNMS 5.2 / 5.2 SP1 Multiple Vulnerabilities. Allow remote code execution, read arbitrary files, obtain cleartext passwords

Related
Refs
Code
# SPDX-FileCopyrightText: 2016 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:zohocorp:webnms";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.106242");
  script_version("2023-07-20T05:05:17+0000");
  script_tag(name:"last_modification", value:"2023-07-20 05:05:17 +0000 (Thu, 20 Jul 2023)");
  script_tag(name:"creation_date", value:"2016-09-13 17:11:16 +0700 (Tue, 13 Sep 2016)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_tag(name:"severity_vector", value:"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2018-10-09 20:00:00 +0000 (Tue, 09 Oct 2018)");

  script_cve_id("CVE-2016-6600", "CVE-2016-6601", "CVE-2016-6602", "CVE-2016-6603");

  script_tag(name:"qod_type", value:"remote_analysis");

  script_tag(name:"solution_type", value:"Mitigation");

  script_name("WebNMS 5.2 / 5.2 SP1 Multiple Vulnerabilities");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2016 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_webnms_detect.nasl");
  script_require_ports("Services/www", 9090);
  script_mandatory_keys("webnms/installed");

  script_tag(name:"summary", value:"WebNMS Framework 5.2 / 5.2 SP1 is prone to multiple vulnerabilities.");

  script_tag(name:"vuldetect", value:"Checks if FileUploadServlet is accessible.");

  script_tag(name:"insight", value:"WebNMS Framework allows unauthenticated remote attackers to:

  - upload a JSP file by using a directory traversal attack on the FileUploadServlet servlet and gain remote code execution
  under the user which the WebNMS server is running.

  - allows context-dependent attackers to obtain cleartext passwords by leveraging access to WEB-INF/conf/securitydbData.xml.

  - read arbitrary files via a .. (dot dot) in the fileName parameter to servlets/FetchFile.

  - bypass authentication and impersonate arbitrary users via the UserName HTTP header.");

  script_tag(name:"impact", value:"An unauthenticated remote attacker may execute arbitrary code under the
  user which the WebNMS server is running and to gain access to sensitive data on the host.");

  script_tag(name:"affected", value:"WebNMS Framework Server 5.2 and 5.2 SP1");

  script_tag(name:"solution", value:"See the referenced for a mitigation procedure.");

  script_xref(name:"URL", value:"https://forums.webnms.com/topic/recent-vulnerabilities-in-webnms-and-how-to-protect-the-server-against-them");
  script_xref(name:"URL", value:"https://blogs.securiteam.com/index.php/archives/2712");
  script_xref(name:"URL", value:"https://www.exploit-db.com/exploits/40229/");

  exit(0);
}

include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");

if (!port = get_app_port(cpe: CPE)) exit(0);
if (!dir = get_app_location(cpe: CPE, port: port)) exit(0);

if (dir == "/") dir = "";
url = dir + "/servlets/FileUploadServlet";

req = http_get(port: port, item: url);
res = http_keepalive_send_recv(port: port, data: req, bodyonly: FALSE);

# The servlet seems to only allow PUT requests
if (res =~ "^HTTP/1\.[01] 405") {
  report = http_report_vuln_url(port: port, url: url);
  security_message(port: port, data: report);
  exit(0);
}

exit(0);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

20 Jul 2023 00:00Current
8.7High risk
Vulners AI Score8.7
CVSS 27.5
CVSS 39.8
EPSS0.96949
116