CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
NONE
Integrity Impact
PARTIAL
Availability Impact
NONE
AV:N/AC:M/Au:N/C:N/I:P/A:N
AI Score
Confidence
Low
EPSS
Percentile
70.5%
phpPgAdmin is prone to multiple cross-site scripting (XSS)
vulnerabilities because it fails to properly sanitize user-supplied input.
# SPDX-FileCopyrightText: 2011 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:phppgadmin:phppgadmin";
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.103295");
script_version("2023-09-29T05:05:51+0000");
script_tag(name:"last_modification", value:"2023-09-29 05:05:51 +0000 (Fri, 29 Sep 2023)");
script_tag(name:"creation_date", value:"2011-10-12 15:33:11 +0200 (Wed, 12 Oct 2011)");
script_tag(name:"cvss_base", value:"4.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
script_cve_id("CVE-2011-3598");
script_tag(name:"qod_type", value:"remote_banner_unreliable");
script_tag(name:"solution_type", value:"VendorFix");
script_name("phpPgAdmin Multiple XSS Vulnerabilities");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2011 Greenbone AG");
script_family("Web application abuses");
script_dependencies("gb_phppgadmin_http_detect.nasl");
script_mandatory_keys("phppgadmin/detected");
script_tag(name:"summary", value:"phpPgAdmin is prone to multiple cross-site scripting (XSS)
vulnerabilities because it fails to properly sanitize user-supplied input.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"impact", value:"An attacker may leverage these issues to execute arbitrary
script code in the browser of an unsuspecting user in the context of the affected site. This may
allow the attacker to steal cookie-based authentication credentials and launch other attacks.");
script_tag(name:"affected", value:"phpPgAdmin version 5.0.2 and probably prior.");
script_tag(name:"solution", value:"Vendor updates are available. Please see the references for more
information.");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/49914");
script_xref(name:"URL", value:"http://freshmeat.net/projects/phppgadmin/releases/336969");
script_xref(name:"URL", value:"http://www.securelist.com/en/advisories/46248");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if (!port = get_app_port(cpe: CPE))
exit(0);
if (!infos = get_app_version_and_location(cpe: CPE, port: port, exit_no_version: TRUE))
exit(0);
version = infos["version"];
location = infos["location"];
if (version_is_less_equal(version: version, test_version: "5.0.2")) {
report = report_fixed_ver(installed_version: version, fixed_version: "See advisory", install_path: location);
security_message(port: port, data: report);
exit(0);
}
exit(99);