SuSE: 'mod_php' Multiple remote vulnerabilities
Summary
______________________________________________________________________________
SuSE Security Announcement
Package: mod_php, mod_php4
Announcement-ID: SuSE-SA:2002:007
Date: Thursday, Feb 28th 2002 22:00 MET
Affected SuSE products: SuSE Linux 6.4, 7.0, 7.1, 7.2, 7.3,
SuSE Linux Connectivity Server,
SuSE Linux Enterprise Server 7
Vulnerability Type: remote command execution
Severity (1-10): 7
SuSE default package: no
Other affected systems: systems running php modules in their webservers
Content of this advisory:
1) security vulnerability resolved: mod_php, mod_php4
problem description, discussion, solution and upgrade information
2) pending vulnerabilities, solutions, workarounds
3) standard appendix (further information)
______________________________________________________________________________
1) problem description, brief discussion, solution, upgrade information
The e-matters team have found multiple remotely exploitable vulnerabilites
in the source code responsible for file upload in the apache modules
mod_php and mod_php4 (versions 3 and 4). The weakness can be used to have
the webserver execute arbitrary code as supplied by the attacker.
A temporary workaround against the problem is to disable the file-upload
support using the file_uploads directive in the php.ini file.
SuSE Linux versions from 6.4 through 7.1 contained mod_php in versions 3,
in addition to php4. Starting with SuSE Linux 7.2, all SuSE products do
not contain the php-3 package any more. We provide fixed packages for both
major versions of mod_php. We recommend to install the upgrade packages
as a permanent solution for the problem.
SuSE Linux versions 7.1 and 7.2 contained a mod_php4 package for the roxen
http server. If you use the roxen webserver, you should use this package.
SuSE Linux starting with versions 7.2 have a package called mod_php4-core.
This package is required for the update of mod_php4 - by consequence,
you can specify both package filenames in the rpm upgrade command after
having downloaded the RPM package files.
To find out which packages to download and install, use the following
command:
rpm -qa | grep php
Select the packages to download according to the output of the command
above and verify their integrity by the methods listed in section 3) of
this announcement.
Then, install the package(s) using the command "rpm -Fhv file.rpm" to
apply the update. To circumvent problems with package versions depending
on each other, specify all package filenames that you downloaded on
the commandline of the rpm command. Example: "rpm -Fhv f1.rpm f2.rpm".
Our maintenance customers are kindly requested to await the arrival of
the packages on the maintenance web while these packages are currently
going through extensive testing. The packages will be available tomorrow
March 1st. Please use the temporary workaround as described above in the
meanwhile.
SPECIAL INSTALL INSTRUCTIONS:
============================= After applying the update, the apache webserver should be restarted for
the update to become effective. To do this, execute the following command
as root:
rcapache restart
i386 Intel Platform:
SuSE-7.3
57759036006c6e58de18c3aeb45c6026
bf67ea0eae3fad49269513dafb1e9dc6
dfa7414ff43580b499db2e1058f8f433
70734055745db12cd073696801bb483c
source rpm:
49c999b10542dfca7ef3fa6db821324a
SuSE-7.2
2aeb974641c749688085073abb172022
dce52a783db7e05e672668797ce8df86
ca56dc95c22e05e01ab80fdf20667ff2
source rpm:
3bf6894b0ad0d99d895f64383bd0d989
SuSE-7.1
1e700627bf7f4beffc8ddd2d561a8eb8
ad8683f3499b9a94ddf04cb98d937a9c
5607ebeaae4c6968cc2a303934aa525c
source rpm:
a8b213fad528434fd0a76ecd6f64efd9
59c902cc181460e76c87d79389ed2ae1
SuSE-7.0
384ec69cf57d82d879e459369abe0f30
0b8066c5c6708c3591cde686fa0ebd0d
source rpm:
3a1181820dc0aea8a412ffe78910f939
2236e35cc9d05518f141bb1e1dfcbfa4
SuSE-6.4
7ed2b7d7df87e243f16d4601fc86ff79
e2d7209f030de57068e8a8137df7fa8b
source rpm:
f191f6a589cd2f48db315eb13b04905d
f000bd6f629cd3ca1eb1674915bc5e68
Sparc Platform:
SuSE-7.3
0e5651dd6388128becbca8253c20c7db
549d42a54c8c7a2248e88020f9462bf1
852e01eea835b08c6a60d749ba7a83fc
0902ffbf72ab0185513169b206c9eb2c
source rpm:
74ca2271fe120a72b5a8c19ee1c3c91d
SuSE-7.1
9b4be03a0d859f8e20e135b01cd2bdd6
0f47c53ad5aa143858b384dbd34f6731
source rpm:
7265b855b566de06fe75548b3e95922c
SuSE-7.0
14c13b4c207039010216e847823c2eed
2eb8e2bc19bebabfaaf37581fd45ad7b
source rpm:
c9b771b7166a1bd580ef6c046322329d
7a19250c19bec86b08eb4d8a23418459
AXP Alpha Platform:
SuSE-7.1
6f7a7f8df47ee6ac2421667f7db7264d
ac77382743cb67c39293a51cfd9e00b4
9a84772b00b35577a9e1acf1e1ccf38f
source rpm:
4ef545e1921b8187f7c85bb759534196
3f6ae603df3a5bab9aef46f99f8e61ce
SuSE-7.0
470bc80f7964b7ad9b92340d4622a9c4
52990c4e82ef33ff2f16589b3cfee842
source rpm:
13b465f51631bf2fde0b3e4473773779
fa2305309b645a799308a359d1e5b3c9
SuSE-6.4
4b4bb55d4fd2702ad53825c09cdbf319
d6938494ab74b8ee1436f82ea8f175de
source rpm:
985240424ec682de27167a01d98f4c25
717466aae064d608c25b9a46e34dbce4
PPC Power PC Platform:
SuSE-7.3
3f7efc1ae5a0fa851da916d1cf26bc42
4097f6214718d1c332a6ac8e08228009
41fa3215ff4d52cf05522b6fff232d79
d0e5d095ae725fe170661006b5c62e86
source rpm:
56af75e705fb13b6bc23acbecbbc886f
SuSE-7.1
ce51eec29604063b2a50b72ae055981b
a129e7670f7405716bb1a7a10a231f59
source rpm:
8783a6fcdfe3da9d48cdcf78ee964760
SuSE-7.0
81580d598dfe9418251d98378da859ac
7b5838375100e20c81aa9a1e553bf0ed
source rpm:
f4b44b67fe6e57dca79f591f21acfcde
42cdb0304ea6f7ddbfc1ac6a52600316
SuSE-6.4
faed7151496289390205b2fb446a2c46
c26feb6b96e4f4463b5e3d80cd0e9b0a
source rpm:
1dcfe695bf1eadd644284731a1a3b7b1
4d67007f9f33d07a061242e822d13dd4
______________________________________________________________________________
2) Pending vulnerabilities in SuSE Distributions and Workarounds:
- correction:
In our last security announcement SuSE-SA:2002:006 (cups), it is advised
to restart a running instance of cupsd after performing the rpm update
command to make the package upgrade effective (similar to apache in this
announcement). The correct command to accomplish a restart of the cups
daemon is "rccups restart".
- squid (squid2, squid23, squid-beta packages)
Malformed style URLs are not treated safely in all squid
packages. Our packages are available for most architectures and
distributions from our ftp server at the usual location, but the security
announcement is waiting for the last packages to complete building and
testing.
- ucdsnmpd
The UCD snmpd contains a variety of security related bugs.
The SuSE Security Team have been reviewing the code and the available
fixes to ensure that all problems get fixed. The update packages are
available at the usual location, but the security announcement is
waiting for the last packages to complete building and testing.
Regardless of whether you use the fixed or the unfixed packages, it is
it is strongly recommended to filter SNMP (TCP and UDP packets with
destination to port 161) traffic on your inbound router(s).
- ssh/openssh
Rumours are spreading that there is a new security breach in
implementations of secure shell (ssh). The two implementations shipped
with SuSE products have been fixed to our best knowlege, and we are not
aware of any security holes in these packages.
SuSE Security are investigating this issue and will report any
vulnerability found through our announcement list
suse-security-announce@suse.com (subscription information in section 3
of this security announcement).
______________________________________________________________________________
3) standard appendix: authenticity verification, additional information
- Package authenticity verification:
SuSE update packages are available on many mirror ftp servers all over
the world. While this service is being considered valuable and important
to the free and open source software community, many users wish to be
sure about the origin of the package and its content before installing
the package. There are two verification methods that can be used
independently from each other to prove the authenticity of a downloaded
file or rpm package:
1) md5sums as provided in the (cryptographically signed) announcement.
2) using the internal gpg signatures of the rpm package.
1) execute the command
md5sum
References