ArGoSoft FTP Server Multiple Vulnerabilities (SITE ZIP, UNZIP, COPY, PASS)
2 Mar. 2004
STORM has discovered multiple security vulnerabilities in ArGoSoft's FTP Server:
1) Three allow overflowing an internal buffer - Buffer Overflows
2) One allows discovering whether a file exist on a server (files that reside outside the bound FTP root directory) - File Disclosure
3) Another one allows causing a DoS by overwriting critical parts of the user database file (by the password change mechanism) in such a way that the user database is no longer useable - Denial of Service
SecurITeam would like to thank STORM for finding this vulnerability.
* ArGoSoft version 184.108.40.206 and prior
* ArGoSoft version 220.127.116.11
* ArGoSoft version 18.104.22.168
The first two vulnerabilities revolve the use of the SITE ZIP command, the parameters of that command are not checked for their length, causing the program to overflow the internal buffer used by the command. The first one can be caused by sending "SITE ZIP Ax512" (x512 = write the "A" character 512 times), the second one can be caused by sending "SITE ZIP storm.zip /f:Ax2048". The next vulnerability that causes a buffer overflow is caused by using the command "SITE COPY", to recreate this send "SITE COPY Ax2048 Ax10".
The file disclosure vulnerability is caused by the "SITE UNZIP" command, the parameter given to the SITE UNZIP command is the file it should unzip, as the file can contain "../" (i.e. it is not filtered), files that reside outside the FTP root directory can be verified for their existence (this is done by comparing the response for ../boot.ini and ../notthere.ini).
Denial of Service:
The denial of service vulnerability is caused by the "SITE PASS" command, this command receives as a second parameter the new password you are interested in using, if you give it a password that is very long, the user database will become corrupt and unusable.
Upgrade to the latest version of ArGoSoft FTP Server.
The vendor was very responsive and quick to fix the issue (within the first 48 hours), the newest version should fix the above vulnerabilities. The new version is available from the vendor's web site.
Exploit (for all the vulnerabilities):
# Multiple Vulnerabilities in ArGoSoft FTP Server version 1.4 (22.214.171.124)
# Created by Beyond Security Ltd. - All rights reserved.