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: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2001-12-21 15:29:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news3.cac.psu.edu!not-for-mail From: viro@weyl.math.psu.edu (Alexander Viro) Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: Buffer Overflows - again Was: (Re: Congratulations for the festive sea Date: 21 Dec 2001 18:27:05 -0500 Organization: -ENOENT Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <9vvt7m$hu2@weyl.math.psu.edu> NNTP-Posting-Host: weyl.math.psu.edu Xref: archiver1.google.com comp.os.vms:56687 alt.sys.pdp10:8566 comp.sys.dec:10092 In article , Rob Young wrote: > > It sounds like you are trying to insert your own code somewhere and > run it. That is how I am interpreting this: "instead of putting your > code into buffer". This code you would attempt to run or exploit > has to be written somewhere. If you write it in a data PSECT, you > can't run it. If you attempt to write it in a code section, it > won't let you. Hence "buffer overflow" exploits are nearly impossible > on Alpha VMS. > > Are you attempting to exploit (buffer overflow) an existing program > on VMS? Go from theory to example... Sigh... What is it with illiterate weenies of all sorts? 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. However, program that is vulnerable to attacks of that class is vulnerable to slightly different sort of attacks. One that is _not_ prevented by having data segment non-executable. Search the bugtraq archives. Find any instance of the (recurring) thread with "non-executable stack" in subject. Read it. Think for a while. Notice that while details depend on calling conventions, vulnerability itself is pretty much the same, regardless of the OS. There are systems (including several Unices, BTW) that have non-executable stack and data segments. There are patches that provide that for other systems. And there are half-literate advocates that happily claim that it makes $OS more secure. Bullshit. Stack-smashing is stack-smashing and if your program allows it - it can be tricked into doing what attacker wants. With priveleges it's run with. -- Fairy Tails start "Once upon a time." Army/Sea stories start "This is no shit." Software proposals start "1.0." Joe Zeff in the Monastery