I am working on a site where I need registered users to be able to upload images. I had some permissions problems on the server that is hosting the site and my only option without recoding the whole image upload system is to set the folder to 777. the folder actually exists at public_html/images/777_folder. What security risks does this pose if any? There are only images in this folder (if that matters) and the only files that exist there are user uploaded ones. Any help is appreciated.
EDIT:
The users can log in, go to thier pic manager and upload files
Here is a sample of some of the code...
$uploaddir = "images/777_folder/";
$uploaddir = $uploaddir . "$subdir/";
//If the directory doesn't exist, then make it and a thumbnail folder called 'th'
$checkdir = Is_dir($uploaddir);
if (!$checkdir)
mkdir($uploaddir, 0755);
$thumbdir = $uploaddir . "th/";
$checkdir = Is_dir($thumbdir);
if (!$checkdir)
mkdir($thumbdir, 0755);
The problem (I think the code is good... it works on my local machine, not the webserver) seems to be with the first mkdir(). The odd thing to me is that if the first mkdir() (directly under the 777_folder) works, then the thumbnail folder is created fine in a 755 folder. So, the first mkdir() needs to be in a 777 folder, but the second mkdir() works fine in a 755 folder... meh... sorry for the confusing description.