dcsimg
Linux Today: Linux News On Internet Time.




More on LinuxToday


SuSE Security Announcement: apache

Sep 07, 2000, 21:38 (0 Talkback[s])
(Other stories by Roman Drahtmueller)

Date: Thu, 7 Sep 2000 20:03:46 +0200
From: Roman Drahtmueller draht@suse.de
To: BUGTRAQ@SECURITYFOCUS.COM
Subject: SuSE Security Announcement: apache


                        SuSE Security Announcement

        Package:                apache
        Date:                   Thursday, September 7th, 2000 20:00 MEST
        Affected SuSE versions: 6.1, 6.2, 6.3, 6.4, 7.0
        Vulnerability Type:     remote file viewing
        Severity (1-10):        2
        SuSE default package:   yes
        Other affected systems: none, as of the release date of this advisory

    Content of this advisory:
        1) security vulnerability resolved: apache
           problem description, discussion, solution and upgrade information
        2) credits: @stake
        3) standard appendix (further information)

1) problem description, brief discussion, solution, upgrade information

The default package selection in SuSE distributions includes apache. The configuration file that comes with the package contains two security relevant errors:

a) Starting in SuSE-6.0, a section in apache's configuration file
/etc/httpd/httpd.conf reads
Alias /cgi-bin-sdb/ /usr/local/httpd/cgi-bin/
This allows remote users to read the cgi script sources of the server, located in /usr/local/httpd/cgi-bin/.

b) Starting with SuSE-6.3, the distribution comes with the apache module WebDAV. It is contained in a seperate package, named mod_dav, and it is installed if selected by hand or if a network server configuration has been selected in the installation process. mod_dav is not contained in the default package selection. WebDAV stands for "Web-based Distributed Authoring and Versioning" and allows users to collaboratively edit and manage files on remote web servers (see http://www.webdav.org/ for further details!). If WebDAV is installed, apache will automatically run with the module activated. Opposing the recommendations on the WebDAV homepage under http://www.webdav.org/mod_dav/#security, there is no access control or authentification activated. This should most definitely be considered a security problem.

The overall policy wrt activating an installed package will adopt to this conclusion in future releases of the SuSE Linux distribution.

Problem a) and b) can be easily solved by changing the relevant parts of apache's configuration file /etc/httpd/httpd.conf:

a) Change "Alias /cgi-bin-sdb/ /usr/local/httpd/cgi-bin/" to read:
"ScriptAlias /cgi-bin-sdb/ /usr/local/httpd/cgi-bin/"
Then, restart apache: `/sbin/init.d/apache restart'

b) Change "DAV On" to read: "DAV Off". This removes the problem, regardless of the package being installed or not. Alternatively, you may wish to remove the mod_dav package using the command
`rpm -e mod_dav'.
Then, restart apache: `/sbin/init.d/apache restart'

SuSE strongly recommends to have these changes applied as soon as possible. In addition, SuSE provides an update for the vulnerable misconfigured packages for the case that the admin of a SuSE Linux machine did not change the configuration file yet.

Download the update package from locations desribed below and install the package with the command `rpm -Fhv file.rpm'. The md5sum for each file is in the line below. You can verify the integrity of the rpm files using the command
`rpm --checksig --nogpg file.rpm',
independently from the md5 signatures below.

i386 Intel Platform:

SuSE-7.0
ftp://ftp.suse.com/pub/suse/i386/update/7.0/n1/apache-1.3.12-107.i386.rpm
65bac933de7676ad3d8f63b32c608dad
source rpm:
ftp://ftp.suse.com/pub/suse/i386/update/7.0/zq1/apache-1.3.12-107.nosrc.rpm
5b0f9ce9b5e2c3a45356fcd9cdff07ba

SuSE-6.4
ftp://ftp.suse.com/pub/suse/i386/update/6.4/n1/apache-1.3.12-107.i386.rpm
a4bea77974c9d300ac13698e6f9812eb
source rpm:
ftp://ftp.suse.com/pub/suse/i386/update/6.4/zq1/apache-1.3.12-107.nosrc.rpm
39cf311c44bc760159c711c7ec97685f

SuSE-6.3
ftp://ftp.suse.com/pub/suse/i386/update/6.3/n1/apache-1.3.9-70.i386.rpm
87d7a6426857e6f3afcf991c273fc1a5
source rpm:
ftp://ftp.suse.com/pub/suse/i386/update/6.3/zq1/apache-1.3.9-70.nosrc.rpm
ab81b76d0c4e6c765b77a69fd4143620

SuSE-6.2
ftp://ftp.suse.com/pub/suse/i386/update/6.2/n1/apache-1.3.6-52.i386.rpm
d7c513bb4aad15a9f3dfb11ff1302405
source rpm:
ftp://ftp.suse.com/pub/suse/i386/update/6.2/zq1/apache-1.3.6-52.nosrc.rpm
bdabbdf7df648c3b4b8c5fd031e65cfc

SuSE-6.1
ftp://ftp.suse.com/pub/suse/i386/update/6.1/n1/apache-1.3.6-53.i386.rpm
db40e37d1931fb4e5830358b37acee5e
source rpm:
ftp://ftp.suse.com/pub/suse/i386/update/6.1/zq1/apache-1.3.6-53.nosrc.rpm
8ad785cb5f16456b8540982f1175b0b0

SuSE-6.0 Please use the update packages from the 6.1 directory for SuSE-6.0!

Sparc Platform:

SuSE-7.0
ftp://ftp.suse.com/pub/suse/sparc/update/7.0/n1/apache-1.3.12-109.sparc.rpm
66f87cb2100960ee72ae1110fa077424
source rpm:
ftp://ftp.suse.com/pub/suse/sparc/update/7.0/zq1/apache-1.3.12-109.nosrc.rpm
fff4bd1d37a7e9d430e8a60898865567

AXP Alpha Platform:

SuSE-6.4
The update packages will be available soon at the usual location
ftp://ftp.suse.com/pub/suse/axp/update/6.4/n1/ .
Until then, please correct the configuration file by hand as described above.

SuSE-6.3
The update packages will be available soon at the usual location
ftp://ftp.suse.com/pub/suse/axp/update/6.3/n1/ .
Until then, please correct the configuration file by hand as described above.

SuSE-6.1
ftp://ftp.suse.com/pub/suse/axp/update/6.1/n1/apache-1.3.6-43.alpha.rpm
eaca8f06c54c669d60f6a06fbe7301dc
source rpm:
ftp://ftp.suse.com/pub/suse/axp/update/6.1/zq1/apache-1.3.6-43.nosrc.rpm
2227de2e6d5faf268413cd474175d126

PPC Power PC Platform:

SuSE-6.4
ftp://ftp.suse.com/pub/suse/ppc/update/6.4/n1/apache-1.3.12-108.ppc.rpm
0c830d4d33f2bac33d6a44ab0efc34e7
source rpm:
ftp://ftp.suse.com/pub/suse/ppc/update/6.4/zq1/apache-1.3.12-108.nosrc.rpm
f5fd7575d67e369f87fb2e5c47b61eaf

SuSE-6.3
The update packages will be available soon at the usual location
ftp://ftp.suse.com/pub/suse/ppc/update/6.3/n1/ .
Until then, please correct the configuration file by hand as described above.


2) Credits:

SuSE would like to express its sincere appreciation for the efforts and the working style of the Cerberus Security Team/@Stake Inc., in particular to mnemonix (David Litchfield ) and to weld weld@atstake.com. Have a look at their website at http://www.atstake.com/ for further information.


3) standard appendix:

SuSE runs two security mailing lists to which any interested party may subscribe:

suse-security@suse.com
- general/linux/SuSE security discussion.
All SuSE security announcements are sent to this list. To subscribe, send an email to suse-security-subscribe@suse.com.

suse-security-announce@suse.com
- SuSE's announce-only mailing list.
Only SuSE's security annoucements are sent to this list. To subscribe, send an email to suse-security-announce-subscribe@suse.com.

For general information or the frequently asked questions (faq) send mail to:
suse-security-info@suse.com or
suse-security-faq@suse.com respectively.


SuSE's security contact is security@suse.com.


Regards,
Roman Drahtmüller.
- - --

 -                                                                      -
| Roman Drahtmüller        draht@suse.de //          "Caution: Cape does |
  SuSE GmbH - Security           Phone: //       not enable user to fly."
| Nürnberg, Germany     +49-911-740530 // (Batman Costume warning label) |
 -                                                                      -