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 09:30:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newsengine.sol.net!newspump.sol.net!chcgil2-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: Buffer Overflows - again Was: (Re: Congratulations for the festive sea Date: 21 Dec 2001 11:29:42 -0600 Organization: Encompasserve Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1008955847 8678 192.135.80.34 (21 Dec 2001 17:30:47 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 21 Dec 2001 17:30:47 +0000 (UTC) Xref: archiver1.google.com comp.os.vms:56585 alt.sys.pdp10:8524 comp.sys.dec:10024 In article , Mark Crispin writes: > On Fri, 21 Dec 2001, John J Francini wrote: >> Hence, buffer overflows and other nastiness. This philosophy is by NO >> MEANS restricted to Unix; it is very much evident in Microsoft-written OSes >> and applications (like Exchange, IIS, and many others), as well as plenty >> of other products. > > Including VMS. The reason why there aren't many buffer overflow attacks > on VMS is that the target is uncommon and uninteresting to the bad guys. > It's a form of security through obscurity. > This is a myth or legend. Bart Z. Lederman succinctly refuted such a myth recently. Here is what he said: From: Bart Z. Lederman (lederman@star.enet.dec.DISABLE-JUNK-EMAIL.com) Subject: Re: exploitable buffer overflows in VMS possible? Newsgroups: comp.os.vms View complete thread (23 articles) Date: 2001-07-09 07:33:03 PST 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 the VAX, though it is possible to write to the code segment at run time and execute the code (I wrote some diagnostic programs some years ago which did this). However, it's very strongly enforced on the Alpha. The buffers themselves which would have to overflow are in a segment of memory which is going to be marked to allow writes, but is also going to have to be marked as 'no execute'. Code is in segments which are going to be marked execute and no write. So even if a buffer was at the end of it's segment (or PSECT) and a code segment came right after it in memory, the memory protection schemes in VMS would probably stop you from being able to write to the code segment, and I think they would probably stop you from telling the program to execute a segment of memory that had been previously marked as data because it's going to be marked as no execute. I'm not saying it's impossible, but it is going to take a lot more effort than any of the buffer overflow exploits I've seen reported for other platforms. It would be a lot easier on a VAX if the program was written with improperly marked PSECTS that mixed code and data in the same memory segment. Fortunately, I don't think there are many of those around anymore. -- B. Z. Lederman Personal Opinions Only Posting to a News group does NOT give anyone permission to send me advertising by E-mail or put me on a mailing list of any kind. Please remove the "DISABLE-JUNK-EMAIL" if you have a legitimate reason to E-mail a response to this post. === > If VMS had achieved the level of success that UNIX did, and UNIX faded > into obscurity the way VMS did, then CERT bulletins would be filled with > the latest VMS buffer overflow attacks, and UNIX users would be snickering > about VMS insecurity. > Sure... but given that VMS is nearly impossible to exploit such an attact - by design - , the above makes for an interesting myth or legend. Rob