From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-12-21 15:58:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cyclone2.usenetserver.com!usenetserver.com!news01.optonline.net!news02.optonline.net.POSTED!not-for-mail From: Arthur Krewat Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: Buffer Overflows - again Was: (Re: Congratulations for the festive sea Organization: Kilonet.net Message-ID: <3C23CB7E.B77E043C@bartek.dontspamme.net> References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <9vvt7m$hu2@weyl.math.psu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.8 i86pc) X-Accept-Language: en Date: Fri, 21 Dec 2001 23:58:03 GMT NNTP-Posting-Host: 24.186.100.134 X-Trace: news02.optonline.net 1008979083 24.186.100.134 (Fri, 21 Dec 2001 18:58:03 EST) NNTP-Posting-Date: Fri, 21 Dec 2001 18:58:03 EST Xref: archiver1.google.com comp.os.vms:56695 alt.sys.pdp10:8568 comp.sys.dec:10095 Alexander Viro wrote: > > Let me repeat it in slowly. Making data segment non-executable does not > make buffer overruns less harmful. What it _does_ provide is a protection > against one class of attacks, namely ones that place code to be executed > directly into the buffer. I think the problem is he doesn't realize there is another sort of buffer exploit that doesn't involve running your own code on the machine. For example, a very simple piece of C code that shows a buffer exploit without having to actually run code on the stack: void hole(char *url) { char tempurl[512]; char flags; /* 1=admin, 2=guest, 4=wheel */ char *p,*p2; int i=0; p=tempurl; p2=url; while (*p2) *p++=*p2++; {lots of other code that uses the flags to do things with} } Then, call hole with 513 char URL with the last character being ASCII code for "1". This will fill flags with (octal) 61 and the admin flag will be set. aak