quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Lehuen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MODPYTHON-40) FieldStorage : don't stream file uploads to memory
Date Fri, 25 Mar 2005 21:54:19 GMT
     [ http://issues.apache.org/jira/browse/MODPYTHON-40?page=comments#action_61569 ]
     
Nicolas Lehuen commented on MODPYTHON-40:
-----------------------------------------

Two threads on this issue :

http://www.modpython.org/pipermail/mod_python/2005-March/017754.html

and 

http://www.modpython.org/pipermail/mod_python/2005-March/017756.html

> FieldStorage : don't stream file uploads to memory
> --------------------------------------------------
>
>          Key: MODPYTHON-40
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-40
>      Project: mod_python
>         Type: Bug
>     Versions: 3.1.4
>     Reporter: Nicolas Lehuen

>
> In mod_python.py/util.py, line 169, we stream a file upload to disk only if its Content-Disposition
header features a filename attribute. Otherwise, the file is streamed to memory, thus opening
a potential DoS attack by uploading very large files.
> We should :
> 1) Always stream file upload to disk
> 2) Define a default maximum file size which could be overridable.
> 3) Allow for the user to specify in which directory file uploads should be made, with
a default to a temporary directory / file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message