How can an Apache user write files when having permissions to do it?

你。 提交于 2019-12-25 08:48:44

问题


I'm with a web application that let anonymous users to upload images, transform them and get them later. I have a directory with www-data group owner and 1770 permissions, where the images are uploaded. In Apache configuration, AllowOverride set to none and Options to -Indexes. The input validation is controlled, so would be difficult to exploit. The question is:

How could anyone write files in that directory (if input validation is controlled), where Apache user has permissions to do it?

And what changes when the permissions are set to 777?

来源:https://stackoverflow.com/questions/19538791/how-can-an-apache-user-write-files-when-having-permissions-to-do-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!