Security Advisory New PHP packages fix vulnerabilities

Advisory: RHSA-2003:159-03
Type: Security Advisory
Severity: N/A
Issued on: 2003-06-30
Last updated on: 2003-06-30
Affected Products: Red Hat Linux 7.1
Red Hat Linux 7.1 for iSeries
Red Hat Linux 7.1 for pSeries
OVAL: N/A
CVEs (cve.mitre.org): CVE-2001-1246
CVE-2002-0985
CVE-2002-0986

Details

Updated PHP packages are available for Red Hat Linux on IBM iSeries and
pSeries systems.

PHP is an HTML-embedded scripting language commonly used with the Apache
HTTP server.

The mail function in PHP 4.x to 4.2.2 may allow local script authors to
bypass safe mode restrictions and modify command line arguments to an
MTA (such as Sendmail). Specifically, the fifth argument to mail() may be
modified, altering MTA behavior and possibly allowing the execution of
arbitrary local commands.

The mail function in PHP 4.x to 4.2.2 does not filter ASCII control
characters from its arguments, which could allow remote attackers to
modify mail message content, including mail headers, and possibly use
PHP as a "spam proxy."

Script authors should note that all input should be checked for unsafe data
by any PHP scripts calling functions such as mail().

PHP versions 4.0.5 through 4.1.0 in safe mode do not properly cleanse
the 5th parameter to the mail() function. This vulnerability allows local
users and possibly remote attackers to execute arbitrary commands via shell
metacharacters.

Note that this PHP errata enforces memory limits on the size of the PHP
process to prevent a badly generated script from becoming a possible source
for a denial of service attack. The default process size is 8MB, though you
can adjust this as necessary through the php.ini directive memory_limit.
For example, to change the process memory limit to 4MB, add
the following:

memory_limit 4194304

Important Note:

Your original /etc/php.ini configuration file is not replaced or
overwritten. Therefore, you should carefully review your configuration file
and adapt it as necessary to your server or service functions.


Solution

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade. Only those
RPMs which are currently installed will be updated. Those RPMs which are
not installed but included in the list will not be updated. Note that you
can also use wildcards (*.rpm) if your current directory *only* contains
the
desired RPMs.

Please note that this update is also available via Red Hat Network. Many
people find this an easier way to apply updates. To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

Updated packages

Red Hat Linux 7.1

SRPMS:
ftp://updates.redhat.com/7.1/en/os/SRPMS/php-4.1.2-7.1.6.src.rpm
Missing file
    6aa08613e86ec4b0751ecef7c59dd776
 
Red Hat Linux 7.1 for iSeries

SRPMS:
ftp://updates.redhat.com/7.1/en/os/iSeries/SRPMS/php-4.1.2-7.1.6.src.rpm
Missing file
    6aa08613e86ec4b0751ecef7c59dd776
 
iSeries:
ftp://updates.redhat.com/7.1/en/os/iSeries/ppc/php-4.1.2-7.1.6.ppc.rpm
Missing file
    64caef8a0e4c782bcfadff497551e2bb
ftp://updates.redhat.com/7.1/en/os/iSeries/ppc/php-devel-4.1.2-7.1.6.ppc.rpm
Missing file
    522686017ce5aedcb0b31ed9299e02cf
ftp://updates.redhat.com/7.1/en/os/iSeries/ppc/php-imap-4.1.2-7.1.6.ppc.rpm
Missing file
    c3cbccfc0fbf33392616fab24d345b98
ftp://updates.redhat.com/7.1/en/os/iSeries/ppc/php-ldap-4.1.2-7.1.6.ppc.rpm
Missing file
    0b58c43acf82ff368750b7137dbf6f32
ftp://updates.redhat.com/7.1/en/os/iSeries/ppc/php-manual-4.1.2-7.1.6.ppc.rpm
Missing file
    5af025f2d87ba885db4285bc021d16b2
ftp://updates.redhat.com/7.1/en/os/iSeries/ppc/php-mysql-4.1.2-7.1.6.ppc.rpm
Missing file
    8aacb82afac44d7d5ddd24ca18899309
ftp://updates.redhat.com/7.1/en/os/iSeries/ppc/php-odbc-4.1.2-7.1.6.ppc.rpm
Missing file
    9a4ff597a654d7a9688a0c32ceebacd6
ftp://updates.redhat.com/7.1/en/os/iSeries/ppc/php-pgsql-4.1.2-7.1.6.ppc.rpm
Missing file
    afb0402e2b1cf06f4003a7aa81a4932d
ftp://updates.redhat.com/7.1/en/os/iSeries/ppc/php-snmp-4.1.2-7.1.6.ppc.rpm
Missing file
    f1b1e67ac0524b733325d1ca237ca691
 
Red Hat Linux 7.1 for pSeries

SRPMS:
ftp://updates.redhat.com/7.1/en/os/pSeries/SRPMS/php-4.1.2-7.1.6.src.rpm
Missing file
    6aa08613e86ec4b0751ecef7c59dd776
 
pSeries:
ftp://updates.redhat.com/7.1/en/os/pSeries/ppc/php-4.1.2-7.1.6.ppc.rpm
Missing file
    64caef8a0e4c782bcfadff497551e2bb
ftp://updates.redhat.com/7.1/en/os/pSeries/ppc/php-devel-4.1.2-7.1.6.ppc.rpm
Missing file
    522686017ce5aedcb0b31ed9299e02cf
ftp://updates.redhat.com/7.1/en/os/pSeries/ppc/php-imap-4.1.2-7.1.6.ppc.rpm
Missing file
    c3cbccfc0fbf33392616fab24d345b98
ftp://updates.redhat.com/7.1/en/os/pSeries/ppc/php-ldap-4.1.2-7.1.6.ppc.rpm
Missing file
    0b58c43acf82ff368750b7137dbf6f32
ftp://updates.redhat.com/7.1/en/os/pSeries/ppc/php-manual-4.1.2-7.1.6.ppc.rpm
Missing file
    5af025f2d87ba885db4285bc021d16b2
ftp://updates.redhat.com/7.1/en/os/pSeries/ppc/php-mysql-4.1.2-7.1.6.ppc.rpm
Missing file
    8aacb82afac44d7d5ddd24ca18899309
ftp://updates.redhat.com/7.1/en/os/pSeries/ppc/php-odbc-4.1.2-7.1.6.ppc.rpm
Missing file
    9a4ff597a654d7a9688a0c32ceebacd6
ftp://updates.redhat.com/7.1/en/os/pSeries/ppc/php-pgsql-4.1.2-7.1.6.ppc.rpm
Missing file
    afb0402e2b1cf06f4003a7aa81a4932d
ftp://updates.redhat.com/7.1/en/os/pSeries/ppc/php-snmp-4.1.2-7.1.6.ppc.rpm
Missing file
    f1b1e67ac0524b733325d1ca237ca691
 

References


Keywords

mail, PHP, safemode


These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/