Couldn't scripting files(like php) be allowed if, once they are uploaded, their extension was changed, and then when downloaded it was changed back to the default?
I don't think it would be a security threat at all then...
For example, if someone were to try and hack with a php file:
I try to upload a file named hack.php
The name of it gets changed to A.txt (A is the random string that phpBB3 automatically gives it)
Then I try to access it, and I find out it is a txt file, so apache doesn't do anything with it other than display it
Then someone tries to download it and the name gets changed back to hack.php
You could even use something that there isn't any extension for...like make it .aaa(or is there an extension aaa?)
Is there any flaw in that logic?
