| Source | Link |
|---|---|
| securityfocus | www.securityfocus.com/archive/1/325641 |
| securityfocus | www.securityfocus.com/archive/1/327511 |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# Ref:
# Date: 18 Jun 2003 16:33:36 -0000
# Message-ID: <[email protected]>
# From: Lorenzo Manuel Hernandez Garcia-Hierro <[email protected]>
# To: [email protected]
# Subject: phpMyAdmin XSS Vulnerabilities, Transversal Directory Attack ,
# Information Encoding Weakness and Path Disclosures
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(11761);
script_version("1.32");
script_set_attribute(attribute:"plugin_modification_date", value:"2025/09/29");
script_bugtraq_id(
7962,
7963,
7964,
7965
);
script_name(english:"phpMyAdmin < 2.5.2 Multiple Vulnerabilities");
script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP application that suffers from
multiple vulnerabilities.");
script_set_attribute(attribute:"description", value:
"The remote host is running a version of phpMyAdmin that is vulnerable
to several attacks :
- It may be tricked into disclosing the physical path of the remote PHP
installation.
- It is vulnerable to cross-site scripting that could allow an attacker
to steal the cookies of your users.
- It is vulnerable to a flaw that could allow an attacker to list the
contents of arbitrary directories on the remote server.
An attacker could use these flaws to gain more knowledge about the remote
host and therefore set up more complex attacks against it.");
script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/325641");
script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/327511");
script_set_attribute(attribute:"solution", value:
"Upgrade to phpMyAdmin 2.5.2 or later.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2003/06/18");
script_set_attribute(attribute:"plugin_publication_date", value:"2003/06/18");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:phpmyadmin:phpmyadmin");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_ATTACK);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2003-2025 Tenable Network Security, Inc.");
script_dependencies("phpMyAdmin_detect.nasl");
script_require_keys("www/phpMyAdmin", "www/PHP");
script_exclude_keys("Settings/disable_cgi_scanning");
script_require_ports("Services/www", 80);
exit(0);
}
#
# The script code starts here
#
include("http.inc");
include("torture_cgi.inc");
port = get_http_port(default:80, php:TRUE);
# Test an install.
install = get_kb_item(string("www/", port, "/phpMyAdmin"));
if (isnull(install)) exit(0);
matches = eregmatch(string:install, pattern:"^(.+) under (/.*)$");
if (!isnull(matches))
{
dir = matches[2];
test_cgi_xss(port: port, dirs: make_list(dir), cgi: "/db_details_importdocsql.php",
pass_str: "Ignoring file passwd",
qs: "submit_show=true&do=import&docpath=../../../../../../../../../../etc");
}
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