copyright | disclaimer | privacy | contact  
Australia's Leading Computer Emergency Response Team
 
Search this site

 
On this site

 > HOME
 > About AusCERT
 > Membership
 > Contact Us
 > PKI Services
 > Training
 > Publications
 > Sec. Bulletins
 > Conferences
 > News & Media
 > Services
 > Web Log
 > Site Map
 > Site Help
 > Member login





 

ESB-2003.0322 -- HEWLETT-PACKARD SECURITY BULLETIN SSRT3471 -- HP Tru64 UNIX Potential Security Vulnerability in Software Installation and Update Utilities

Date: 29 April 2003

Click here for printable version
Click here for PGP verifiable version
-----BEGIN PGP SIGNED MESSAGE-----

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

        ESB-2003.0322 -- HEWLETT-PACKARD SECURITY BULLETIN SSRT3471
  HP Tru64 UNIX Potential Security Vulnerability in Software Installation
                           and Update Utilities
                               29 April 2003

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

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

Product:                dupatch
                        setld
Vendor:                 Hewlett-Packard
Operating System:       HP Tru64 UNIX V5.1B PK1 and earlier
                        HP Tru64 UNIX V5.1A PK4 and earlier
                        HP Tru64 UNIX V5.1 PK6 and earlier
                        HP Tru64 UNIX V5.0A PK3 and earlier
                        HP Tru64 UNIX V4.0G PK3 and earlier
                        HP Tru64 UNIX V4.0F PK7 and earlier
Impact:                 Denial of Service
                        Root Compromise
Access Required:        Existing Account

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

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

HP SECURITY BULLETIN


TITLE:  SSRT3471 - HP Tru64 UNIX Potential Security Vulnerability 
in Software Installation and Update Utilities

REVISION: 0


NOTICE: There are no restrictions for distribution of this Bulletin 
provided that it remains complete and intact.

RELEASE DATE: April 2003


SEVERITY:  High

SOURCE:  HEWLETT-PACKARD COMPANY
Software Security Response Team

REFERENCE:  SSRT3471

PROBLEM SUMMARY

This bulletin will be posted to the support website
within 24 hours of release to - 
http://thenew.hp.com/country/us/eng/support.html 
Use the SEARCH IN feature box, enter SSRT3471 in the search 
window.




SSRT3471 dupatch and setld utilities  (Severity High)

HP Tru64 UNIX uses the dupatch and setld utilities to install 
operating system updates and patches, and to add new software kits 
to the system. When these scripts are run as root, the normal case, 
they are potentially vulnerable to symlink attacks. A symlink attack 
typically results in a denial of service, but could potentially allow
root penetration by a local user.

VERSIONS IMPACTED

     HP Tru64 UNIX:

    V5.1B PK1 and earlier 
    V5.1A PK4 and earlier 
    V5.1 PK6 and earlier 
    V5.0A PK3 and earlier 
    V4.0G PK3 and earlier 
    V4.0F PK7 and earlier

NOT IMPACTED

    HP-UX

    HP-MPE/ix

    HP NonStop Servers

    HP OpenVMS



RESOLUTION

  HP Tru64 UNIX Recommended Workaround


  HP recommends that before applying patches, installing new 
software, or upgrading the operating system, the system should be 
shut down to single-user mode as outlined in the Tru64 UNIX 
Installation Guide or Patch Kit Installation Instructions.  Once user
processes are no longer active on the system, remove suspicious 
files from the temporary directories using the /usr/sbin/dirclean
utility as shown in the example below. It is then safe to proceed
with dupatch or setld.

If  the /usr/sbin/dirclean utility is not present on your system,
follow the instructions at  http://h30097.www3.hp.com/unix/security-
download.html to download a version to your system.

To apply patches or install new software on a TruCluster member, 
first shut the member down to single-user mode and change the 
protection on the temporary directories to allow write access only by
root.  This prevents malicious access from processes executing on 
other TruCluster members (any normal process uses the temporary 
directories of the member on which it executes).  Then use the 
dirclean utility as in the example.  After installing updates,
patches or new software, restore world-write access to the temporary
directories before continuing the system.

Shut the system to single-user mode as described in the Tru64 UNIX 
Installation Guide or Patch Kit Installation Instructions

Examine existing protection on temporary directories

$ ls -dl /var/cluster/members/{memb}/tmp/
drwxrwxrwt   3 root     system      8192 Feb 20 17:09 
/var/cluster/members/{memb}/tmp//

If you have a clustered system, change directory permissions to 
allow write access to root only

$ chmod 700  /var/cluster/members/{memb}/tmp/
$ ls -dl /var/cluster/members/{memb}/tmp/
drwx------   3 root     system      8192 Feb 20 17:09 
/var/cluster/members/{memb}/tmp//

Verify the files to be removed by dirclean

$ /usr/sbin/dirclean -k bcf -n /var/tmp/

Remove the files

$ /usr/dirclean  -k bcf /var/tmp/

At this point, it is safe to use dupatch or setld.

When you are finished, restore normal protection to temporary 
directories

$ chmod 1777  /var/cluster/members/{memb}/tmp/
$ ls -dl /var/cluster/members/{memb}/tmp/
drwxrwxrwt   3 root     system      8192 Feb 20 17:09 
/var/cluster/members/{memb}/tmp//




SUPPORT:

For further information, contact HP Services.

SUBSCRIBE:

To subscribe to automatically receive future Security Advisories from
the Software Security Response Team via electronic mail:
http://www.support.compaq.com/patches/mail-list.shtml



REPORT:

To report a potential security vulnerability with any HP supported 
product, send email to: security-alert@hp.com

As always, HP urges you to periodically review your system 
management and security procedures. HP will continue to review 
and enhance the security features of its products and work with our 
customers to maintain and improve the security and integrity of their
systems.

"HP is broadly distributing this Security Bulletin in order to bring
to the attention of users of the affected HP products the important 
security information contained in this Bulletin. HP recommends that 
all users determine the applicability of this information to their 
individual situations and take appropriate action. HP does not 
warrant that this information is necessarily accurate or complete for
all user situations and, consequently, HP will not be responsible for
any damages resulting from user's use or disregard of the 
information provided in this Bulletin."


(c)Copyright 2001, 2003 Hewlett-Packard Development Company, 
L.P. 

Hewlett-Packard Company shall not be liable for technical or
editorial errors or omissions contained herein. The information in
this  document is subject to change without notice. Hewlett-Packard 
Company and the names of Hewlett-Packard products referenced 
herein are trademarks of Hewlett-Packard Company in the United 
States and other countries. Other product and company names 
mentioned herein may be trademarks of their respective owners.

- -----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.1

iQA/AwUBPq2R2jnTu2ckvbFuEQKArQCg06rbchuEZCCyKFIjNn2eFY/vYycAn3AX
hY4zMeprK964NH4jMMAn0O6b
=TKlM
- -----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 author's website 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/render.html?cid=1980

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 member emergencies only.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBPq6YHyh9+71yA2DNAQFJFAP+OQAowBwbSakJzCUUjbF6lImQyc7nGdxa
L/A9kzQU8/RbfhgX5n40me66zbngmmtZ99GtBwKTMX+TsvT0OMwCbrg6rQU1yEdk
bZ9ruvpWZFa9HKq94LK0jphSvvp7eL3elUBMVEv3jliZIFOdaZjlNaFok/MAoFOa
wsJvanrx2DY=
=9trm
-----END PGP SIGNATURE-----