Lucene search

K
openvasCopyright (C) 2008 Greenbone AGOPENVAS:1361412562310800115
HistoryOct 21, 2008 - 12:00 a.m.

Multiple XSS Vulnerabilities in PHPWebGallery (Oct 2008)

2008-10-2100:00:00
Copyright (C) 2008 Greenbone AG
plugins.openvas.org
15

CVSS2

7.5

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

AI Score

6.1

Confidence

High

EPSS

0.008

Percentile

81.2%

PHPWebGallery is prone to multiple XSS and script inclusion Vulnerabilities.

# SPDX-FileCopyrightText: 2008 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.800115");
  script_version("2024-02-19T05:05:57+0000");
  script_tag(name:"last_modification", value:"2024-02-19 05:05:57 +0000 (Mon, 19 Feb 2024)");
  script_tag(name:"creation_date", value:"2008-10-21 16:25:40 +0200 (Tue, 21 Oct 2008)");
  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-2008-4591", "CVE-2008-4702");
  script_name("Multiple XSS Vulnerabilities in PHPWebGallery (Oct 2008)");
  script_xref(name:"URL", value:"http://www.milw0rm.com/exploits/6425");

  script_category(ACT_MIXED_ATTACK);
  script_copyright("Copyright (C) 2008 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 80);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name:"impact", value:"Successful attack could lead to execution of arbitrary HTML or scripting
  code in the security context of an affected web page.");

  script_tag(name:"affected", value:"PHPWebGallery Version 1.3.4 and prior on all running platform.");

  script_tag(name:"insight", value:"The flaws are due to improper validation of input data to parameters
  in isadmin.inc.php and init.inc.php file, which allow remote attackers to
  inject arbitrary web script via lang[access_forbiden], lang[ident_title],
  user[language] and user[template] parameters.");

  script_tag(name:"solution", value:"No known solution was made available for at least one year since the disclosure
  of this vulnerability. Likely none will be provided anymore. General solution options are to upgrade to a newer
  release, disable respective features, remove the product or replace the product by another one.");

  script_tag(name:"summary", value:"PHPWebGallery is prone to multiple XSS and script inclusion Vulnerabilities.");

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

  exit(0);
}

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

port = http_get_port(default:80);

dirs = make_list_unique("/phpwebgallery", http_cgi_dirs(port:port));
foreach dir (dirs)
{

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

  url = dir + "/category.php";
  rcvRes = http_get_cache(item:url, port:port);
  if(!rcvRes)
    continue;

  if(rcvRes =~ "Powered by.+PhpWebGallery")
  {
    if(safe_checks())
    {
      rcvRes = eregmatch(pattern:"PhpWebGallery.+ ([0-9.]+)", string:rcvRes);
      if(rcvRes != NULL)
      {
        if(version_is_less_equal(version:rcvRes[1], test_version:"1.3.4")){
          security_message(port);
        }
      }
      exit(0);
    }
    url = dir + "/admin/include/isadmin.inc.php?lang[access_forbiden]=<script>alert(document.cookie);</script>";
    sndReq = http_get(item:url, port:port);
    rcvRes = http_keepalive_send_recv(port:port, data:sndReq, bodyonly:TRUE);
    if(!rcvRes)
      continue;

    if("<script>alert(document.cookie);</script>" >< rcvRes){
      security_message(port);
    }
    exit(0);
  }
}

exit(99);

CVSS2

7.5

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

AI Score

6.1

Confidence

High

EPSS

0.008

Percentile

81.2%

Related for OPENVAS:1361412562310800115