[UNIX] AFTPd Core Dump Vulnerability

From: support@securiteam.com
Date: 01/12/02


From: support@securiteam.com
To: list@securiteam.com
Date: Sat, 12 Jan 2002 10:46:26 +0100 (CET)

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  AFTPd Core Dump Vulnerability
------------------------------------------------------------------------

SUMMARY

When a vulnerable version of AFTPd is used under FreeBSD, other systems
might be also affected (AFTPd is not the offical FreeBSD FTP server), it
is possible to cause the program to core dump the memory by issuing a
special FTP change directory command. If the authentication mechanism is
accessed prior to the core dump, the password file will be found inside
the core dump.

DETAILS

Vulnerable systems:
AFTPd version 5.4.4 and prior

Issuing an authentication request (doen't have to be a valid one) followed
by the command: "cd ~" will cause the FTP server to crash, dumping the
memory file into the currently accessed directory. The core dump will
include the password file the FTP server has just accessed in order to
authenticate the user.

ADDITIONAL INFORMATION

The information has been provided by <mailto:nu_omega_tau@altavista.com>
Nu Omega Tau.

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • Re: AUTHENTICATION IN UNIX
    ... I need to implement a "Authendication Module" in my FTP Server(in ... ftp server, or you could use /etc/passwd, or you could use NIS or PAM ... The second question is how the authentication protocol works. ...
    (comp.security.unix)
  • User being LOCKED!
    ... I have a FTP Server that I access via Internet Explorer, and asking for authentication. ... But, everytime I access and the IE ask for user and password, I put the information right and can´t log in becouse my user is lockout!!! ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: Why does FTP work this way?
    ... |authentication and I am placed in the /srv/ftp folder. ... When you access a ftp site with a web browser, ...
    (alt.os.linux.suse)
  • Re: .NET and FTP on IIS question
    ... The FTP server in Windows Server is using Windows accounts for ... authentication. ... not possible with Windows' FTP server. ... > - Allow them to download specific files once they are authenticated through> FTP ...
    (microsoft.public.inetserver.iis)
  • Re: /etc/pwd.db
    ... > I remember once finding a password file on an FTP server which ... > included a message in the salts taunting would-be hackers... ...
    (FreeBSD-Security)