what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

S-97-09.asc

S-97-09.asc
Posted Jan 10, 2000

Subject HP-UX vgdisplay Date 7-feb-97

systems | hpux
SHA-256 | 8e834d9f4f516ef8752f62004785586c12a5aa1ad45391ff848a02c709a7d261

S-97-09.asc

Change Mirror Download
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===============================================================================
>> CERT-NL, 01-Mar-2000 <<
>> All CERT-NL information has been moved to http://cert.surfnet.nl. Links <<
>> to CERT-NL information contained in this advisory are therefore outdated. <<
>> <<
>> CERT-NL also has stopped the CERT-CC-Mirror service. Due to this the <<
>> links to the CERT-CC mirror are obsolete. Visit the CERT-CC site for the <<
>> complete CERT-CC advisory texts: http://www.cert.org <<
===============================================================================
===============================================================================
Security Advisory CERT-NL
===============================================================================
Author/Source : Teun Nijssen Index : S-97-09
Distribution : World Page : 1
Classification: External Version: 1
Subject : HP-UX vgdisplay Date : 7-feb-97
===============================================================================

By courtesy of AUSCERT we received the following information.

AA-97.04 AUSCERT Advisory
HP-UX vgdisplay Buffer Overrun Vulnerability
7 February 1997

Last Revised: --

- ---------------------------------------------------------------------------
AUSCERT has received information that a vulnerability exists in the
vgdisplay(1M) program which is part of the Logical Volume Manager subsystem
under HP-UX 10.x.

This vulnerability may allow local users to gain root privileges.

Exploit information involving this vulnerability has been made publicly
available.

Currently there are no vendor patches available that address this
vulnerability. AUSCERT recommends that sites take the steps outlined in
section 3 as soon as possible.

This advisory will be updated as more information becomes available.
- ---------------------------------------------------------------------------

1. Description

The HP-UX Logical Volume Manager (LVM) is a subsystem for managing
disk space. It comprises a number of auxiliary programs used to
create, display and manipulate the LVM information.

AUSCERT has received information that a vulnerability exists in the
vgdisplay(1M) program used to display information about LVM volume
groups.

Due to insufficient bounds checking on arguments which are supplied
by users, it is possible to overwrite the internal stack space of the
vgdisplay program while it is executing. By supplying a carefully
designed argument to the vgdisplay program, intruders may be able to
force vgdisplay to execute arbitrary commands. As vgdisplay is setuid
root, this may allow intruders to run arbitrary commands with root
privileges.

This vulnerability is known to affect HP-UX 10.x.

Note that many of the LVM utility programs are hard links to
vgdisplay(1M). This indicates that these utility programs share the
same code with vgdisplay, and may also be subject to similar attacks.

The following programs are all hard links: lvchange, lvcreate,
lvdisplay, lvextend, lvlnboot, lvreduce, lvremove, lvrmboot, pvchange,
pvcreate, pvdisplay, pvmove, vgcfgbackup, vgcfgrestore, vgchange,
vgcreate, vgdisplay, vgexport, vgextend, vgimport, vgreduce, vgremove,
vgscan.

By default, dynamically linked versions of the LVM programs are found
in /usr/sbin under HP-UX 10.x. Statically linked versions are also
available under HP-UX 10.x in /sbin.

Exploit information involving this vulnerability has been made
publicly available.

2. Impact

Local users may gain root privileges.

3. Workarounds/Solution

AUSCERT recommends that sites limit the possible exploitation of this
vulnerability by immediately removing the setuid permissions as stated
in Section 3.1.

Currently there are no vendor patches available that address this
vulnerability. AUSCERT recommends that official vendor patches be
installed when they are made available.

3.1 Remove setuid and non-root execute permissions

To prevent the exploitation of the vulnerability described in this
advisory, AUSCERT recommends that the setuid permissions be removed
from the vgdisplay program immediately. Note that permission changes
to vgdisplay will also affect those LVM utility programs which are
hard links to vgdisplay.

As the vgdisplay and related programs will no longer work for non-root
users, it is recommended that the execute permissions also be removed.

Sites will need to restrict permissions on both the dynamically linked
copies in /usr/sbin and the statically linked copies in /sbin.

First, restrict permissions on the copies in /usr/sbin. For example:

# ls -l /usr/sbin/vgdisplay
-r-sr-xr-x 23 root sys 376832 Jun 10 1996 /usr/sbin/vgdisplay

# chmod 500 /usr/sbin/vgdisplay
# ls -l /usr/sbin/vgdisplay
-r-x------ 23 root sys 376832 Jun 10 1996 /usr/sbin/vgdisplay

Second, restrict permissions on the copies in /sbin. For example:

# ls -l /sbin/vgdisplay
-r-sr-xr-x 23 root sys 606208 Jun 10 1996 /sbin/vgdisplay

# chmod 500 /sbin/vgdisplay
# ls -l /sbin/vgdisplay
-r-x------ 23 root sys 606208 Jun 10 1996 /sbin/vgdisplay

Note that this will remove the ability for any non-root user to run
vgdisplay or any of the LVM utility programs which are hard linked to
vgdisplay.

4. Previous patches

During the installation of HP-UX patches, copies of files being
replaced are saved in case the patches need to be backed out of. The
original versions of patched files are often stored in the following
location:

HP-UX 10.x: /var/adm/sw/patch/<PATCH_NAME>/

If patches for vulnerable programs have been previously installed,
copies of the vulnerable programs may be available in the above
location. Sites should ensure the directories have permissions
which restrict access to the patch areas.

5. Additional measures

Most Unix systems ship numerous programs which have setuid or
setgid privileges. Often the functionality supplied by these
privileged programs is not required by many sites. The large number
of privileged programs that are shipped by default are to cater for
all possible uses of the system.

AUSCERT encourages sites to examine all the setuid/setgid programs
and determine the necessity of each program. If a program does not
absolutely require the setuid/setgid privileges to operate (for
example, it is only run by the root user), the setuid/setgid
privileges should be removed. Furthermore, if a program is not
required at your site, then all execute permissions should be removed.

A sample command to find all setuid/setgid programs is (run as root):

# find / \( -perm -4000 -o -perm -2000 \) -exec ls -ld {} \;

It is AUSCERT's experience that many vulnerabilities are being
discovered in setuid/setgid programs which are not necessary for the
correct operation of most systems. Sites can increase their security
by removing unnecessary setuid/setgid programs.

- ---------------------------------------------------------------------------
AUSCERT thanks Hewlett-Packard for their continued assistance and technical
expertise essential for the production of this advisory.
- ---------------------------------------------------------------------------

CERT-NL recommends to act on the AUSCERT info.

==============================================================================
CERT-NL is the Computer Emergency Response Team for SURFnet customers. SURFnet
is the Dutch network for educational, research and related institutes. CERT-NL
is a member of the Forum of Incident Response and Security Teams (FIRST).

All CERT-NL material is available under:
http://cert.surfnet.nl/

In case of computer or network security problems please contact your local
CERT/security-team or CERT-NL (if your institute is NOT a SURFnet customer
please address the appropriate (local) CERT/security-team).

CERT-NL is one/two hour(s) ahead of UTC (GMT) in winter/summer,
i.e. UTC+0100 in winter and UTC+0200 in summer (DST).

Email: cert-nl@surfnet.nl ATTENDED REGULARLY ALL DAYS
Phone: +31 302 305 305 BUSINESS HOURS ONLY
Fax: +31 302 305 329 BUSINESS HOURS ONLY
Snailmail: SURFnet bv
Attn. CERT-NL
P.O. Box 19035
NL - 3501 DA UTRECHT
The Netherlands

NOODGEVALLEN: 06 22 92 35 64 ALTIJD BEREIKBAAR
EMERGENCIES : +31 6 22 92 35 64 ATTENDED AT ALL TIMES
CERT-NL'S EMERGENCY PHONENUMBER IS ONLY TO BE USED IN CASE OF EMERGENCIES:
THE SURFNET HELPDESK OPERATING THE EMERGENCY NUMBER HAS A *FIXED*
PROCEDURE FOR DEALING WITH YOUR ALERT AND WILL IN REGULAR CASES RELAY IT
TO CERT-NL IN AN APPROPRIATE MANNER. CERT-NL WILL THEN CONTACT YOU.
===============================================================================

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.1i

iQA/AwUBOL6ISzSYjBqwfc9jEQLs6wCgvWoVG3wTBR+l2HlegcvMSVcK//MAoLJk
KUnPoBoAtNszRmGtsotfyDI2
=zAtG
-----END PGP SIGNATURE-----
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 Files
  • 26
    Apr 26th
    14 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close