src/sbbs3 ftpsrvr.c 1.409 1.410 ftpsrvr.h 1.50 1.51 sbbs_ini.c 1.145 1.146 Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv16321
Modified Files:
ftpsrvr.c ftpsrvr.h sbbs_ini.c
Log Message:
Implement minimum and maximum file sizes allowed for upload, configurable via MinFileSize and MaxFileSize keys in the [ftp] section of the ctrl/sbbs.ini file these values default to 0 which effectively applies no min/max to uploaded files. Set MinFileSize to 11 to defeat the recent penetration testing seen uploading 10 byte files with random filenames (8 alpha cars ending in ".txt") with 8 alpha chars in the file, followed by a CRLF pair for a total size of 10 bytes.
Fixed bug whereby failed/aborted uploaded files would be left (not deleted). Log errors when any file deletion fails in the FTP server.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net