PHP move_uploaded_file function could allow an attacker to create new files on the system

php-moveuploadedfile-create-files (8591) The risk level is classified as MediumMedium Risk

Description:

PHP could allow a remote attacker to create new files on the system. The PHP move_uploaded_file function does not have an open_dir check. This could allow a remote attacker to use the function to create new files on the system in directories where the Apache user has write access.


Consequences:

File Manipulation

Remedy:

Refer to PHP Bug #16128 for fix information. See References.

References:

Platforms Affected:

  • PHP PHP 4.0 Beta3
  • PHP PHP 4.0 RC1
  • PHP PHP 4.0 Beta 4 Patch1
  • PHP PHP 4.0 Beta2
  • PHP PHP 4.0 RC2
  • PHP PHP 4.0 Beta1
  • PHP PHP 4.0 Beta4
  • PHP PHP 4.0.0
  • PHP PHP 4.0.1
  • PHP PHP 4.0.2
  • PHP PHP 4.0.3
  • PHP PHP 4.0.4
  • PHP PHP 4.0.5
  • PHP PHP 4.0.6
  • PHP PHP 4.0.7
  • PHP PHP 4.1.0
  • PHP PHP 4.1.1
  • PHP PHP 4.1.2

Reported:

Mar 17, 2002

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page