-----BEGIN PGP SIGNED MESSAGE-----

===========================================================================
             AUSCERT External Security Bulletin Redistribution

            ESB-2001.197 -- Debian Security Advisory DSA-056-1
                        man-db local file overwrite
                                14 May 2001

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:                man-db
Vendor:                 Debian
Operating System:       Debian GNU/Linux 2.2
                        Linux
Impact:                 Overwrite Arbitrary Files
Access Required:        Existing Account

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----

- - ------------------------------------------------------------------------
Debian Security Advisory DSA-056-1                   security@debian.org
http://www.debian.org/security/                         Wichert Akkerman
May  8, 2001
- - ------------------------------------------------------------------------


Package        : man-db
Problem type   : local file overwrite
Debian-specific: no

Ethan Benson found a bug in man-db packages as distributed in
Debian/GNU/Linux 2.2. man-db includes a mandb tool which is used to
build an index of the manual pages installed on a system. When the -u or
- - -c option were given on the command-line to tell it to write its database
to a different location it failed to properly drop privileges before
creating a temporary file. This makes it possible for an attacked to do
a standard symlink attack to trick mandb into overwriting any file that
is writable by uid man, which includes the man and mandb binaries.

This has been fixed in version 2.3.16-3, and we recommend that you
upgrade your man-db package immediately. If you use suidmanager
you can also use that to make sure man and mandb are not installed
suid which protects you from this problem. This can be done with the
following commands:

  suidregister /usr/lib/man-db/man root root 0755
  suidregister /usr/lib/man-db/mandb root root 0755

Of course even when using suidmanager an upgrade is still strongly
recommended.


wget url
        will fetch the file for you
dpkg -i file.deb
        will install the referenced file.


Debian GNU/Linux 2.2 alias potato
- - ---------------------------------

  Potato was released for alpha, arm, i386, m68k, powerpc and sparc.

  Source archives:
    http://security.debian.org/dists/stable/updates/main/source/man-db_2.3.16-3.dsc
      MD5 checksum: 9b151e47acd5724d0a92b5ad7744d6ae
    http://security.debian.org/dists/stable/updates/main/source/man-db_2.3.16-3.tar.gz
      MD5 checksum: dab73666ef671d0bb4995c4ba653d2c3

  Alpha architecture:
    http://security.debian.org/dists/stable/updates/main/binary-alpha/man-db_2.3.16-3_alpha.deb
      MD5 checksum: 0e075e4788b1dc1edfa35d4d21a48252

  ARM architecture:
    http://security.debian.org/dists/stable/updates/main/binary-arm/man-db_2.3.16-3_arm.deb
      MD5 checksum: 3de307e54eafaf23dea1f8016bc0a2aa

  Intel ia32 architecture:
    http://security.debian.org/dists/stable/updates/main/binary-i386/man-db_2.3.16-3_i386.deb
      MD5 checksum: 434291472106de31c2f10dce3c725a3c

  Motorola 680x0 architecture:
    http://security.debian.org/dists/stable/updates/main/binary-m68k/man-db_2.3.16-3_m68k.deb
      MD5 checksum: 3025cc1e2303dca7ebf3e6df7a60a587

  PowerPC architecture:
    http://security.debian.org/dists/stable/updates/main/binary-powerpc/man-db_2.3.16-3_powerpc.deb
      MD5 checksum: 880642cfed94f5f02d9212e940ba0c46

  Sun Sparc architecture:
    http://security.debian.org/dists/stable/updates/main/binary-sparc/man-db_2.3.16-3_sparc.deb
      MD5 checksum: 4df2f927732b9f6d1a5e9b62b8ecb0ff

  These packages will be moved into the stable distribution on its next
  revision.

For not yet released architectures please refer to the appropriate
directory ftp://ftp.debian.org/debian/dists/sid/binary-$arch/ .

- - -- 
- - ----------------------------------------------------------------------------
apt-get: deb http://security.debian.org/ stable/updates main
dpkg-ftp: ftp://security.debian.org/debian-security dists/stable/updates/main
Mailing list: debian-security-announce@lists.debian.org

- -----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQB1AwUBOvf6wKjZR/ntlUftAQFt6QMAhsfK5y21AvmrtvT9vThKr+bC2lSaSc/0
/jdYqqzaijS9GKleM7iDmGKFcyR+sU0Q5yJUfME/NIp2d279hAzzP76eoQHc1jh0
Y0jWNEIOblOm4g0J+TTGe/8YEjHjd3yq
=MefB
- -----END PGP SIGNATURE-----

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content.  The decision to use any or all of this information is
the responsibility of each user or organisation, and should be done so in
accordance with site policies and procedures.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the original authors to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

	http://www.auscert.org.au/Information/advisories.html

If you believe that your system has been compromised, contact AusCERT or
your representative in FIRST (Forum of Incident Response and Security
Teams).

Internet Email: auscert@auscert.org.au
Facsimile:	(07) 3365 7031
Telephone:	(07) 3365 4417 (International: +61 7 3365 4417)
		AusCERT personnel answer during Queensland business hours
		which are GMT+10:00 (AEST).
		On call after hours for emergencies.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: ftp://ftp.auscert.org.au/pub/auscert/AUSCERT_PGP.key

iQCVAwUBOv/xRCh9+71yA2DNAQG+2gP8CGgOmYZWzFIWFeuNMc1Mop2UJf8pvWNM
MeykaE8YAd2WDAvWtKVaPuHtXlkZ4Eu3h2I5Ylcre+N7hjQ5GC3zNRNYtoh/vVr3
N+KI6TtCXM8DTIvJw1pUnqAsrgFJPAq8/PI/ICcZzgW0OR12/EgEcM+06INIy1cB
xIN6GeXdOeY=
=w4K8
-----END PGP SIGNATURE-----