Closed jummy0 closed 9 years ago
This is the most serious issue we've found so far, in my opinion. It should be a simple fix, but I am working on finishing SQL query security. I'm going to assign this issue to Jimmy.
I did it for you, Jimmy. I rearranged all the checks so that uploads cannot be made unless you are logged in and the file has the proper extension. This issue has to be left open since the branch with my patch has not been tested.
On second thought, we should close this so it's more clear what needs done.
When files are uploaded, they are moved to the permanent directory, then checked for filetype. Then, if the file has an invalid filetype, an error is thrown, but nothing is actually done with the file.