WordPress WPtouch Plugin Path Disclosure Vulnerability

2013-08-06T00:00:00
ID OPENVAS:1361412562310803849
Type openvas
Reporter Copyright (c) 2013 Greenbone Networks GmbH
Modified 2018-10-12T00:00:00

Description

This host is installed with WordPress WPtouch plugin and is prone to path disclosure vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_wp_wptouch_path_disc_vuln.nasl 11883 2018-10-12 13:31:09Z cfischer $
#
# WordPress WPtouch Plugin Path Disclosure Vulnerability
#
# Authors:
# Thanga Prakash S <tprakash@secpod.com>
#
# Copyright:
# Copyright (c) 2013 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# 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.803849");
  script_version("$Revision: 11883 $");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:P/A:N");
  script_tag(name:"last_modification", value:"$Date: 2018-10-12 15:31:09 +0200 (Fri, 12 Oct 2018) $");
  script_tag(name:"creation_date", value:"2013-08-06 11:43:33 +0530 (Tue, 06 Aug 2013)");
  script_name("WordPress WPtouch Plugin Path Disclosure Vulnerability");

  script_tag(name:"summary", value:"This host is installed with WordPress WPtouch plugin and is prone to path
disclosure vulnerability.");
  script_tag(name:"vuldetect", value:"Send a HTTP GET request and check whether it is able to disclose the path
or not.");
  script_tag(name:"solution", value:"Upgrade to version 1.9.8.1 or later.");
  script_tag(name:"insight", value:"Flaws is due to error in the php files in plugin folder and subfolders.");
  script_tag(name:"affected", value:"WPtouch version 1.9.7.1 and prior");
  script_tag(name:"impact", value:"Successful exploitation will allow attacker to gain sensitive information
like installation path.");

  script_xref(name:"URL", value:"http://1337day.com/exploit/21071");
  script_xref(name:"URL", value:"http://cxsecurity.com/issue/WLB-2013080037");
  script_xref(name:"URL", value:"http://packetstormsecurity.com/files/122687");
  script_xref(name:"URL", value:"http://exploitsdownload.com/exploit/na/wptouch-wptouch-pro-xss-path-disclosure");
  script_category(ACT_ATTACK);
  script_tag(name:"qod_type", value:"remote_analysis");
  script_copyright("Copyright (c) 2013 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("secpod_wordpress_detect_900182.nasl");
  script_mandatory_keys("wordpress/installed");
  script_require_ports("Services/www", 80);

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

  exit(0);
}

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

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

url = dir + "/wp-content/plugins/wptouch/wptouch.php";

if(http_vuln_check(port:port, url:url,
   pattern:"<b>Fatal error</b>: .*load_plugin_textdomain\(\) in.*wptouch.php"))
{
  security_message(port);
  exit(0);
}