Operating System:

Published:

27 November 2002

Protect yourself against future threats.

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

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

       ESB-2002.665 -- HP Support Information Digest HPSBUX0209-215
               Security Vulnerability in XDR library (rev.2)
                             27 November 2002

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

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

Product:                XDR Library
Vendor:                 Hewlett-Packard
Operating System:       HP-UX 11.22
                        HP-UX 11.11
                        HP-UX 11.04
                        HP-UX 11.00
                        HP-UX 10.24
                        HP-UX 10.20
Platform:               HP9000 Series 700
                        HP9000 Series 800
Impact:                 Execute Arbitrary Code/Commands
                        Denial of Service
Access Required:        Remote

Ref:                    AL-2002.09
                        ESB-2002.497
                        ESB-2002.394

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

Document ID:  HPSBUX0209-215
Date Loaded:  20020909
      Title:  Security Vulnerability in XDR library (rev.2)

TEXT

 -----------------------------------------------------------------
 **REVISED 02**
 Source: HEWLETT-PACKARD COMPANY
 SECURITY BULLETIN: HPSBUX0209-215
 Originally issued: 09 September 2002
 Last revised: 26 November 2002
 SSRT2336 Security Vulnerability in XDR library
 -----------------------------------------------------------------
NOTICE: There are no restrictions for distribution of this Bulletin
provided that it remains complete and intact.

The information in the following Security Bulletin should be
acted upon as soon as possible.  Hewlett-Packard Company will
not be liable for any consequences to any customer resulting
from customer's failure to fully implement instructions in this
Security Bulletin as soon as possible.

 ------------------------------------------------------------------ 
PROBLEM: Potential buffer overflow in XDR library.

IMPACT: Potential unauthorized access, denial of service.

 **REVISED 02**
- -->>PLATFORM: HP 9000 Series 700 and 800 10.20, 10.24, 11.00,
              11.04, 11.11, and 11.22

SOLUTION: Until patches are available manually install the 
          appropriate fixed libraries.
          Install PHCO_27882 for 10.24.

MANUAL ACTIONS: Yes - NonUpdate
                Install the appropriate fixed libraries.
                Install PHCO_27882 for 10.24.
                Relink any archived programs that call
                xdr_array().

AVAILABILITY:  This bulletin will be updated when patches are
               available.

CHANGE SUMMARY: Rev.01 - corrected "strings" to "strings -a"
                Rev.02 - added 10.24 and 11.04, also added libc.1
                         for 11.00, 11.11, and 11.22.
 ------------------------------------------------------------------ 
 A. Background
    CERT Advisory CA-2002-25 reports an integer overflow in 
    certain implementations of XDR libraries.  Libraries supplied
- -->>with HP-UX 10.20, 10.24, 11,00, 11.04, 11.11, and 11.22 are
    potentially vulnerable.

    In addition, cross-reference:
    HP Tru64 UNIX: Case id: SSRT2309 rpc XDR_ARRAY
       A solution is available as noted in the recent
       security bulletin SSSRT2275 at
       http://thenew.hp.com/country/us/eng/support.html
       Use the SEARCH IN feature box, enter SSRT2275 in the
       search window.


 B. Recommended solution
    Until patches are released download and manually install
    the appropriate libraries.
 
    Note:  It will be necessary to relink any programs that
    call xdr_array() and are linked with archived libraries.
    There are no known programs supplied by HP which need to
    be relinked.  To test an archived program:

       strings -a suspect_program | grep xdr_array:

    If the command above returns "xdr_array: out of memory"
    the suspect_program will need to the relinked with a 
    fixed library.

    Download the appropriate files from:

     System:    hprc.external.hp.com  (192.170.19.51)
     Login:     xdr
     Password:  xdr1

     FTP Access: ftp://xdr:xdr1@hprc.external.hp.com/
             or: ftp://xdr:xdr1@192.170.19.51/


      Note: There is an ftp defect in IE5 that may result in
            a browser hang.  To work around this:
      - Select Tools -> Internet Options -> Advanced
      - Un-check the option: [ ] Enable folder view for FTP sites.


     The files are:

        PHCO_26152.depot.gz

 **REVISED 02**
- -->>    libc.1.gz
- -->>    libc.1.PHCO_27882.gz

        libnsl.1.32_11.00.gz
        libnsl.a.32_11.00.gz
        libnsl.1.64_11.00.gz
        libnsl.a.64_11.00.gz

        libnsl.1.32_11.11.gz
        libnsl.a.32_11.11.gz
        libnsl.1.64_11.11.gz
        libnsl.a.64_11.11.gz

        libnsl.so.1.32_11.22.IA.gz
        libnsl.so.1.64_11.22.IA.gz


    The cksum output:


        2238979170 9676800 PHCO_26152.depot
- -->>    3415580416 1867776 libc.1
- -->>    1011129778 1814528 libc.1.PHCO_27882
        3064646304 679936 libnsl.1.32_11.00
        498505157 817544 libnsl.a.32_11.00
        2630827583 648296 libnsl.1.64_11.00
        2205456871 1454504 libnsl.a.64_11.00

        744618112 724992 libnsl.1.32_11.11
        3459917079 783940 libnsl.a.32_11.11
        3659675326 702416 libnsl.1.64_11.11
        3120598258 1520436 libnsl.a.64_11.11

        2227616066 1490048 libnsl.so.1.32_11.22.IA
        3162410426 1564768 libnsl.so.1.64_11.22.IA


- -->>  Note:  The patches which supply the libc and libnsl
- -->>         libraries require that the system be rebooted.
- -->>         It would be best to carry out the manual 
- -->>         installation below in init state 2 followed
- -->>         by a reboot.  Otherwise programs which were
- -->>         running when the libraries were changed would
- -->>         continue to use the old version of the libraries.

      Copy the appropriate files to a secure directory,
      for example /.  Then,

      For 10.20
      ====================================
      Install PHCO_26152.depot:
      swinstall -x autoreboot=true -x match_target=true \
                        -s /PHCO_26152.depot


      Any applications that use the RPC/XDR APIs in libc.a
      must be relinked and restarted.

 **REVISED 02**
- -->>  For 10.24
- -->>  ====================================
- -->>  Install PHCO_27882.  This patch is available from 
- -->>  the itrc.

 **REVISED 02**
      For 11.00
      ====================================
      #cd /usr/lib
      #cp libnsl.1 libnsl.1.orig
      #cp libnsl.a libnsl.a.orig
- -->>  #cp libc.1 libc.1.orig
      #cp /libnsl.1.32_11.00 libnsl.1
      #cp /libnsl.a.32_11.00 libnsl.a
- -->>  #cp /libc.1 libc.1
      #chmod 555 libnsl.1
      #chmod 444 libnsl.a
- -->>  #chmod 555 libc.1
      #chown bin:bin libnsl.1
      #chown bin:bin libnsl.a.
- -->>  #chown bin:bin libc.1

      #cd /usr/lib/pa20_64
      #cp libnsl.1 libnsl.1.orig
      #cp libnsl.a libnsl.a.orig
      #cp /libnsl.1.64_11.00 libnsl.1
      #cp /libnsl.a.64_11.00 libnsl.a
      #chmod 555 libnsl.1
      #chmod 444 libnsl.a
      #chown bin:bin libnsl.1
      #chown bin:bin libnsl.a.

      After this, any applications that use libnsl.1 must be
      restarted.  Any applications that use libnsl.a must
      be relinked and restarted.

- -->>  Any applications that use libc.1 must be restarted.

- -->>  Rebooting is the recommended way to restart the applications
- -->>  using libnsl.1 or libc.1.

 **REVISED 02**
- -->>  For 11.04
- -->>  ====================================
- -->>  #cd /usr/lib
- -->>  #cp libnsl.1 libnsl.1.orig
- -->>  #cp libnsl.a libnsl.a.orig
- -->>  #cp libc.1 libc.1.orig
- -->>  #cp /libnsl.1.32_11.00 libnsl.1
- -->>  #cp /libnsl.a.32_11.00 libnsl.a
- -->>  #cp /libc.1.PHCO_27882 libc.1
- -->>  #chmod 555 libnsl.1
- -->>  #chmod 444 libnsl.a
- -->>  #chmod 555 libc.1
- -->>  #chown bin:bin libnsl.1
- -->>  #chown bin:bin libnsl.a.
- -->>  #chown bin:bin libc.1

- -->>  #cd /usr/lib/pa20_64
- -->>  #cp libnsl.1 libnsl.1.orig
- -->>  #cp libnsl.a libnsl.a.orig
- -->>  #cp /libnsl.1.64_11.00 libnsl.1
- -->>  #cp /libnsl.a.64_11.00 libnsl.a
- -->>  #chmod 555 libnsl.1
- -->>  #chmod 444 libnsl.a
- -->>  #chown bin:bin libnsl.1
- -->>  #chown bin:bin libnsl.a.

- -->>  After this, any applications that use libnsl.1 must be
- -->>  restarted.  Any applications that use libnsl.a must
- -->>  be relinked and restarted.

- -->>  Any applications that use libc.1 must be restarted.

- -->>  Rebooting is the recommended way to restart the applications
- -->>  using libnsl.1 or libc.1.


 **REVISED 02**
      For 11.11
      ====================================
      #cd /usr/lib
      #cp libnsl.1 libnsl.1.orig
      #cp libnsl.a libnsl.a.orig
- -->>  #cp libc.1 libc.1.orig
      #cp /libnsl.1.32_11.11 libnsl.1
      #cp /libnsl.a.32_11.11 libnsl.a
- -->>  #cp /libc.1 libc.1
      #chmod 555 libnsl.1
      #chmod 444 libnsl.a
- -->>  #chmod 555 libc.1
      #chown bin:bin libnsl.1
      #chown bin:bin libnsl.a.
- -->>  #chown bin:bin libc.1

      #cd /usr/lib/pa20_64
      #cp libnsl.1 libnsl.1.orig
      #cp libnsl.a libnsl.a.orig
      #cp /libnsl.1.64_11.11 libnsl.1
      #cp /libnsl.a.64_11.11 libnsl.a
      #chmod 555 libnsl.1
      #chmod 444 libnsl.a
      #chown bin:bin libnsl.1
      #chown bin:bin libnsl.a.

      After this, any applications that use libnsl.1 must be
      restarted.  Any applications that use libnsl.a must
      be relinked and restarted.

- -->>  Any applications that use libc.1 must be restarted.

- -->>  Rebooting is the recommended way to restart the applications
- -->>  using libnsl.1 or libc.1.


      For 11.22 IA
      ====================================
      #cd /usr/lib/hpux32
      #cp libnsl.so.1 libnsl.so.1.orig
      #cp /libnsl.so.1.32_11.22.IA libnsl.so.1
      #chmod 555 libnsl.so.1
      #chown bin:bin libnsl.so.1

- -->>  #cd /usr/lib
- -->>  #cp libc.1 libc.1.orig
- -->>  #cp /libc.1 libc.1
- -->>  #chmod 555 libc.1
- -->>  #chown bin:bin libc.1

      #cd   /usr/lib/hpux64
      #cp libnsl.so.1 libnsl.so.1.orig
      #cp libnsl.so.1.64_11.22.IA libnsl.so.1
      #chmod 555 libnsl.so.1
      #chown bin:bin libnsl.so.1

      After this, any applications that use libnsl.so.1 must be
      restarted.

- -->>  Rebooting is the recommended way to restart the applications
- -->>  using libnsl.1 or libc.1.


 C. To subscribe to automatically receive future NEW HP Security
    Bulletins from the HP IT Resource Center via electronic
    mail, do the following:

    Use your browser to get to the HP IT Resource Center page
    at:

       http://itrc.hp.com

    Use the 'Login' tab at the left side of the screen to login
    using your ID and password.  Use your existing login or the
    "Register" button at the left to create a login, in order to
    gain access to many areas of the ITRC.  Remember to save the
    User ID assigned to you, and your password.

    In the left most frame select "Maintenance and Support".

    Under the "Notifications" section (near the bottom of
    the page), select "Support Information Digests".

    To -subscribe- to future HP Security Bulletins or other
    Technical Digests, click the check box (in the left column)
    for the appropriate digest and then click the "Update
    Subscriptions" button at the bottom of the page.

    or

    To -review- bulletins already released, select the link
    (in the middle column) for the appropriate digest.

    To -gain access- to the Security Patch Matrix, select
    the link for "The Security Bulletins Archive".  (near the
    bottom of the page)  Once in the archive the third link is
    to the current Security Patch Matrix. Updated daily, this
    matrix categorizes security patches by platform/OS release,
    and by bulletin topic.  Security Patch Check completely
    automates the process of reviewing the patch matrix for
    11.XX systems.

    For information on the Security Patch Check tool, see:
    http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/
    displayProductInfo.pl?productNumber=B6834AA

    The security patch matrix is also available via anonymous
    ftp:

    ftp://ftp.itrc.hp.com/export/patches/hp-ux_patch_matrix/

    On the "Support Information Digest Main" page:
    click on the "HP Security Bulletin Archive".



 D. To report new security vulnerabilities, send email to

    security-alert@hp.com

    Please encrypt any exploit information using the
    security-alert PGP key, available from your local key
    server, or by sending a message with a -subject- (not body)
    of 'get key' (no quotes) to security-alert@hp.com.

 ------------------------------------------------------------------

(c)Copyright 2002 Hewlett-Packard Company
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 HP products referenced
herein are trademarks and/or service marks of Hewlett-Packard
Company.  Other product and company names mentioned herein may be
trademarks and/or service marks of their respective owners.

 ________________________________________________________________
- -----End of Document ID:  HPSBUX0209-215--------------------------------------

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

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

iQCVAwUBPeSqiih9+71yA2DNAQGJDAP+JsDcU/7QSeVsb8NQw4B5QBaEw+Fg8q/t
fqdqnkCrVE9IhvJIDftrlg2WiY3rujopcKZz5COur0Oj+kzuoBISgZfdGX9gpbtr
NNwcvrRgdFvvskGbxiMT4Z8Ed+LQTIgTigvUCPLxAFnjJJqROyPQvW+thn7YeRPu
O0Abz7xtT1A=
=5eec
-----END PGP SIGNATURE-----