Lucene search

K
openvasCopyright (C) 2009 Greenbone AGOPENVAS:1361412562310800803
HistoryMay 22, 2009 - 12:00 a.m.

KoschtIT Image Gallery Multiple Directory Traversal Vulnerabilities

2009-05-2200:00:00
Copyright (C) 2009 Greenbone AG
plugins.openvas.org
10

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

6.8 Medium

AI Score

Confidence

Low

0.011 Low

EPSS

Percentile

84.7%

KoschtIT Image Gallery is prone to multiple Directory Traversal vulnerabilities.

# 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

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.800803");
  script_version("2023-12-13T05:05:23+0000");
  script_tag(name:"last_modification", value:"2023-12-13 05:05:23 +0000 (Wed, 13 Dec 2023)");
  script_tag(name:"creation_date", value:"2009-05-22 08:49:17 +0200 (Fri, 22 May 2009)");
  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_cve_id("CVE-2009-1510");
  script_name("KoschtIT Image Gallery Multiple Directory Traversal Vulnerabilities");
  script_xref(name:"URL", value:"http://www.milw0rm.com/exploits/8334");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/34335");
  script_xref(name:"URL", value:"http://en.securitylab.ru/nvd/378734.php");
  script_xref(name:"URL", value:"http://koschtit.tabere.net/forum/showthread.php?tid=6");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2009 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "gb_php_http_detect.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 80);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name:"impact", value:"Successful exploitation will let the attacker execute arbitrary commands to
  retrieve local system related files and gain sensitive information.");

  script_tag(name:"affected", value:"KoschtIT Image Gallery version 1.82 and prior.");

  script_tag(name:"insight", value:"Improper validation check while processing user supplied input in the file
  parameter for the files 'ki_makepic.php' and 'ki_nojsdisplayimage.php' under
  ki_base directory.");

  script_tag(name:"solution", value:"Upgrade to KoschtIT Image Gallery version 2.0 Beta 1.");

  script_tag(name:"summary", value:"KoschtIT Image Gallery is prone to multiple Directory Traversal vulnerabilities.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"remote_app");
  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");
include("version_func.inc");

koschITPort = http_get_port(default:80);

if(!http_can_host_php(port:koschITPort))
  exit(0);

foreach dir (make_list_unique("/kos2", "/koschtit", "/koschtit2", "/", http_cgi_dirs(port:koschITPort)))
{

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

  sndReq = http_get(item: dir + "/changelog.txt", port:koschITPort);
  rcvRes = http_keepalive_send_recv(port:koschITPort, data:sndReq);

  if("KoschtIT Image Gallery" >< rcvRes)
  {
    # Match for KoschtIT Image Gallery Version
    ver = eregmatch(pattern:"Gallery ([0-9.]+)(beta)?([0-9]+)?", string:rcvRes);
    if(ver[1] != NULL)
    {
      if(ver[1] != NULL && ver[3] != NULL){
        version = ver[1] + "." + ver[3]; # ver[3] points to beta version.
      }
      else
        version = ver[1];
    }

    if(version != NULL)
    {
      if(version_is_less_equal(version:version, test_version:"1.82"))
      {
        security_message(port:koschITPort, data:"The target host was found to be vulnerable.");
        exit(0);
      }
    }
  }
}

exit(99);

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

6.8 Medium

AI Score

Confidence

Low

0.011 Low

EPSS

Percentile

84.7%

Related for OPENVAS:1361412562310800803