---

Linux-Mandrake Security Update Advisory: mod_php3 update

Date: Wed, 13 Sep 2000 17:07:09 -0600
From: Linux Mandrake Security Team
To: BUGTRAQ@SECURITYFOCUS.COM
Subject: MDKSA-2000:048 – mod_php3 update


                Linux-Mandrake Security Update Advisory


Package name:           mod_php3
Date:                   September 13th, 2000
Advisory ID:            MDKSA-2000:048

Affected versions:      6.1, 7.0, 7.1

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.


Please verify these md5 checksums of the updates prior to
upgrading to ensure the integrity of the downloaded package. You
can do this by running the md5sum program on the downloaded package
by using “md5sum package.rpm”.

Linux-Mandrake 6.1:
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

Linux-Mandrake 7.0:
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

Linux-Mandrake 7.1:
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

To upgrade automatically, use « MandrakeUpdate
».

If you want to upgrade manually, download the updated package
from one of our FTP server mirrors and uprade with “rpm -Uvh
package_name”.

You can download the updates directly from:

ftp://ftp.linux.tucows.com/pub/distributions/Mandrake/Mandrake/updates

ftp://ftp.free.fr/pub/Distributions_Linux/Mandrake/updates

Or try one of the other mirrors listed at:

http://www.linux-mandrake.com/en/ftp.php3.

Updated packages are available in the “updates/[ver]/RPMS/”
directory. For example, if you are looking for an updated RPM
package for Linux-Mandrake 7.1, look for it in “updates/7.1/RPMS/”.
Updated source RPMs are available as well, but you generally do not
need to download them.

Please be aware that sometimes it takes the mirrors a few hours
to update, so if you want an immediate upgrade, please use one of
the two above-listed mirrors.

You can view other security advisories for Linux-Mandrake
at:

http://www.linux-mandrake.com/en/security/

If you want to report vulnerabilities, please contact

security@linux-mandrake.com


Linux-Mandrake has two security-related mailing list services
that anyone can subscribe to:

security-announce@linux-mandrake.com

Linux-Mandrake’s security announcements mailing list. Only
announcements are sent to this list and it is read-only.

security-discuss@linux-mandrake.com

Linux-Mandrake’s security discussion mailing list. This list is
open to anyone to discuss Linux-Mandrake security specifically and
Linux security in general.

To subscribe to either list, send a message to sympa@linux-mandrake.com with
“subscribe [listname]” in the body of the message.

To remove yourself from either list, send a message to sympa@linux-mandrake.com with
“unsubscribe [listname]” in the body of the message.

To get more information on either list, send a message to
sympa@linux-mandrake.com with
“info [listname]” in the body of the message.

Optionally, you can use the web interface to subscribe to or
unsubscribe from either list:

http://www.linux-mandrake.com/en/flists.php3#security

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis