You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by August Detlefsen <au...@codemagi.com> on 2010/03/10 04:57:06 UTC

Commons-fileupload temp files

I think I have discovered a bug in commons-fileupload: If your browser 
crashes during the course of the upload, a turd (partial file) is left 
in the temp directory. It never gets deleted or copied to the final 
destination. Thus you could fill up their temp directory and DOS 
someone's file upload capability by:

   1. Start uploading a large file
   2. Kill the browser before the max size limit is reached
   3. Repeat N times

This was tested using FireFox 3.6.x

Regards,
August

-- 
August Detlefsen
CEO/Web Application Architect
CodeMagi, Inc.
http://www.codemagi.com