Chmod 777 Risks
February 14, 2008 10:26 PM
Subscribe
Site security experts: Talk to me about chmod 777 directories.
If I have a content manager that is protected by password, checks the mime type upon a file upload, and then saves the file for access via the public website in a "777" directory in the (unix) web root, is that really all that risky? I do have an htaccess file in that directory which denies anything other than defined "safe" file types (as checked by mime-type when the CMS user uploads). There is also an index file in the 777 directory that redirects folks back out to prevent casual browsing.
Again, the great unwashed are not uploading. The files in this directory (all images) are simply used by the public-side site in various pages.
What are the risks, and how likely are they?
posted by maxwelton to computers & internet (14 comments total)
4 users marked this as a favorite
http://www.google.com/search?q=risk+of+777+on+web+servers&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
You're allowing any process or user on the system to do whatever they want to those files.
Local users, other processes, the web servers, cgi scripts, everything.
posted by iamabot at 10:38 PM on February 14, 2008