Re: digital unix 4.0 hole

From: Paul Szabo (szabo_pat_private)
Date: Thu Nov 20 1997 - 11:40:09 PST

  • Next message: Aleph One: ""LAND" Attack Update"

    [I sent this to bugtraq on 17 Nov, but maybe the moderator misplaced it...]
    
    There are currently two threads of creating root-owned core files on dUNIX
    machines. Tom Leffingwell <tomat_private> wrote:
    > setenv DISPLAY abcdefghi
    > /usr/bin/X11/xterm
    and John McDonald <jmcdonalat_private> suggested:
    > If you run dbx (tested on 3.11.10) on a setuid root program ...
    
    To avoid the problem of core file creation, Johan Danielsson
    <jodaat_private> said to patch /vmunix:
    > # cp /vmunix /vmunix.save
    > # dbx /vmunix
    > (dbx) ((unsigned*)core+82)/1 i
    >   [core:5261, 0xfffffc000026ff48]       and     r1, r2, r1
    > (dbx) patch *((unsigned*)core+82) = 0x203f0001
    >   [core:5261, 0xfffffc000026ff48]       lda     r1, 1(r31)
    > (dbx) q
    > # reboot
    
    A colleague of mine suggests that, since /sbin/rc3.d starts anything a
    user's process could be a descendant of, a simpler method might be to insert
    one line into /sbin/rc3 :
    
    ulimit -h -c 0
    
    This solution seems to work for me (passed my limited testing).
    
    Paul Szabo - System Manager   //        School of Mathematics and Statistics
    pszat_private         //   University of Sydney, NSW 2006, Australia
    



    This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 13:32:18 PDT