ProFTPD Username Variable Substitution SQL Injection

This script is Copyright (C) 2009-2011 Tenable Network Security, Inc.


Synopsis :

The remote FTP server is vulnerable to a SQL injection attack.

Description :

The remote host is using ProFTPD, a free FTP server for Unix and
Linux.

The variable substitution feature in the version of ProFTPD running on
the remote host can be abused to conduct a SQL injection attack. For
example, a remote attacker can bypass authentication using a specially
crafted username containing a percent sign character ('%'), a single
quote, and SQL code.

See also :

http://www.securityfocus.com/archive/1/500823/30/0/threaded
http://bugs.proftpd.org/show_bug.cgi?id=3124
http://bugs.proftpd.org/show_bug.cgi?id=3180
http://www.proftpd.org/docs/RELEASE_NOTES-1.3.2rc3
http://www.proftpd.org/docs/NEWS-1.3.2rc3
http://comments.gmane.org/gmane.comp.security.oss.general/1489

Solution :

Upgrade to ProFTPD 1.3.2rc3 or later.

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)
CVSS Temporal Score : 6.2
(CVSS2#E:F/RL:OF/RC:C)
Public Exploit Available : true

Family: FTP

Nessus Plugin ID: 35690 ()

Bugtraq ID: 33722

CVE ID: CVE-2009-0542