Lucene search
+L

PHPWebGallery Multiple XSS Vulnerabilities (Oct 2008)

🗓️ 21 Oct 2008 00:00:00Reported by Copyright (C) 2008 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 26 Views

Multiple XSS Vulnerabilities in PHPWebGallery (Oct 2008). Improper validation of input data allows remote attackers to inject arbitrary web script

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2008-4591
16 Oct 200818:00
attackerkb
circl
Circl
CVE-2008-4591
11 Sep 200800:00
circl
circl
Circl
CVE-2008-4702
11 Sep 200800:00
circl
cve
CVE
CVE-2008-4591
16 Oct 200817:00
cve
cve
CVE
CVE-2008-4702
22 Oct 200821:00
cve
cvelist
Cvelist
CVE-2008-4591
16 Oct 200817:00
cvelist
cvelist
Cvelist
CVE-2008-4702
22 Oct 200821:00
cvelist
exploitdb
Exploit DB
PHPWebGallery 1.3.4 - Cross-Site Scripting / Local File Inclusion
11 Sep 200800:00
exploitdb
euvd
EUVD
EUVD-2008-4571
7 Oct 202500:30
euvd
euvd
EUVD
EUVD-2008-4682
7 Oct 202500:30
euvd
Rows per page
# 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("2025-12-11T05:46:19+0000");
  script_tag(name:"last_modification", value:"2025-12-11 05:46:19 +0000 (Thu, 11 Dec 2025)");
  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("PHPWebGallery Multiple XSS Vulnerabilities (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 cross-site scripting (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);

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 Dec 2025 00:00Current
7High risk
Vulners AI Score7
CVSS 27.5
EPSS0.02486
26