in reply to Re^2: File upload became deaf after upgrading from 5.8.7 to 5.8.9
in thread File upload became deaf after upgrading from 5.8.7 to 5.8.9
You'll find the reasons in the PRAGMAS subsection. Look for -private_tempfiles. Here, quoting the documentation:
-private_tempfiles
"CGI.pm can process uploaded file. Ordinarily it spools the uploaded file to a temporary directory, then deletes the file when done. However, this opens the risk of eavesdropping as described in the file upload section. Another CGI script author could peek at this data during the upload, even if it is confidential information. On Unix systems, the -private_tempfiles pragma will cause the temporary file to be unlinked as soon as it is opened and before any data is written into it, reducing, but not eliminating the risk of eavesdropping (there is still a potential race condition). To make life harder for the attacker, the program chooses tempfile names by calculating a 32 bit checksum of the incoming HTTP headers".
"To ensure that the temporary file cannot be read by other CGI scripts, use suEXEC or a CGI wrapper program to run your script. The temporary file is created with mode 0600 (neither world nor group readable)".
|
|---|