>> I am using apache commns fileupload to let users to upload their files
>> to a web site. The web site itself is using https protol, so that the
[quoted text clipped - 5 lines]
>> these files will be exposed to the attacker, is there a way to do the
>> follows:
[...]
> As for temporary files being exposed, I'm not that familiar with the
> Apache FileUpload API - but you could check if some way of accessing the
> incoming file data as a stream is available that does not involve creating
> temporary files - If it is, then you could perform on the fly encryption
> on the stream, and the data would never appear on disk in its unencrypted
> form.
Well, the data might appear inside of the OS swap file...
- Oliver
Babu Kalakrishnan - 25 Sep 2006 23:06 GMT
>>> I am using apache commns fileupload to let users to upload their files
>>> to a web site. The web site itself is using https protol, so that the
[quoted text clipped - 16 lines]
>
> Well, the data might appear inside of the OS swap file...
Still worse, the hacker could replace the servlet code with his own
version that writes out an unencrypted copy of the file. :-) So he
doesn't have to really depend on whether the OS uses swap files or not.
BK