Buffer overflow vulnerability in BFTPd (SITE CHOWN)
6 Jan. 2001
Summary
BFTPd is a Linux FTP server with chroot and setreuid functionality. The latest version of BFTP has a potential security problem when the SITE CHOWN command is requested to change the ownership of a file. The vulnerability allows remote attackers to overflow internal buffers, and execute arbitrary code.
Example:
230 User logged in.
site chown AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAA A
550 User 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' not found.
Connection closed by foreign host.
The problem is in the command_chown function in commands.c :