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 10:52:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!young_r From: young_r@encompasserve.org (Rob Young) 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 12:52:44 -0600 Organization: Encompasserve Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <9vvt7m$hu2@weyl.math.psu.edu> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1008960767 9935 192.135.80.34 (21 Dec 2001 18:52:47 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 21 Dec 2001 18:52:47 +0000 (UTC) Xref: archiver1.google.com comp.os.vms:56609 alt.sys.pdp10:8537 comp.sys.dec:10041 In article <9vvt7m$hu2@weyl.math.psu.edu>, viro@weyl.math.psu.edu (Alexander Viro) writes: > In article , > Rob Young quoted: > >>I would be a bit surprised if you could exploit this type of a hole on VMS, >>particularly on Alpha. Programs are divided into code and data segments, and >>you can't execute something in a data segment. This is moderatly enforced on > > ... so instead of return into data buffer you do return into library function. > Non-executable data segment does _not_ stop buffer overrun attacks. That > had been demonstrated again and again - exploits are slightly different, > but not noticably harder. > > IOW, instead of putting your code into buffer and overwriting return address > with address of the buffer you overwrite the return address with entry > point of library function and create a fake stack frame so that return > would enter that function with arguments of your choice. BFD... > Tell us what you mean by example. 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... Rob