Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for file upload scripts on my own server 2

Status
Not open for further replies.

jimoblak

Instructor
Oct 23, 2001
3,620
US
I'm doing a security assessment for any unintentional doorways that might allow PHP to upload files to a server. To search for a file upload function, would I only need to grep for "$_FILES" or are there other things I should search for as well?

The goal is to search for all PHP scripts that perform file upload operations. Once found, we'll manually review each one for security issues.
 
There is a variable $GLOBALS, which contains references to all variables in the global scope of the script, including $_POST, $_GET, $_FILES and itself.



Want the best answers? Ask the best questions! TANSTAAFL!
 
If you're running PHP as a CGI scripting engine (rather than as a web server module), it may be possible to have file uploads passed to a script via STDIN, too.



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top