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 13:10:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!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 15:10:46 -0600 Organization: Encompasserve Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <9vvt7m$hu2@weyl.math.psu.edu> <3C235485.6DAE0096@trailing-edge.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1008969048 12011 192.135.80.34 (21 Dec 2001 21:10:48 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 21 Dec 2001 21:10:48 +0000 (UTC) Xref: archiver1.google.com comp.os.vms:56655 alt.sys.pdp10:8553 comp.sys.dec:10070 In article <3C235485.6DAE0096@trailing-edge.com>, Tim Shoppa writes: > Rob Young wrote: >> >> 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. > > But write it over the stack (where a C program is likely to keep > all its local variables), and when you hit a return you can go > to any syscall you want with whatever parameters you want. True, > it's not easy to run code, but all you have to do is rename a file > or change a protection or set the setuid bit (Unix) or redefine > a logical (VMS) and the system can be made wide open. > Man... again, a very rough Friday crowd. We are renaming files? So I guess the person renaming owns it or they just so happen to have BYPASS or some other mechanism? Writing over a stack? You have CMKRNL privs too when you pop off the stack? Gee-whiz, I wouldn't claim given privs and a $ prompt you can't hack a VMS system. Yeah, back in the day we had all sorts of fun (college). Rob