RedHat: 'enscript' Temporary file handling vulnerability
Posted by LinuxSecurity.com Team   
RedHat Linux Updated enscript packages that fix insecure handling of temporary files are available.

---------------------------------------------------------------------
                   Red Hat, Inc. Red Hat Security Advisory

Synopsis:          Updated enscript packages fix temporary file handling vulnerabilities
Advisory ID:       RHSA-2002:012-06
Issue date:        2002-01-14
Updated on:        2002-01-17
Product:           Red Hat Linux
Keywords:          enscript temporary files
Cross references:  
Obsoletes:         
---------------------------------------------------------------------

1. Topic:

Updated enscript packages that fix insecure handling of 
temporary files are available.

2. Relevant releases/architectures:

Red Hat Linux 6.0 - alpha, i386, sparc

Red Hat Linux 6.1 - alpha, i386, sparc

Red Hat Linux 6.2 - alpha, i386, sparc

Red Hat Linux 7.0 - alpha, i386

Red Hat Linux 7.1 - alpha, i386, ia64

Red Hat Linux 7.2 - i386, ia64

3. Problem description:

GNU enscript is a program for converting ASCII files to PostScript(TM).  
When it creates temporary files, it does so with predictable filenames in 
a manner that would follow symbolic links.  This could allow a local user 
to overwrite files written by the user running enscript, or read the 
contents of the temporary files.

4. 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.

5. Bug IDs fixed  (http://bugzilla.Red Hat.com/bugzilla for more info):

57704 - tmpnam and tempnam

6. RPMs required:

Red Hat Linux 6.0:

SRPMS: 
ftp://updates.Red Hat.com/6.0/en/os/SRPMS/enscript-1.6.1-16.1.src.rpm

alpha: 
ftp://updates.Red Hat.com/6.0/en/os/alpha/enscript-1.6.1-16.1.alpha.rpm

i386: 
ftp://updates.Red Hat.com/6.0/en/os/i386/enscript-1.6.1-16.1.i386.rpm

sparc: 
ftp://updates.Red Hat.com/6.0/en/os/sparc/enscript-1.6.1-16.1.sparc.rpm

Red Hat Linux 6.1:

SRPMS: 
ftp://updates.Red Hat.com/6.1/en/os/SRPMS/enscript-1.6.1-16.1.src.rpm

alpha: 
ftp://updates.Red Hat.com/6.1/en/os/alpha/enscript-1.6.1-16.1.alpha.rpm

i386: 
ftp://updates.Red Hat.com/6.1/en/os/i386/enscript-1.6.1-16.1.i386.rpm

sparc: 
ftp://updates.Red Hat.com/6.1/en/os/sparc/enscript-1.6.1-16.1.sparc.rpm

Red Hat Linux 6.2:

SRPMS: 
ftp://updates.Red Hat.com/6.2/en/os/SRPMS/enscript-1.6.1-16.1.src.rpm

alpha: 
ftp://updates.Red Hat.com/6.2/en/os/alpha/enscript-1.6.1-16.1.alpha.rpm

i386: 
ftp://updates.Red Hat.com/6.2/en/os/i386/enscript-1.6.1-16.1.i386.rpm

sparc: 
ftp://updates.Red Hat.com/6.2/en/os/sparc/enscript-1.6.1-16.1.sparc.rpm

Red Hat Linux 7.0:

SRPMS: 
ftp://updates.Red Hat.com/7.0/en/os/SRPMS/enscript-1.6.1-16.2.src.rpm

alpha: 
ftp://updates.Red Hat.com/7.0/en/os/alpha/enscript-1.6.1-16.2.alpha.rpm

i386: 
ftp://updates.Red Hat.com/7.0/en/os/i386/enscript-1.6.1-16.2.i386.rpm

Red Hat Linux 7.1:

SRPMS: 
ftp://updates.Red Hat.com/7.1/en/os/SRPMS/enscript-1.6.1-16.2.src.rpm

alpha: 
ftp://updates.Red Hat.com/7.1/en/os/alpha/enscript-1.6.1-16.2.alpha.rpm

i386: 
ftp://updates.Red Hat.com/7.1/en/os/i386/enscript-1.6.1-16.2.i386.rpm

ia64: 
ftp://updates.Red Hat.com/7.1/en/os/ia64/enscript-1.6.1-16.2.ia64.rpm

Red Hat Linux 7.2:

SRPMS: 
ftp://updates.Red Hat.com/7.2/en/os/SRPMS/enscript-1.6.1-16.2.src.rpm

i386: 
ftp://updates.Red Hat.com/7.2/en/os/i386/enscript-1.6.1-16.2.i386.rpm

ia64: 
ftp://updates.Red Hat.com/7.2/en/os/ia64/enscript-1.6.1-16.2.ia64.rpm



7. Verification:

MD5 sum                          Package Name
--------------------------------------------------------------------------
163b47d58543af9e02bcb756aaaa69e6 6.0/en/os/SRPMS/enscript-1.6.1-16.1.src.rpm
4669b3dff4260c66168b30a5da881577 6.0/en/os/alpha/enscript-1.6.1-16.1.alpha.rpm
08b0ccf910e84774a47297611a001ecf 6.0/en/os/i386/enscript-1.6.1-16.1.i386.rpm
0f576ebef76e6d55ba046f3de911e435 6.0/en/os/sparc/enscript-1.6.1-16.1.sparc.rpm
163b47d58543af9e02bcb756aaaa69e6 6.1/en/os/SRPMS/enscript-1.6.1-16.1.src.rpm
4669b3dff4260c66168b30a5da881577 6.1/en/os/alpha/enscript-1.6.1-16.1.alpha.rpm
08b0ccf910e84774a47297611a001ecf 6.1/en/os/i386/enscript-1.6.1-16.1.i386.rpm
0f576ebef76e6d55ba046f3de911e435 6.1/en/os/sparc/enscript-1.6.1-16.1.sparc.rpm
163b47d58543af9e02bcb756aaaa69e6 6.2/en/os/SRPMS/enscript-1.6.1-16.1.src.rpm
4669b3dff4260c66168b30a5da881577 6.2/en/os/alpha/enscript-1.6.1-16.1.alpha.rpm
08b0ccf910e84774a47297611a001ecf 6.2/en/os/i386/enscript-1.6.1-16.1.i386.rpm
0f576ebef76e6d55ba046f3de911e435 6.2/en/os/sparc/enscript-1.6.1-16.1.sparc.rpm
bc28cddcc7ac7d6d0c033e861869999e 7.0/en/os/SRPMS/enscript-1.6.1-16.2.src.rpm
1f3b4ceee8b8c767868bbca6d8843dff 7.0/en/os/alpha/enscript-1.6.1-16.2.alpha.rpm
60c482286d2eaa7a48b707cfad323c50 7.0/en/os/i386/enscript-1.6.1-16.2.i386.rpm
bc28cddcc7ac7d6d0c033e861869999e 7.1/en/os/SRPMS/enscript-1.6.1-16.2.src.rpm
1f3b4ceee8b8c767868bbca6d8843dff 7.1/en/os/alpha/enscript-1.6.1-16.2.alpha.rpm
60c482286d2eaa7a48b707cfad323c50 7.1/en/os/i386/enscript-1.6.1-16.2.i386.rpm
fd7aa3e5766bff5155bda4547b7612d6 7.1/en/os/ia64/enscript-1.6.1-16.2.ia64.rpm
bc28cddcc7ac7d6d0c033e861869999e 7.2/en/os/SRPMS/enscript-1.6.1-16.2.src.rpm
60c482286d2eaa7a48b707cfad323c50 7.2/en/os/i386/enscript-1.6.1-16.2.i386.rpm
fd7aa3e5766bff5155bda4547b7612d6 7.2/en/os/ia64/enscript-1.6.1-16.2.ia64.rpm
 

These packages are GPG signed by Red Hat, Inc. for security.  Our key
is available at:
     http://www.Red Hat.com/about/contact/pgpkey.html

You can verify each package with the following command:
    rpm --checksig  

If you only wish to verify that each package has not been corrupted or
tampered with, examine only the md5sum with the following command:
    rpm --checksig --nogpg 

8. References:




Copyright(c) 2000, 2001, 2002 Red Hat, Inc.