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 12:25:58 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!wn1feed!wn3feed!worldnet.att.net!198.6.0.7!uunet!ash.uu.net!spool0900.news.uu.net!reader0902.news.uu.net!not-for-mail Message-ID: <3C235485.6DAE0096@trailing-edge.com> Date: Fri, 21 Dec 2001 15:25:57 -0400 From: Tim Shoppa Organization: Trailing Edge Technology X-Mailer: Mozilla 3.03Gold (X11; I; OpenVMS V7.2 AlphaServer 1200 5/533 4MB) MIME-Version: 1.0 Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: Buffer Overflows - again Was: (Re: Congratulations for the festive sea References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <9vvt7m$hu2@weyl.math.psu.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 63.73.218.130 X-Trace: 1008966347 reader2.ash.ops.us.uu.net 11073 63.73.218.130 Xref: archiver1.google.com comp.os.vms:56641 alt.sys.pdp10:8551 comp.sys.dec:10060 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. Tim.