Lucene search
+L

OpenEMR < 5.0.0 Patch 2 Multiple Vulnerabilities

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

OpenEMR < 5.0.0 Patch 2 Multiple Vulnerabilities. Prone to OS Command Injection and Reflected Cross Site Scripting

Refs
Code
# SPDX-FileCopyrightText: 2017 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:open-emr:openemr";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.112148");
  script_version("2025-04-11T15:45:04+0000");
  script_tag(name:"last_modification", value:"2025-04-11 15:45:04 +0000 (Fri, 11 Apr 2025)");
  script_tag(name:"creation_date", value:"2017-12-06 13:27:26 +0100 (Wed, 06 Dec 2017)");
  script_tag(name:"cvss_base", value:"9.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:C/I:C/A:C");

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

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

  script_name("OpenEMR < 5.0.0 Patch 2 Multiple Vulnerabilities");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2017 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_openemr_http_detect.nasl");
  script_mandatory_keys("openemr/detected");

  script_tag(name:"summary", value:"OpenEMR is prone to multiple vulnerabilities.");

  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"insight", value:"The following vulnerabilities exist:

  - No CVE: Any OS commands can be injected by an authenticated attacker with any role. This is a
  serious vulnerability as the chance for the system to be fully compromised is very high.

  - No CVE: XSS vulnerability allows an attacker to inject malicious client side scripting which
  will be executed in the browser of users if they visit the manipulated site. There are different
  issues affecting various components.");

  script_tag(name:"impact", value:"By exploiting the vulnerability, an attacker can fully
  compromise the web server which has OpenEMR installed. Potentially sensitive health care and
  medical data might get exposed through this attack.");

  script_tag(name:"affected", value:"OpenEMR versions prior to 5.0.0 patch 2.");

  script_tag(name:"solution", value:"Update to version 5.0.0 patch 2 or higher.");

  script_xref(name:"URL", value:"http://seclists.org/fulldisclosure/2017/Dec/16");

  exit(0);
}

include("host_details.inc");
include("version_func.inc");

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

if (!infos = get_app_version_and_location(cpe: CPE, port: port, exit_no_version: TRUE))
  exit(0);

version = infos["version"];
location = infos["location"];

if (version_is_less(version: version, test_version: "5.0.0-2")) {
  report = report_fixed_ver(installed_version: version, fixed_version: "5.0.0-2 (5.0.0 Patch 2)", install_path: location);
  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