Nom du paquet
mod_php3
Date
2000-09-13
Advisory ID
MDKSA-2000:048
Affected versions
6.1 i586 , 7.0 i586 , 7.1 i586

Problem description

A problem exists with PHP3 and PHP4 scripts regarding RFC 1867-based file uploads. PHP saves uploaded files in a temporary directory on the server, using a temporary name that is referenced as the variable $FOO where "FOO" is the name of the file input tag in the submitted form. Many PHP scripts process $FOO without taking measures to ensure that it is in fact a file that resides in the temporary directory. Because of this, it is possible for a remote attacker to supply an arbitrary file name as the value for $FOO by submitting a standard form input tag by that name, and thus cause the PHP script to process arbitrary files. The vulnerability exists in various scripts, and not necessarily with PHP itself, as the script determines what actions to perform on the uploaded file. The new versions of both PHP3 and PHP4 make it easier to secure scripts from this particular vulnerability. They include a new function that makes it easy to determine whether a certain filename is a temporary uploaded file or not: /* Text whether a file is an uploaded file or not */ is_uploaded_file($path); While there is no security vulnerability with PHP3 and PHP4, this upgrade is offered as a convenience because it includes the above illustrated method of file testing.

Updated packages

6.1 i586

 b73921df8913b255541ed5ad3c0f38f2  6.1/RPMS/imap-4.7-7mdk.i586.rpm
2ed6d853e9555ba8207482b82252ca0e  6.1/RPMS/imap-devel-4.7-7mdk.i586.rpm
94054ca71808f5511b28b36c54251fca  6.1/RPMS/mod_php3-3.0.17RC1-1mdk.i586.rpm
43791e71c5bf173aafb1f04b63f401a4  6.1/RPMS/mod_php3-imap-3.0.17RC1-1mdk.i586.rpm
5125bb87025dc94469e39a5dca6da672  6.1/RPMS/mod_php3-manual-3.0.17RC1-1mdk.i586.rpm
94cde6fa8de9881e65c1c9c644db58a0  6.1/RPMS/mod_php3-pgsql-3.0.17RC1-1mdk.i586.rpm
dc255c952fa1bbc6da7d58f07cb20883  6.1/SRPMS/imap-4.7-7mdk.src.rpm
6b9acb9b600b966381bcdd171310496e  6.1/SRPMS/mod_php3-3.0.17RC1-1mdk.src.rpm

7.0 i586

 ccfa45efb7b75e9a1b339ce5ee9d2e6a  7.0/RPMS/mod_php3-3.0.17RC1-1mdk.i586.rpm
d92347eb3565e71d39eadcba72190cb1  7.0/RPMS/mod_php3-imap-3.0.17RC1-1mdk.i586.rpm
8e0dd7c78b185e90c05de23795ad9269  7.0/RPMS/mod_php3-manual-3.0.17RC1-1mdk.i586.rpm
314dc1b6ff55cc2093aa4f8b62e08186  7.0/RPMS/mod_php3-pgsql-3.0.17RC1-1mdk.i586.rpm
6b9acb9b600b966381bcdd171310496e  7.0/SRPMS/mod_php3-3.0.17RC1-1mdk.src.rpm

7.1 i586

 aa29633b12d3e6e20fc3221824879bff  7.1/RPMS/mod_php3-3.0.17RC1-2mdk.i586.rpm
da652b353687feb00ffc30dcc9bf1b45  7.1/RPMS/mod_php3-imap-3.0.17RC1-2mdk.i586.rpm
09c1de4144e9dd8582290f52693119bb  7.1/RPMS/mod_php3-ldap-3.0.17RC1-2mdk.i586.rpm
ccca57603fec136523756f1fee8dee22  7.1/RPMS/mod_php3-manual-3.0.17RC1-2mdk.i586.rpm
eb7eb68a90961d5f46764da4b3c96b36  7.1/RPMS/mod_php3-mysql-3.0.17RC1-2mdk.i586.rpm
b23daef16f43532421d66db6c586ddac  7.1/RPMS/mod_php3-pgsql-3.0.17RC1-2mdk.i586.rpm
11da77983129c163e8789ee191db3693  7.1/SRPMS/mod_php3-3.0.17RC1-2mdk.src.rpm