WikyBlog is prone to multiple vulnerabilities, including an arbitrary-file-
upload issue, a cross-site scripting issue, a remote file-include
issue and a session-fixation issue.
Attackers can exploit these issues to:
WikyBlog 1.7.3rc2 is vulnerable; other versions may also be affected.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: WikyBlog_38386.nasl 5762 2017-03-29 11:20:04Z cfi $
#
# WikyBlog Multiple Remote Input Validation 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 = "WikyBlog is prone to multiple vulnerabilities, including an arbitrary-file-
upload issue, a cross-site scripting issue, a remote file-include
issue and a session-fixation issue.
Attackers can exploit these issues to:
- execute arbitrary script code in the browser of an unsuspecting user
in the context of the affected site.
- steal cookie-based authentication credentials.
- upload arbitrary PHP scripts and execute them in the context of the
webserver.
- compromise the application and the underlying system.
- hijack a user's session and gain unauthorized access to the affected
application.
WikyBlog 1.7.3rc2 is vulnerable; other versions may also be affected.";
if(description)
{
script_id(100506);
script_version("$Revision: 5762 $");
script_tag(name:"last_modification", value:"$Date: 2017-03-29 13:20:04 +0200 (Wed, 29 Mar 2017) $");
script_tag(name:"creation_date", value:"2010-02-24 18:35:31 +0100 (Wed, 24 Feb 2010)");
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_cve_id("CVE-2010-0754");
script_bugtraq_id(38386);
script_name("WikyBlog Multiple Remote Input Validation Vulnerabilities");
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("find_service.nasl", "http_version.nasl");
script_require_ports("Services/www", 80);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name : "summary" , value : tag_summary);
script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/38386");
script_xref(name : "URL" , value : "www.wikyblog.com");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
port = get_http_port(default:80);
if(!can_host_php(port:port))exit(0);
foreach dir( make_list_unique( "/blog", "/Wiky", cgi_dirs( port:port ) ) ) {
if( dir == "/" ) dir = "";
url = string(dir,"/index.php/Special/Main/Templates?cmd=copy&which=%3Cscript%3Ealert(%27openvas-xss-test%27)%3C/script%3E");
req = http_get(item:url, port:port);
buf = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);
if( buf == NULL )continue;
if(buf =~ "HTTP/1\.. 200" && egrep(pattern: "<script>alert\('openvas-xss-test'\)</script>", string: buf, icase: TRUE)) {
report = report_vuln_url( port:port, url:url );
security_message( port:port, data:report );
exit( 0 );
}
}
exit( 99 );