--------------------------------------------------------------------------
Debian Security Advisory DSA 202-2                     security@debian.org 
Debian -- Security Information                              Martin Schulze
December 6th, 2002                       Debian -- Debian security FAQ 
--------------------------------------------------------------------------

Package        : im
Vulnerability  : temporary files
Problem-Type   : local
Debian-specific: no

Despite popular belief, the IM packages are not architecture
independent, since the number of the fsync syscal is detected on
build time and this number differs on Linux architectures and
other operating systems.  As a result of this the optional feature
``NoSync=no'' does only work on the architecture the package was
built on.  As usual, we are including the text of the original
advisory DSA 202-1:

   Tatsuya Kinoshita discovered that IM, which contains interface
   commands and Perl libraries for E-mail and NetNews, creates
   temporary files insecurely.

    1. The impwagent program creates a temporary directory in an
       insecure manner in /tmp using predictable directory names
       without checking the return code of mkdir, so it's possible to
       seize a permission of the temporary directory by local access
       as another user.

    2. The immknmz program creates a temporary file in an insecure
       manner in /tmp using a predictable filename, so an attacker
       with local access can easily create and overwrite files as
       another user.

This problem has been fixed in version 141-18.2 for the current
stable distribution (woody), in version 133-2.3 of the old stable
distribution (potato).  A correection is expected for the unstable
distribution (sid) soon.

We recommend that you upgrade your IM package.

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

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
        will update the internal database
apt-get upgrade
        will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.


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

  Source archives:

      
      Size/MD5 checksum:      513 65dd0bbcb7d00d664368fcf9738ba615
      
      Size/MD5 checksum:     7521 954b2f8f55ae7f62683c240322348609
      
      Size/MD5 checksum:   205055 df14f9a251a8d47fc045b6303090be47

  Architecture independent components:

      
      Size/MD5 checksum:   218056 85f7e256fa243204c4797bed622da192


Debian GNU/Linux 3.0 alias woody
--------------------------------

  Source archives:

      
      Size/MD5 checksum:      568 27c54961223aac6c3ad0e9ac8bec2210
      
      Size/MD5 checksum:    14706 03fcab14b6ceab8d3f586ded82fd7fe7
      
      Size/MD5 checksum:   207576 9ecd2d6009048f1fecbc7b2e0e8cd489

  Architecture independent components:

      
      Size/MD5 checksum:   217680 af681b5b5d149adf134471b1dcb37ad7


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

---------------------------------------------------------------------------------
For apt-get: deb  Debian -- Security Information  stable/updates main
For dpkg-ftp:    dists/stable/updates/main
Mailing list: debian-security-announce@lists.debian.org
Package info: `apt-cache show ' and  http://packages.debian.org/


Debian: UPDATE: im tmp file vulnerability

December 6, 2002
Tatsuya Kinoshita discovered that IM, which contains interface commands and Perl libraries for E-mail and NetNews, creates temporary files insecurely.

Summary

Despite popular belief, the IM packages are not architecture
independent, since the number of the fsync syscal is detected on
build time and this number differs on Linux architectures and
other operating systems. As a result of this the optional feature
``NoSync=no'' does only work on the architecture the package was
built on. As usual, we are including the text of the original
advisory DSA 202-1:

Tatsuya Kinoshita discovered that IM, which contains interface
commands and Perl libraries for E-mail and NetNews, creates
temporary files insecurely.

1. The impwagent program creates a temporary directory in an
insecure manner in /tmp using predictable directory names
without checking the return code of mkdir, so it's possible to
seize a permission of the temporary directory by local access
as another user.

2. The immknmz program creates a temporary file in an insecure
manner in /tmp using a predictable filename, so an attacker
with local access can easily create and overwrite files as
another user.

This problem has been fixed in version 141-18.2 for the current
stable distribution (woody), in version 133-2.3 of the old stable
distribution (potato). A correection is expected for the unstable
distribution (sid) soon.

We recommend that you upgrade your IM package.

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

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
will update the internal database
apt-get upgrade
will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.


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

Source archives:


Size/MD5 checksum: 513 65dd0bbcb7d00d664368fcf9738ba615

Size/MD5 checksum: 7521 954b2f8f55ae7f62683c240322348609

Size/MD5 checksum: 205055 df14f9a251a8d47fc045b6303090be47

Architecture independent components:


Size/MD5 checksum: 218056 85f7e256fa243204c4797bed622da192


Debian GNU/Linux 3.0 alias woody
--------------------------------

Source archives:


Size/MD5 checksum: 568 27c54961223aac6c3ad0e9ac8bec2210

Size/MD5 checksum: 14706 03fcab14b6ceab8d3f586ded82fd7fe7

Size/MD5 checksum: 207576 9ecd2d6009048f1fecbc7b2e0e8cd489

Architecture independent components:


Size/MD5 checksum: 217680 af681b5b5d149adf134471b1dcb37ad7


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

Severity
Package : im
Vulnerability : temporary files
Problem-Type : local
Debian-specific: no

Related News