Subject: CVS commit: pkgsrc/www
To: None <pkgsrc-changes@netbsd.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 02/28/2002 08:14:47
Module Name:	pkgsrc
Committed By:	jlam
Date:		Thu Feb 28 06:14:47 UTC 2002

Modified Files:
	pkgsrc/www/ap-php4: MESSAGE Makefile
	pkgsrc/www/php4: Makefile Makefile.common PLIST distinfo
	pkgsrc/www/php4/patches: patch-ad

Log Message:
Update php4 and ap-php4 to 4.1.2.  Changes from version 4.1.1 include:

- Fixed start up failure when mm save handler is used and there is multiple
  SAPIs are working at the same time. (Yasuo)
- Fixed a buffer overflow in the RFC-1867 file upload code (Stefan)

			<===> SECURITY NOTE <===>

Note that the buffer overflow fix is a major security fix.  Quoting from
the security advisory at:

	http://security.e-matters.de/advisories/012002.html

"PHP supports multipart/form-data POST requests (as described in RFC1867)
known as POST fileuploads. Unfourtunately there are several flaws in the
php_mime_split function that could be used by an attacker to execute
arbitrary code. During our research we found out that not only PHP4 but
also older versions from the PHP3 tree are vulnerable.

[...]

"If you are running PHP 4.0.3 or above one way to workaround these bugs is
to disable the fileupload support within your php.ini (file_uploads = Off).
If you are running php as module keep in mind to restart the webserver.
Anyway you should better install the fixed or a properly patched version to
be safe."


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 pkgsrc/www/ap-php4/MESSAGE
cvs rdiff -r1.19 -r1.20 pkgsrc/www/ap-php4/Makefile
cvs rdiff -r1.22 -r1.23 pkgsrc/www/php4/Makefile \
    pkgsrc/www/php4/Makefile.common
cvs rdiff -r1.3 -r1.4 pkgsrc/www/php4/PLIST
cvs rdiff -r1.7 -r1.8 pkgsrc/www/php4/distinfo
cvs rdiff -r1.6 -r1.7 pkgsrc/www/php4/patches/patch-ad

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.