Re: Create .php file with php [POC CODE INCLUDED]
| From: | Adam Schroeder | Date: | Tue, 26 Jun 2007 23:22:32 +0000 |
| Subject: | Re: Create .php file with php [POC CODE INCLUDED] | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257821@lists.php.net to get a copy of this message | ||
... if you really couldn't write it as dynamic PHP -- you could also save it in a database.
Edward Vermillion wrote:
On Jun 26, 2007, at 3:31 PM, Crayon Shin Chan wrote:On Wednesday 27 June 2007 03:53, Daniel Brown wrote:Most /tmp directories are world rwx. So anyone that can log into the server through a shell, or any account running on the server, has at least read access to anything in the /tmp directory. They wouldn't need to do it through a web script. At least if the temp directory is rwx web server only, shell logins and other accoounts are denied access. Any web script can still get to it though. EdOn 6/26/07, Al Rider <alan@ridersite.org> wrote:How is this different from: "put them in a specific directory that only the web server has access to read, write, and execute"I think most systems have a /tmp directory above the web dir, so outsiders can't watch it anyhow.True, but on an unsecured box, this becomes possible, as Apachewill most likely be running universally asnobody,httpd,apache, ordaemonfor all scripts, including all web-based scripts writing to the /tmp directory. This includes session information, temporary .php files (as Marius requested), et cetera.