From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f72b0,8b6d74fa49f7b9e0 X-Google-Attributes: gidf72b0,public X-Google-Thread: 10f5df,8b6d74fa49f7b9e0 X-Google-Attributes: gid10f5df,public X-Google-Thread: 1164f8,b96cc09c15c35fb X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,b96cc09c15c35fb X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1993-03-19 14:35:54 PST Xref: sparky comp.sys.dec:7960 comp.unix.ultrix:10422 comp.unix.misc:5536 comp.sys.dec:7961 vmsnet.admin:539 Newsgroups: comp.sys.dec,comp.unix.ultrix,comp.unix.misc,comp.sys.dec,vmsnet.admin Path: sparky!uunet!grebyn!daily!mfraioli From: mfraioli@grebyn.com (Marc Fraioli) Subject: Re: Urgent: a hole in X security - xwatchwin2 Message-ID: <1993Mar19.222521.5307@grebyn.com> Organization: Grebyn Timesharing References: <1993Mar16.230422.14356@grebyn.com> Date: Fri, 19 Mar 1993 22:25:21 GMT In article cons@mercury.cern.ch (Lionel Cons) writes: >>>>>> On Tue, 16 Mar 1993 23:04:22 GMT, mfraioli@grebyn.com (Marc Fraioli) said: > >> > In article dobyrne@curia.ucc.ie (David O'Byrne) writes: >> > >> >A new program has found its way into our LAN called xwatchwin2. This >> >appears to allow anyone who can log in to a machine to view the contents of >> >any users session on that machine. Is there a workaround, perhaps a server option >> >(Xws and Xtm2). Our LAN consists of a network of DECstation 5000's running >> >Ultrix 4.2. >> > >> >thanks >> >David >> >-- >> >> This program has been around, sometimes called xkey, and exploits a >> bug which I believe only exists in X11R3 and earlier. > >These are two different programs, xwatchwin2 gets a copy of what's on >the screen (like xwd) and xkey gets all the keys pressed. xkey is more >dangerous because it can record the passwords you type. > >Both programs work in all versions of X (including X11R5) because they >do not exploit a bug but only design features. > Ok... >> While Ultrix >> 4.2 (I actually use 4.2a-- I don't know what the differences are) >> on a DEC5000 comes with X11R4, unfortunately some of the clients, >> such as dxterm, are still R3 clients, from what I understand. With >> the dxterm, it is possible to defeat this by choosing the "secure >> terminal" option from one of its pull-down menus. > >Wrong!!! A trivial enhancement to xkey (as it was posted) allows to >ignore the "secure terminal" option. This option is useless and does >not protect anything. Don't rely on it! > >BTW, xterm as an option called "secure keyboard" that does the same >thing (and is therefore also useless). > I hadn't realized that. I'm no X guru, and I found that the "secure keyboard" option defeated the version of xkey that I had. Thanks for the tip. >> Unfortunately, >> this causes the X server to misbehave in various strange ways. >> Still, it's useful to prevent someone from grabbing your screen >> while you su, for example, thus allowing you to at least keep the >> root password secure. Other than >> that, I don't know any general way around it. >> >> -- >> Marc Fraioli >> mfraioli@grebyn.com (So I'm a minimalist...) > >In conclusion, if you allow someone to access your display then he can >do anything: read the screen and record every key you type. > >The ONLY solution is to restrict the access to your display, by using >xauth and the MIT-MAGIC-COOKIE for instance. >-- I've noticed that our Suns use this. I can't figure out how to do it on our Ultrix machines though. It doesn't seem to be in the man pages. Any help? >Lionel Cons -- Marc Fraioli mfraioli@grebyn.com (So I'm a minimalist...)