SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com






Category:   Application (Generic)  >   Ntpd Vendors:   Mills, David L. et al
(HP Issues Revised Fix) Re: The Network Time Protocol Daemon (ntpd) Allows Remote Users to Execute Arbitrary Code on the Server - Typically to Gain Root Privileges on the Server
SecurityTracker Alert ID:  1001510
SecurityTracker URL:  http://securitytracker.com/id/1001510
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  May 10 2001
Impact:   Execution of arbitrary code via network, Root access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  

Description:   The Network Time Protocol Daemon (ntpd) shipped with many UNIX/Linux systems is reportedly vulnerable to a remote buffer overflow attack that allows remote users to execute arbitrary code on the server (potentially resulting in super-user access).

The buffer overflow occurs when the daemon is building a response to a remote user's query that contains an overly large readvar argument. Because ntpd typically runs with root-level privileges, this can allow remote attackers to gain root access to the timeserver.

When exploited, the destination buffer is reportedly damaged by the attack, so any arbitrary shell code must be limited to less than approximately 70 bytes.

Code for a demonstration exploit is contained in the source message.

Impact:   A remote user can cause arbitrary code supplied by the remote user to be executed on the target ntpd timeserver. Because ntpd typically runs with root-level privileges, this can result in remote root access being granted to the attacker. Because NTP is based on UDP, spoofing is possible, making protection against attacks more difficult.
Solution:   HP has issued a revised fix. See the Source Message for the vendor's bulletin.
Vendor URL:  www.hp.com/ (Links to External Site)
Cause:   Boundary error
Underlying OS:   UNIX (HP/UX)

Message History:   This archive entry is a follow-up to the message listed below.
Apr 5 2001 The Network Time Protocol Daemon (ntpd) Allows Remote Users to Execute Arbitrary Code on the Server - Typically to Gain Root Privileges on the Server



 Source Message Contents

Date:  Thu, 10 May 2001 05:02:45 -0700 (PDT)
Subject:  security bulletins digest



                        HP Support Information Digests

===============================================================================
o  IT Resource Center World Wide Web Service
   ---------------------------------------------------

   If you subscribed through the IT Resource Center and would
   like to be REMOVED from this mailing list, access the
   IT Resource Center on the World Wide Web at:

     http://www.itresourcecenter.hp.com/

   Login using your IT Resource Center User ID and Password.
   Then select Support Information Digests (located under
   Maintenance and Support).  You may then unsubscribe from the
   appropriate digest.
===============================================================================


Digest Name:  daily security bulletins digest
    Created:  Thu May 10  3:00:03 PDT 2001

Table of Contents:

Document ID      Title
---------------  -----------
HPSBUX0105-150   Security Patch Check Tool announcement
HPSBUX0104-148   Sec. Vulnerability in xntpd(1M) (revised 01)

The documents are listed below.
-------------------------------------------------------------------------------


Document ID:  HPSBUX0105-150
Date Loaded:  20010509
      Title:  Security Patch Check Tool announcement

------------------------------------------------------------------------
    HEWLETT-PACKARD COMPANY SECURITY ADVISORY: #0150, 09 May 2001
------------------------------------------------------------------------

The information in the following Security Advisory 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 Advisory as soon as possible.

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

Hewlett-Packard is pleased to announce the release of "Security Patch
Check," a tool which will help HP-UX administrators ensure their
systems' security patches are up-to-date.

NEW TOOL: "Security Patch Check".  Please review swacl security
          considerations below (in Section III) whether or not you
          choose to use Security Patch Check tool.

PLATFORM:  Security Patch Check is supported on all hardware
           platforms running HP-UX releases 11.00, 11.04, and 11.11.

AVAILABILITY:  This product is available for free download at:

   http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6834AA

   This product is also integrated with Service Control Manager for use
   on multiple systems.

DEPENDENCIES: Perl version 5.005 or higher
              LWP libraries including URI, HTML::Parser,
              MIME::Base64, Digest::MD5, and Net::FTP

     A version of Perl with these extensions is available from

   http://www.devresource.hp.com/OpenSource/Tools/perl/perl.html

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

I.    Background

      Security Patch Check is a tool which can be used to download
      the latest data about security patches and compare it to the
      software installed on a system.  The tool reports which security
      patches are missing from a system based on the security patch
      matrix which is derived from Security bulletins released by HP.
      It reports the "best" patch to install if at least one patch
      exists to address the reported vulnerability but none (it or
      a patch superseding it) is installed.

      Also, any recalled patches which are present on the system will
      be reported.  It works through a firewall, with the help of a
      web-proxy or similar network device.

II.   Common Questions

      A.  What are the security implications of Security Patch Check
          itself?

        Security Patch Check summarizes a specific class of possible
      weaknesses in a system (unpatched vulnerabilities reported in
      HP security bulletins).  However, it does not explicitly add a
      vulnerability to the system.  The analysis it performs can be
      done by anyone with permission to run swlist on the system in
      question.

        You may, however, want to restrict access to swlist (such as
      remote access). To view the permissions for the SD database
      (and thus swlist), run

      # swacl -l host
      OR
      # swacl -l root

        Look for any entry beginning with "any_other". To prevent
      "any_other" from accessing the SD database, run, for example:

      # swacl -l root -D any_other

        This will take away read privileges on the database to "others"
      (those not listed in the swacl output). Default swacl permissions
      prohibit remote modification but allow remote read, which is
      often used within an administrative domain.  Restricting remote
      read will prevent remote users from identifying which security
      patches are missing from your system (note that this is
      independent of whether you use Security Patch Check yourself
      or not, or even whether they do, since the analysis can also
      be done manually, though that is more difficult).

        It is possible to restore the ability to perform swlist commands
      to specific individual users or groups.  For example, to give
      user "dave" on remote host "admin1" the ability to run "swlist"
      against the local system, execute the command:

      # swacl -l root -M user:dave@admin1:r

        Similarly, to grant such capability to all members of group
      "admin", run:

      # swacl -l root -M group:admin:r

        Refer to swacl(1M) for more details.

        Most firewall configurations will restrict swlist access across
      multiple trust domains, so this is only an issue within a given
      trust domain (by default, swagentd listens on port 2121 - see
      swagentd(1M)).

        Refer to security_patch_check(1M) for other security issues.

      B.  After running security patch check on my system, what else do
          I need to do?

        Installing the patches that security_patch_check recommends
      addresses ONLY those vulnerabilities that are closed by patches.
      The security bulletins and advisories from HP sometimes contain
      other actions (manual steps) to close vulnerabilities.  Thus,
      each advisory from the archive of previously-released security
      advisories, which applies to the platform being analyzed, must
      be examined to determine if any manual steps are required.  This
      archive can be obtained from:

      http://itrc.hp.com/cki/bin/doc.pl/screen=ckiSecurityBulletin

      C.  Are there any known issues with Security Patch Check?

         No.  However, a previous version of Perl available from
      devresource.hp.com was found to conflict with HP-UX core patches
      (PHCO) 22923 and 23770.  If you have this version of Perl
      installed with these patches, installation of Security Patch
      Check will warn that it cannot find some required modules and
      invocation of Security Patch Check will fail with a similar
      message.  The version of Perl currently available on the
      www.devresource.hp.com URL listed above does not have this
      problem.  You will need version 5.005_03.2001-05-01 or later.
      Your version of Perl can be found by running "swlist Perl".
      You may need to update perl if you have an older version and
      have one of these patches or their successors installed.

III.  Recommended actions

         Set swacl permissions in accordance with your site's security
      policy, taking into consideration any use of firewalls which
      block swlist/swagentd (port 2121), and who should be able to run
      swlist/swagentd and thus Security Patch Check remotely (see the
      swacl man page for details).

         Download and install Perl.  Version 5.005 or higher with all
      of the LWP libraries is required.  An HP-UX depot containing all
      of the required dependencies is available at:

         http://www.devresource.hp.com/OpenSource/Tools/perl/perl.html

         Download and install Security Patch Check.  This is available
      for free at:

   http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6834AA

         Set the environment variable ftp_proxy if you are behind a
      proxying firewall and wish to use the automatic download feature
      of Security Patch Check (see man page for details).  It is
      recommended that you run Security Patch Check on a regular
      basis (e.g., nightly) to ensure that your systems are up-to-date
      with respect to security patches.  Security Patch Check will
      report recalled patches and security patches which correspond to
      installed software but have not been applied.  After reading the
      corresponding recall notices and security bulletins, apply patches
      in accordance with your site's security and patch policies.

         Security Patch Check is only able to analyze patches.
      Some HP Security Bulletins contain manual actions which cannot be
      analyzed in an automated fashion.  An archive of all previously
      released HP security bulletins is available at:

         http://itrc.hp.com/cki/bin/doc.pl/screen=ckiSecurityBulletin


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

      Under the Maintenance and Support Menu (Electronic Support
      Center), click on the "more..." link.  Then -

      Use the 'Login' tab at the left side of the screen to login
      using your ID and password.  Check with your system
      administrator to see if you have an existing login or use
      the "Register" button at the left to create a login.  You
      will need to login in order to gain access to many areas of
      the ITRC. Remember to save the User ID assigned to you, and
      your password.

      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.itrc.hp.com:~ftp/export/patches/hp-ux_patch_matrix

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

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

      Permission is granted for copying and circulating this Advisory to
      Hewlett-Packard (HP) customers (or the Internet community) for the
      purpose of alerting them to problems, if and only if, the Advisory
      is not edited or changed in any way, is attributed to HP, and
      provided such reproduction and/or distribution is performed for
      non-commercial purposes.

      Any other use of this information is prohibited. HP is not liable
      for any misuse of this information by any third party.
________________________________________________________________________
-----End of Document ID:  HPSBUX0105-150--------------------------------------


Document ID:  HPSBUX0104-148
Date Loaded:  20010509
      Title:  Sec. Vulnerability in xntpd(1M) (revised 01)

-------------------------------------------------------------------------
**REV01**HEWLETT-PACKARD COMPANY SECURITY BULLETIN: #0148, 06 Apr. '01
Last Revised: 08 May '01
-------------------------------------------------------------------------

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:  The HP-UX NTP daemon (xntpd) contains an exploitable
          vulnerability.

PLATFORM: HP9000 Series 700/800 running HP-UX releases 10.XX and 11.XX.

SOLUTION: Install the appropriate patch as described below.

DAMAGE:   Possible denial of service.

SOLUTION: **REVISED 01**
           Install the appropriate patch for HP-UX releases as
           described below.

           10.01, 10.10, 10.20         PHNE_23717;
           11.00                       PHNE_23697;
           11.11                       PHNE_22722.

AVAILABILITY: All patches are available now.

CHANGE SUMMARY:  Patch solution provided.
-------------------------------------------------------------------------
   A. Background
      A buffer overflow has been discovered on various Unix-derived
      operating systems in its NTP daemon.  Hewlett-Packard Company
      ships xntpd on HP-UX releases and has determined that it too,
      is vulnerable.

**REVISED 01**
   B. Recommended solution
      Hewlett-Packard Company recommends that the following patches
      be installed as appropriate, and that customers look at
      /etc/ntp.conf.exam for suggested configuration information.
      For the following releases of HP-UX, use:

           10.01, 10.10, 10.20         PHNE_23717;
           11.00                       PHNE_23697;
           11.11                       PHNE_22722.


   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

      Under the Maintenance and Support Menu (Electronic Support
      Center):  click on the "more..." link.  Then -

      Use the 'Login' tab at the left side of the screen to login
      using your ID and password.  Check with your system
      administrator to see if you have an existing login or use
      the "Register" button at the left to create a login.  You
      will need to login in order to gain access to many areas of
      the ITRC. Remember to save the User ID assigned to you, and
      your password.

      Under the Maintenance and Support Menu, click on the "more..."
      link.  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 "hp security bulletins archive" near the bottom.
      Once in the archive the top link is to our current Security
      Patch Matrix.  Updated daily, this matrix categorizes security
      patches by platform/OS release, and by bulletin topic.

      The security patch matrix is also available via anonymous ftp:

      ftp.itrc.hp.com:~ftp/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.

      Permission is granted for copying and circulating this Bulletin
      to Hewlett-Packard (HP) customers (or the Internet community)
      for the purpose of alerting them to problems, if and only if,
      the Bulletin is not edited or changed in any way, is attributed
      to HP, and provided such reproduction and/or distribution is
      performed for non-commercial purposes.

      Any other use of this information is prohibited. HP is not
      liable for any misuse of this information by any third party.
________________________________________________________________________
-----End of Document ID:  HPSBUX0104-148--------------------------------------


 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

Copyright 2013, SecurityGlobal.net LLC