Lucene search
+L

vsftpd FTP Server Detection (FTP)

🗓️ 11 Nov 2015 00:00:00Reported by Copyright (C) 2015 SCHUTZWERK GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 17 Views

vsFTPd FTP Server Detection script grabs the banner of a FTP server to identify vsFTPd FTP Server and its versio

Refs
Code
# SPDX-FileCopyrightText: 2015 SCHUTZWERK GmbH
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.111050");
  script_version("2026-02-19T05:56:52+0000");
  script_tag(name:"last_modification", value:"2026-02-19 05:56:52 +0000 (Thu, 19 Feb 2026)");
  script_tag(name:"creation_date", value:"2015-11-11 18:00:00 +0100 (Wed, 11 Nov 2015)");
  script_tag(name:"cvss_base", value:"0.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");

  script_tag(name:"qod_type", value:"remote_banner");

  script_name("vsftpd FTP Server Detection (FTP)");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2015 SCHUTZWERK GmbH");
  script_family("Product detection");
  script_dependencies("ftpserver_detect_type_nd_version.nasl");
  script_require_ports("Services/ftp", 21);
  script_mandatory_keys("ftp/vsftpd/detected");

  script_tag(name:"summary", value:"FTP based detection of vsftpd.");

  script_xref(name:"URL", value:"https://security.appspot.com/vsftpd.html");

  exit(0);
}

include("cpe.inc");
include("ftp_func.inc");
include("host_details.inc");
include("port_service_func.inc");
include("os_func.inc");

port = ftp_get_port( default:21 );

banner = ftp_get_banner( port:port );
if( ! banner || "vsftpd" >!< tolower( banner ) )
  exit( 0 );

version = "unknown";
install = "/";

# 220 (vsFTPd 3.0.3)
vers = eregmatch( pattern:"vsftpd ([0-9.]+)", string:tolower( banner ) );
if( ! isnull( vers[1] ) )
  version = vers[1];

set_kb_item( name:"vsftpd/detected", value:TRUE );
set_kb_item( name:"vsftpd/ftp/detected", value:TRUE );

# Seems to only run on Unix-like systems, including Linux
os_register_and_report( os:"Linux/Unix", cpe:"cpe:/o:linux:kernel", port:port, desc:"vsftpd FTP Server Detection (FTP)", runs_key:"unixoide" );

cpe = build_cpe( value:version, exp:"^([0-9.]+)", base:"cpe:/a:vsftpd_project:vsftpd:" );
if( ! cpe )
  cpe = "cpe:/a:vsftpd_project:vsftpd";

register_product( cpe:cpe, location:install, port:port, service:"ftp" );

log_message( data:build_detection_report( app:"vsftpd", version:version, install:install, cpe:cpe,
                                          concluded:banner ),
             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

19 Feb 2026 00:00Current
5.4Medium risk
Vulners AI Score5.4
17