Why is mode 777 unsafe for a directory containing web-served uploads?
777
It removes all read access needed by the web server.
It makes the directory invisible to every process.
It prevents the owner from writing files.
Every local user can create, replace, or remove entries there, weakening content integrity.