Hi all. Security question.
I'm currently developing a PHP site which will be served from Oracle's 9IAS. My sysadmin is quite helpful, but is very concerned about security, and giving PHP the ability to write files.
He's given me the following analogy as to how Java ensures security when allowing servlets to access files on the filesystem:
"In Java there is the idea of a sandbox. If you are serving a Java servlet to someone on the web there is no way that the servlet can access files outside of that sandbox. This protects the server from unauthorized and unforseen file access."
Is there an equivalent to this in PHP?
The other option I'm putting forth is to chmod one directory on the server to a+w such that I could allow users to upload photos to that directory (my other option is to store them as BLOBs in a PostgreSQL db).
Does anyone have any opinions on the sanbox paradigm, and also on any security issues which might arise from allowing one directory on the server to be fully writeable?
Thanks in advance,
Pablo