[ISN] RSI.0006.06-25-98.HP-UX.RLPDAEMON

From: mea culpa (jerichot_private)
Date: Mon Jul 06 1998 - 10:17:10 PDT

  • Next message: mea culpa: "[ISN] Toll-Free lines open door to hackers"

    Forwarded From: RSI Advise <adviset_private>
    
    RSI.0006.06-25-98.HP-UX.RLPDAEMON
    
    
    
               |:::.  |::::: |::::.        |::::: |::::: |::::.
               ..  :: ..     ..  ::        ..     ..     ..  ::
               |::::  |::::  |::::  :::::: |::::: |::::  |:
               |:  :: |:     |:               |:: |:     |:  ::
               |:  :: |::::: |:            |::::: |::::: |:::::
    
    
                       Repent Security Incorporated, RSI
                           [ http://www.repsec.com ]
    
    
    		       *** RSI ALERT ADVISORY ***
     
    
    --- [CREDIT] --------------------------------------------------------------
    
    Bathead Brian:	Discovered vulnerability, co-authored advisory
    Mark Zielinski:	Author of advisory
    
    
    --- [SUMMARY] -------------------------------------------------------------
    
    Announced:     June 25, 1998
    Report code:   RSI.0005.06-25-98.HP-UX.RLPDAEMON
    Report title:  HP-UX rlpdaemon
    Vulnerability: Several vulnerabilities have been discovered which could
                   potentially allow remote access to the server
    Vendor status: Vendor notified on 06-28-98
    Patch status:  No patch is currently available
    Platforms:     HP-UX 9.x, 10.x
    Vulnerable:    HP-UX systems running rlpdaemon
    Reference:     http://www.repsec.com/advisories.html
    Impact:        If exploited, an attacker could potentially compromise
                   lp access and create files on the server remotely
    
    
    --- [DETAILS] -------------------------------------------------------------
    
    Problem:       
    
                   Vulnerabilities:
                   ~~~~~~~~~~~~~~~~
    
                   #1: The argument in the Unlink Data File section of the
                       control file gets passed to /bin/rm by a system ()
                       call.  This argument should normally be a filename,
                       however, a semi-colon and an arbitrary command can be
                       appended allowing you to execute commands as user lp.
    
    
                   #2: When the client passes a file to the rlpdaemon,
                       no sanity checks are performed to ensure the validity
                       of the filename.  This allows for a remote attacker
                       to send any file s/he wants and have it stored in the
                       user lp's home directory.
    
    
                   #3: The rlpdaemon will allow remote connections from any
                       source port.  This violates the lpd behavior recommended 
                       in RFC-1179 which explicitly states that only source
                       ports of 721-731 should be allowed to access the
                       daemon.
    	
    
    --- [FIX] -----------------------------------------------------------------
    
    Solution:      Disable the rlpdaemon and use networked printers.
    
      1. su to the ROOT account
      2. kill -9 `ps -fu root | grep -i rlpdaemon | awk '{print $2}'`
      3. edit /etc/inetd.conf with your favorite editor
      4. place a # infront of the line reading as follows:
         printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i
      5. kill -HUP `ps -fu root | grep -i inetd | awk '{print $2}'`
      
       
    --- [PATCH] ---------------------------------------------------------------
    
    Solution:      Wait for Hewlett-Packard to release an official patch.
    
    
    ---------------------------------------------------------------------------
    
    Repent Security Incorporated (RSI)
    13610 N. Scottsdale Rd.
    Suite #10-326
    Scottsdale, AZ 85254
    
    E-mail: adviset_private
    WWW: http://www.repsec.com
    FTP: ftp://ftp.repsec.com
    
    ---------------------------------------------------------------------------
    
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: 2.6.2
    
    mQCNAzU6dqAAAAEEAOHt9a5vevjD8ZjsEmncEbFp2U7aeqvPTcF/8FJMilgOVp75
    dshXvZixHsYU7flgCNzA7wLIQPWBQBrweLG6dx9gE9e5Ca6yAJxZg8wNsi06tZfP
    nvmvf6F/7xoWS5Ei4k3YKuzscxlyePNNKws6uUe2ZmwVoB+i3HHT44dOafMhAAUT
    tBpSZXBTZWMgPGFkdmlzZUByZXBzZWMuY29tPg==
    =ro8H
    -----END PGP PUBLIC KEY BLOCK-----
    
    Copyright June 1998 RepSec, Inc.
    
    The information in this document is provided as a service to customers
    of RepSec, Inc.  Neither RepSec, Inc., nor any of it's 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 contained herein, or
    represents that its use would not infringe any privately owned rights.
    Reference herein to any specific commercial products, process, or
    services by trade name, trademark, manufacturer, or otherwise, does not
    necessarily constitute or imply its endorsement, recommendation or
    favoring by RepSec, Inc.  The views and opinions of authors express
    herein do no necessarily state or reflect those of RepSec, Inc., and may
    not be used for advertising or product endorsement purposes.
    
    The material in this alert advisory may be reproduced and distributed,
    without permission, in whole or in part, by other security incident
    response teams (both commercial and non-commercial), provided the above
    copyright is kept intact and due credit is given to RepSec, Inc.
    
    This alert advisory may be reproduced and distributed, without
    permission, in its entirety only, by any person provided such
    reproduction and/or distribution is performed for non-commercial
    purposes and with the intent of increasing the awareness of the Internet
    community.
    
    ---------------------------------------------------------------------------
    
    RepSec, Inc. are trademarks of RepSec, Inc.  All other trademarks are
    property of their respective holders. 
    
    
    -o-
    Subscribe: mail majordomot_private with "subscribe isn".
    Today's ISN Sponsor: Repent Security Incorporated [www.repsec.com]
    



    This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 12:58:07 PDT