Visit our newest sister site!
Hundreds of free aircraft flight manuals
Civilian • Historical • Military • Declassified • FREE!


TUCoPS :: Unix :: General :: ciaci088.txt

NFS Clients Rpg Pcnfsd Vulnerabilities





             __________________________________________________________

                       The U.S. Department of Energy
                    Computer Incident Advisory Capability
                           ___  __ __    _     ___
                          /       |     /_\   /
                          \___  __|__  /   \  \___
             __________________________________________________________

                             INFORMATION BULLETIN

                     NFS clients rpc.pcnfsd Vulnerabilities

August 20, 1998 21:00 GMT                                         Number I-088
______________________________________________________________________________
PROBLEM:       Two vulnerabilities have been identified in pcnfsd, a Remote
               Procedure Call used by NFS clients.
PLATFORM:      Platforms running rpc.pcnfsd:
                 AIX: 4.0, 4.1, 4.2, 4.3
                 HP-UX: 7.x, 8.x, 9.x, 10.x, 11.x
                 SunOS: 4.1.3, 4.1.4
                 Solaris: 2.3, 2.4, 2.5, 2.5.1, 2.6
                 Redhat Linux: 4.0, 4.1, 4.2, 5.0, 5.1
                 Slackware Linux: 3.0, 3.1, 3.2, 3.3, 3.4, 3.5
                 OSF: 3.2
DAMAGE:        If exploited, an attacker could gain root access.
SOLUTION:      Apply patches or workarounds.
______________________________________________________________________________
VULNERABILITY  If you are using rpc.pcnfsd, you should implement the
ASSESSMENT:    workarounds or patches on all vulnerable systems as soon as
               possible.
______________________________________________________________________________

[ Start RSI Advisory ]


RSI.0008.08-18-98.ALL.RPC_PCNFSD



           |:::.  |::::: |::::.        |::::: |::::: |::::.
           ..  :: ..     ..  ::        ..     ..     ..  ::
           |::::  |::::  |::::  :::::: |::::: |::::  |:
           |:  :: |:     |:               |:: |:     |:  ::
           |:  :: |::::: |:            |::::: |::::: |:::::


                   Repent Security Incorporated, RSI
                       [ http://www.repsec.com ]


                       *** RSI ALERT ADVISORY ***


- --- [CREDIT] --------------------------------------------------------------

'Bermuda Brian': Research and development
Mark Zielinski : Author of advisory


- --- [SUMMARY] -------------------------------------------------------------

Announced:     July 14, 1998
Report code:   RSI.0008.08-18-98.ALL.RPC_PCNFSD
Report title:  All rpc.pcnfsd
Vulnerability: Please see the details section
Vendor status: IBM contacted on August 3, 1998
               Hewlett Packard contacted on August 3, 1998
               Sun Microsystems contacted on August 3, 1998
               Slackware contacted on August 3, 1998
Patch status:  Linux and AIX patch information is provided below
Platforms:     Vulnerable:

               AIX: 4.0, 4.1, 4.2, 4.3
               HP-UX: 7.x, 8.x, 9.x, 10.x, 11.x
               SunOS: 4.1.3, 4.1.4
               Solaris: 2.3, 2.4, 2.5, 2.5.1, 2.6
               Redhat Linux: 4.0, 4.1, 4.2, 5.0, 5.1
               Slackware Linux: 3.0, 3.1, 3.2, 3.3, 3.4, 3.5
               OSF: 3.2

               Not vulnerable:

               OpenBSD, FreeBSD, NetBSD, BSDI

Reference:     http://www.repsec.com/advisories.html
Impact:        If exploited, an attacker could potentially compromise
               root access both locally and remotely on your server


- --- [DETAILS] -------------------------------------------------------------

Description:   PCNFSD is a Remote Procedure Call used by NFS clients.
               This service provides username and password authentication
               for networked computers which have installed NFS client
               software.


Problem:       Two vulnerabilities are covered in this advisory which
               both allow root access to be compromised.

               Vulnerable functions:
               ~~~~~~~~~~~~~~~~~~~~~
    
               A. pr_init ()    : [CIAC HAS CHOSEN NOT TO INCLUDE FURTHER 
                                   DETAILS RE THIS VULNERABILITY]

               B. run_ps630 ()  : [CIAC HAS CHOSEN NOT TO INCLUDE FURTHER 
                                   DETAILS RE THIS VULNERABILITY]
               
              
               * Note           : AIX is not vulnerable to problem A,
                                  and HP is only vulnerable to function
                                  A in HP-UX 9.0, 10.0.


- --- [FIX] -----------------------------------------------------------------

Solution:      Disable rpc.pcnfsd until an appropriate patch is
               released for your operating system.


- --- [AIX PATCH] -----------------------------------------------------------

               AIX users: IBM has provided the following patches in
               reponse to this vulnerability:

               APAR 4.1.x: IX81505
               APAR 4.2.x: IX81506
               APAR 4.3.x: IX81507

               Until the official APARs are available, a temporary
               fix can be downloaded via anonymous ftp from:

               ftp://aix.software.ibm.com/aix/efixes/security/pcnfsd.tar.Z


- --- [LINUX PATCH] ---------------------------------------------------------

Solution:      Working in conjunction with Patrick Volkerding and the
               Slackware Linux development staff, RSI has produced the
               following patches:

               ftp://ftp.repsec.com/pub/repsec/0008.patch1

               WARNING! The code quoted below is only fragments of each
               patch! You must download each patch for it to work correctly.

               0008.patch1 replaces the character set that is considered
               suspicious and replaces it with a list of characters that
               are allowed. The following two lines show the change:

[snip...]

- -       if(strpbrk(s, ";|&<>`'#!?*()[]^/") != NULL)

[snip...]

+       if (strspn(s, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-
_=:+1234567890@%,.")

[snip...]

               ---

               ftp://ftp.repsec.com/pub/repsec/0008.patch2

               0008.patch2 replaces the vulnerable code by removing the
               chmod call, and utilizing umask. The following code fragments
               have been stripped out of the patch to show the vulnerable
               pieces of code and the relevant fix.

[snip...]

+        oldumask = umask(0);
+        (void)sprintf(pathname,"%s/%s",sp_name, sys);
+        (void)mkdir(sp_name, dir_mode); /* ignore the return code */
+        rc = mkdir(pathname, dir_mode); /* DON'T ignore this return code */
+        umask(oldumask);

[snip...]

- -       (void)chmod(sp_name, dir_mode);
        if((rc < 0 && errno != EEXIST) ||
- -          (chmod(pathname, dir_mode) != 0) ||
           (stat(pathname, &statbuf) != 0) ||
           !(statbuf.st_mode & S_IFDIR)) {
           (void)sprintf(tempstr,


- --- [OTHER PATCHES] -------------------------------------------------------

               SunOS, Solaris, HPUX, and OSF users should wait
               for their respective vendor to provide a patch.


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

Repent Security Incorporated (RSI)
13610 N. Scottsdale Rd.
Suite #10-326
Scottsdale, AZ 85254

E-Mail: advise@repsec.com
FTP: ftp://ftp.repsec.com
WWW: http://www.repsec.com


[End RSI Advisory ]
______________________________________________________________________________

CIAC wishes to acknowledge the contributions of Repent Security Incorporated
(RSI) for the information contained in this bulletin.
______________________________________________________________________________


CIAC, the Computer Incident Advisory Capability, is the computer
security incident response team for the U.S. Department of Energy
(DOE) and the emergency backup response team for the National
Institutes of Health (NIH). CIAC is located at the Lawrence Livermore
National Laboratory in Livermore, California. CIAC is also a founding
member of FIRST, the Forum of Incident Response and Security Teams, a
global organization established to foster cooperation and coordination
among computer security teams worldwide.

CIAC services are available to DOE, DOE contractors, and the NIH. CIAC
can be contacted at:
    Voice:    +1 925-422-8193
    FAX:      +1 925-423-8002
    STU-III:  +1 925-423-2604
    E-mail:   ciac@llnl.gov

For emergencies and off-hour assistance, DOE, DOE contractor sites,
and the NIH may contact CIAC 24-hours a day. During off hours (5PM -
8AM PST), call the CIAC voice number 925-422-8193 and leave a message,
or call 800-759-7243 (800-SKY-PAGE) to send a Sky Page. CIAC has two
Sky Page PIN numbers, the primary PIN number, 8550070, is for the CIAC
duty person, and the secondary PIN number, 8550074 is for the CIAC
Project Leader.

Previous CIAC notices, anti-virus software, and other information are
available from the CIAC Computer Security Archive.

   World Wide Web:      http://www.ciac.org/
                        (or http://ciac.llnl.gov -- they're the same machine)
   Anonymous FTP:       ftp.ciac.org
                        (or ciac.llnl.gov -- they're the same machine)
   Modem access:        +1 (925) 423-4753 (28.8K baud)
                        +1 (925) 423-3331 (28.8K baud)

CIAC has several self-subscribing mailing lists for electronic
publications:
1. CIAC-BULLETIN for Advisories, highest priority - time critical
   information and Bulletins, important computer security information;
2. SPI-ANNOUNCE for official news about Security Profile Inspector
   (SPI) software updates, new features, distribution and
   availability;
3. SPI-NOTES, for discussion of problems and solutions regarding the
   use of SPI products.

Our mailing lists are managed by a public domain software package
called Majordomo, which ignores E-mail header subject lines. To
subscribe (add yourself) to one of our mailing lists, send the
following request as the E-mail message body, substituting
ciac-bulletin, spi-announce OR spi-notes for list-name:

E-mail to       ciac-listproc@llnl.gov or majordomo@tholia.llnl.gov:
        subscribe list-name
  e.g., subscribe ciac-bulletin

You will receive an acknowledgment email immediately with a confirmation
that you will need to mail back to the addresses above, as per the
instructions in the email.  This is a partial protection to make sure
you are really the one who asked to be signed up for the list in question.

If you include the word 'help' in the body of an email to the above address,
it will also send back an information file on how to subscribe/unsubscribe,
get past issues of CIAC bulletins via email, etc.

PLEASE NOTE: Many users outside of the DOE, ESnet, and NIH computing
communities receive CIAC bulletins.  If you are not part of these
communities, please contact your agency's response team to report
incidents. Your agency's team will coordinate with CIAC. The Forum of
Incident Response and Security Teams (FIRST) is a world-wide
organization. A list of FIRST member organizations and their
constituencies can be obtained via WWW at http://www.first.org/.

This document was prepared as an account of work sponsored by an
agency of the United States Government. Neither the United States
Government nor the University of California nor any of their
employees, makes any warranty, express or implied, or assumes any
legal liability or responsibility for the accuracy, completeness, or
usefulness of any information, apparatus, product, or process
disclosed, or represents that its use would not infringe privately
owned rights. Reference herein to any specific commercial products,
process, or service by trade name, trademark, manufacturer, or
otherwise, does not necessarily constitute or imply its endorsement,
recommendation or favoring by the United States Government or the
University of California. The views and opinions of authors expressed
herein do not necessarily state or reflect those of the United States
Government or the University of California, and shall not be used for
advertising or product endorsement purposes.

LAST 10 CIAC BULLETINS ISSUED (Previous bulletins available from CIAC)

I-078: HP-UX ftp Security Vulnerability
I-079: IBM AIX "sdrd" daemon Vulnerability
I-080: Microsoft Exchange  Denial of Service Attacks
I-081: HP-UX & MPEix Predictive Vulnerability
I-082: HP-UX Netscape Servers Vulnerability
I-083: Eudora Pro E-Mail Attachment Vulnerability
I-084: Cisco IOS Remote Router Crash
I-085: Microsoft IE Upgrade Trojan Horse Program
I-086: Cisco CRM Temporary File Vulnerability
I-087: Microsoft PPTP Security Vulnerabilities



-----BEGIN PGP SIGNATURE-----
Version: 4.0 Business Edition

iQCVAwUBNd3XjLnzJzdsy3QZAQEytAP+O3By0dnu/Bcj9QpmSQ6HTOtgqlHZKpOX
Dt3S3v9qIXPJvSiVyUq05eoB6gbPhScGhnzHptZd1v9c56U8PTlMYNM2AzJ3TbGq
QWiaSxXTCK5uAQB+nCWP+v7i7hKV+a3PxbNOp94sqImyOs65bWhQFN+rSmcTThyg
Fp02deIixlM=
=TTp2
-----END PGP SIGNATURE-----


TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2014 AOH