Project

General

Profile

Actions

Bug #15052

closed

Files in fileadmin/_temp_/ can be downloaded by anyone

Added by Michael Stucki about 19 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2005-10-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

It may happen that someone creates an export of all fe_users into a t3d file. He takes the file, moves to his next site, and imports it again.

While importing the file using impexp, the file is actually being uploaded to fileadmin/_temp_/ first. When importing the t3d file, impexp will use this copy. After the import, the file is not deleted.

This could apply to many other use cases, it's just an example to explain why fileadmin/_temp_/ should be secured in some way.

The easiest way to solve this is to add a .htaccess in fileadmin/_temp_ and deny access to anybody.

Furthermore, the impexp extension should remove t3d files after they have been successfully imported.
(issue imported from #M1604)


Files

.htaccess (228 Bytes) .htaccess Administrator Admin, 2005-10-14 18:41
Actions #1

Updated by Thorsten Kahler about 19 years ago

I'm not sure about this, but I don't think that any of these temporary files are intended to be delivered to the web. So IMHO access to all files in "_temp_" directories can be denied without causing headaches.

I also could imagine some kind of garbage collector like in tslib_feUserAuth::fetchSessionData(). All files older than e.g. 5 minutes are deleted, triggered by a random FE or BE access. This would also work in environments where no cron jobs are available (-> mass hosting).

Actions #2

Updated by Mathias Schreiber about 19 years ago

What if I WANT to keep my files?
I think this is a quite theoretical risk, since one would have to know the name of the file to download it.

Actions #3

Updated by Michael Stucki about 18 years ago

Fixed since 4.0...

Actions

Also available in: Atom PDF