Quote:
|
Originally Posted by Industriality
First, thanks to both responses.
permissions must be set to 0777 for the folder to accept the JPG uploads. I can't change that.
|
*ANY* web site that has a folder set to 777 is hackable. It will not matter what kind of .htaccess file you have in that folder as with the permissions being 777, I can remotely destroy that file, delete it or whatever else I would like to do.
Folders with permissions set to 777 is like putting a dead-bolt lock on the front door but leaving all the ground floor windows wide open. In this example:
dead-bolt lock = .htaccess file
ground floor windows = 777 chmod folder
777 = the entire world may edit, delete, upload a file (BIG SECURITY EXPLOIT)
755 = the entire world may read & execute the file
644 = the entire world may read the file
All this to say that a properly written script should be able to accept file uploads. The script (if the permissions were set correctly on the script itself) should now be able to add the file uploaded to the folder. *every* directory that is available for the public to access should have permissions set no higher than 644 orther than the CGI-BIN which should be set to 755. If you are on a server that requires the cgi-bin to be chmod'd to 775, LEAVE THAT COMPANY as that means (775) that anyone who has an account on that server can access that folder with read, write, execute permissions.