Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Urgent: a hole in X security - xwatchwin2
       [not found] <1993Mar15.071215.5122@tigger.jvnc.net>
@ 1993-03-15 14:30 ` David O'Byrne
  1993-03-15 16:59   ` Andre Beck
                     ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: David O'Byrne @ 1993-03-15 14:30 UTC (permalink / raw)



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
-- 
	

	   	   .....                                       
        	  .    .    ..    .    .     .    ...         


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-15 14:30 ` Urgent: a hole in X security - xwatchwin2 David O'Byrne
@ 1993-03-15 16:59   ` Andre Beck
  1993-03-15 17:50     ` Bob Heiney
  1993-03-15 19:56   ` Jack A. Zucker
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 21+ messages in thread
From: Andre Beck @ 1993-03-15 16:59 UTC (permalink / raw)



In article <C3xpnn.8LK@curia.ucc.ie>, 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.  
|> 

This hole was and is there in X, until MIT brought some authorization
protocols to us, as f.i. MAGIC-COOKIE and the newer successors. Anyway,
as far as I know Xws has nothing like this and is thus unsafe.

The hostname based authorization is a hog because one can simply log into
the workstation, set DISPLAY to :0.0 and has access...

BTW, there are definately more sad things one could do through this hole,
f.i. snooping keystrokes (to get passwords) or killing all windows...
Ever seen a poor users panic reations when smooth fading his display to
white, then to black and then killing all his windows ???

--
+-o-+--------------------------------------------------------------+-o-+
| o |                \\\-  Brain Inside -///                       | o |
| o |                    ^^^^^^^^^^^^^^^                           | o |
| o | Andre' Beck (ABPSoft) mehl: Andre_Beck@IRS.Inf.TU-Dresden.de | o |
+-o-+--------------------------------------------------------------+-o-+


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-15 16:59   ` Andre Beck
@ 1993-03-15 17:50     ` Bob Heiney
       [not found]       ` <1o2jfe$1t7@irz401.inf.tu-dresden.de>
       [not found]       ` <1o2p4t$20t@irz401.inf.tu-dresden.de>
  0 siblings, 2 replies; 21+ messages in thread
From: Bob Heiney @ 1993-03-15 17:50 UTC (permalink / raw)


In article <1o2cm0$1p9@irz401.inf.tu-dresden.de>
Andre_Beck@IRS.Inf.TU-Dresden.DE writes:
>
> ...
>
>This hole was and is there in X, until MIT brought some authorization
>protocols to us, as f.i. MAGIC-COOKIE and the newer successors. Anyway,
>as far as I know Xws has nothing like this and is thus unsafe.
>

As of ULTRIX 4.3, the X servers and Xlib support MIT-MAGIC-COOKIE.  See section
7.2.2 of the ULTRIX release notes.  You might want to set up Xdm, too.
-- 
Bob Heiney  ( heiney@pa.dec.com )
Technical Consultant                             "Who is John Galt?"
Digital Equipment Corporation, US Desktop Sales, Palo Alto, CA
All opinions expressed are mine, and not necessarily those of my employer


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-15 14:30 ` Urgent: a hole in X security - xwatchwin2 David O'Byrne
  1993-03-15 16:59   ` Andre Beck
@ 1993-03-15 19:56   ` Jack A. Zucker
       [not found]   ` <1993Mar16.230422.14356@grebyn.com>
       [not found]   ` <CONS.93Mar17101003@mercury.cern.ch>
  3 siblings, 0 replies; 21+ messages in thread
From: Jack A. Zucker @ 1993-03-15 19:56 UTC (permalink / raw)


What are you selling exactly ?
-- 

          | Bmaj7  D7  | Gmaj7 Bb7 | Ebmaj7  | Am7  D7  |

| Jack A Zucker                              {uunet}!jaz@icd.ab.com |
| Allen-Bradley Company, Inc.                    or  ICCGCC::ZUCKER |
| 747 Alpha Drive                                                   |
| Highland Hts., OH 44143 Phone(216) 646-4668   FAX: (216) 646-4484 | 



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
       [not found]       ` <1o2jfe$1t7@irz401.inf.tu-dresden.de>
@ 1993-03-15 19:58         ` Bob Heiney
  0 siblings, 0 replies; 21+ messages in thread
From: Bob Heiney @ 1993-03-15 19:58 UTC (permalink / raw)


In article <1o2jfe$1t7@irz401.inf.tu-dresden.de>
Andre_Beck@IRS.Inf.TU-Dresden.DE writes:
>
>Are those Release notes somewhere on an upgraded machine ? Or do i have
>to search for a printed book ?

The release notes are printed and are included with the upgrade media in
the upgrade kit.

>BTW, is there no chance to use it correctly with XPrompter ?

You can use MIT-MAGIC-COOKIE without using Xdm (i.e. yes you can use it with
Xprompter).  However, depending on how your workstation is used Xdm might
be more convenient.  Xdm will generate a new authorization for you and
communicate it to the server every time you log in.  If you use Xprompter,
then you have to generate an authorization (as often as you think necessary),
and you must tell the server to use it using the "-auth" option.
-- 
Bob Heiney  ( heiney@pa.dec.com )
Technical Consultant                             "Who is John Galt?"
Digital Equipment Corporation, US Desktop Sales, Palo Alto, CA
All opinions expressed are mine, and not necessarily those of my employer


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
       [not found]       ` <1o2p4t$20t@irz401.inf.tu-dresden.de>
@ 1993-03-16 18:53         ` Bob Heiney
  0 siblings, 0 replies; 21+ messages in thread
From: Bob Heiney @ 1993-03-16 18:53 UTC (permalink / raw)


In article <1o2p4t$20t@irz401.inf.tu-dresden.de>
Andre_Beck@IRS.Inf.TU-Dresden.DE writes:
>
> [...]
>
>Ok, after I've found the releasenotes somewhere deep in the Bookreader
>tree, I'm now on suspect about the mechanism described there for use
>of MIT-MAGIC-COOKIE-1 without xdm. What is the sense of copying one
>authority file into the root directory ? To let somebody access the
>machine, he needs the same authority.  [ ... ]
>So, is auth without xdm useless ?

Using MIT-MAGIC-COOKIE without Xdm is not useless, it's just limited.  You'd
only want to do it if only one user was going to login in and use X.
Hardwiring an authorization in this way is useful because many people have a
"home" workstation that they don't want anybody else to log in on the console
or display X to.

If you want to allow many users to log in and use X with per-user 
display authorization then you need something like Xdm to generate and install 
a new security token (in the user's home directory and on the server).
Xprompter just doesn't know how to do it.

Xdm (with MIT-MAGIC-COOKIE enabled) is what is used on DEC OSF/1.

-- 
Bob Heiney  ( heiney@pa.dec.com )
Technical Consultant                             "Who is John Galt?"
Digital Equipment Corporation, US Desktop Sales, Palo Alto, CA
All opinions expressed are mine, and not necessarily those of my employer


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
       [not found]   ` <1993Mar16.230422.14356@grebyn.com>
@ 1993-03-17  5:43     ` Jason Haar
  1993-03-18 20:01       ` Jason Haar
  0 siblings, 1 reply; 21+ messages in thread
From: Jason Haar @ 1993-03-17  5:43 UTC (permalink / raw)


Marc Fraioli (mfraioli@grebyn.com) wrote:
>
> This program has been around, sometimes called xkey, and exploits a bug
> which I believe only exists in X11R3 and earlier.  While Ultrix 4.2 (I

I'm afraid I've got some bad news for you... this isn't a "bug" - it's a
feature ;-)


DEC for some reason refuses to implement the MIT MAGIC-COOKIE routines
which allow a sort-of end-user X security. Under DECwindows (for example),
you have the option with DECnet of allowing usercode MYNAME on node
NODENAME to access your display (under the Security menu). With TCP/IP,
you have to specify a wildcard for the usercode - i.e. any user on TCP/IP
node MYNAME can output onto your display. The MAGIC-COOKIE stuff (I'm a
user - not a guru in case you haven't noticed ;-) involves you giving to
the usercodes you want to be able to access your display a special file
that contains a "password-like" phrase that they must show the server
(your display) before actually being able to connect.

Hence it allows you a similar level of protection for TCP/IP as already
exists over DECnet (DECnet uses a completely different authentication
scheme - after all, the person's usercode is passed in each packet!).

I can attest that this "problem" exists under X11R5 - but as only Un*x
boxes here use R5 - they all have MAGIC-COOKIE protection and everyone
lives happily ever after :-)


BTW: xkey is nasty - it certainly allows you to grab passwords/etc... If
you run X11 - you _should_ run MAGIC-COOKIE

 --

Cheers

Jason Haar, Network Consultant



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
       [not found]   ` <CONS.93Mar17101003@mercury.cern.ch>
@ 1993-03-17 16:19     ` Robert J. Granvin
  1993-03-19  3:42       ` Ian Dall
       [not found]       ` <1oq61sINNgp5@shelley.u.washington.edu>
  1993-03-19 22:25     ` Marc Fraioli
  1 sibling, 2 replies; 21+ messages in thread
From: Robert J. Granvin @ 1993-03-17 16:19 UTC (permalink / raw)


Would someone be willing to post a quick summary on the proper usage of
xauth, MIT-MAGIC-COOKIE and what all those little nuances a person needs
to know to enable this most basic of display security?

(i.e., talking about the problems are great, but a quick summary of
procedures would help the more novice users get up and running quicker...)

-- 
\\ Robert J. Granvin                                 User Services Specialist
// School of Statistics - University of Minnesota            rjg@stat.umn.edu
    You know you've made a gear-up landing when it takes full power to taxi.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-17  5:43     ` Jason Haar
@ 1993-03-18 20:01       ` Jason Haar
  1993-03-20 19:08         ` Bob Longo
  0 siblings, 1 reply; 21+ messages in thread
From: Jason Haar @ 1993-03-18 20:01 UTC (permalink / raw)


A followup to my previous posting - it has been pointed out to me that
Ultrix 4.3 does support MAGIC-COOKIE - no such luck for VMS users tho'...

 --

Cheers

Jason Haar, Network Consultant


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-17 16:19     ` Robert J. Granvin
@ 1993-03-19  3:42       ` Ian Dall
  1993-03-19  5:34         ` George Michaelson
  1993-03-19 14:22         ` Marcus J Ranum
       [not found]       ` <1oq61sINNgp5@shelley.u.washington.edu>
  1 sibling, 2 replies; 21+ messages in thread
From: Ian Dall @ 1993-03-19  3:42 UTC (permalink / raw)



In article <C41K1D.IH8@news.cis.umn.edu>, rjg@umnstat.stat.umn.edu (Robert J. Granvin) writes:
> Would someone be willing to post a quick summary on the proper usage of
> xauth, MIT-MAGIC-COOKIE and what all those little nuances a person needs
> to know to enable this most basic of display security?
> 
> (i.e., talking about the problems are great, but a quick summary of
> procedures would help the more novice users get up and running quicker...)

OK. Here goes. No doubt someone will correct me if I get it wrong!

A MIT-MAGIC-COOKIE is a long (random) number. Essentially, the server
allows any client which knows that random number to connect.

All the rest is just the mechanism by which the cookies are generated
and made known to the clients and servers.

The cookie can be specified on the commandline when a server is
started.  It can also be set by the XDM protocol. Magic cookies are
normally stored in a users ~/.Xauthority file. There is only one
cookie for each server the user is authorised to connect to.

XDM normally generates a magic cookie, communciates it with the server
via the XDM protocol and makes the entry for a given display just
before starting a users xsession. Clients look in the .Xauthority file
to get the cookie for the display they are trying to connect to.

XDM is strongly recommended (by me) over dxprompter or whatever it is
called. XDM can both start local servers and manage remote (X terminal)
servers. Also, I strongly recommend R5 xdm over R4 xdm. The configuration
is cleaner and I had some problems with R4 xdm on ultrix (only for
local servers). The X distribution comes with quite good examples for
all the config files needed for XDM. I've no idea whether the DEC unsupported
subsets MIT X has these sample config files. Certainly it is still back
at release 5.

If you don't use XDM, you need to a) generate a magic cookie, it is
just a random number of the right number of digits, b) start the server
with that magic cookie as an argument and c) enter the cookie into
.Xauthority using xauth.

Xauth can also be used to extract entries. With xauth plus a little fiddling
with rsh, you can, extract an entry from you local .Xauthority, enter
it into a remote .Xauthority (anywhere where you have permission to
write to .Xauthority) and then start clients on a remote machine. For
example, here is my xrsh script. It will normally allow you
to just do "xrsh host xterm" for example. Beware that if you use a shell
which doesn't have a built in echo, this script might momentarilly allow
your cookie to be seen with ps.


 #!/usr/bin/bash

 FROM=$HOME/.Xauthority
 XEXTRACT="xauth -f $FROM nextract - $DISPLAY"
 XMERGE="xauth nmerge -"
 XBIN=/usr/local/bin/X11:/usr/bin/X11

 AUTHKEY=`$XEXTRACT`

 SETENV="\
 DISPLAY=$DISPLAY; export DISPLAY;
 if [ -r .Xclientenv ]; then
   . .Xclientenv
 else
   PATH=$XBIN:"'$PATH'"; export PATH
 fi"

 cmd=xterm

 if [ $# -lt 1 ]; then
   echo $USAGE
   exit 1
 fi

 host=$1
 shift

 rsh $host exec sh <<-!END_REMOTE!
   $SETENV
   exec > .Xlog 2>&1
   (echo $AUTHKEY) | $XMERGE
   ${@:-$cmd}&
 !END_REMOTE!



I don't actually recall why I have brackets around "echo $AUTHKEY".
Possibly I used to close the file descriptors (instead of re-directing
them) and bash complained about trying to redirect a closed file
descriptor.
-- 
Ian Dall          I'm not into isms, but hedonism is the most
                  harmless I can think of. -- Phillip Adams

internet: dall@hfrd.dsto.gov.au


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-19  3:42       ` Ian Dall
@ 1993-03-19  5:34         ` George Michaelson
  1993-03-19 12:05           ` Andre Beck
  1993-03-19 14:22         ` Marcus J Ranum
  1 sibling, 1 reply; 21+ messages in thread
From: George Michaelson @ 1993-03-19  5:34 UTC (permalink / raw)



You can't use XDM unmodified on Ultrix/ENHANCED or Ultrix/UPGRADE because
verify.c/Verify() calls getpwnam() and crypt() instead of getauthuid()
and crypt16()  and the passwd data and crypt calls are different under this
regime.

Admittedly the mods are trivial. 

-George
--
                         George Michaelson
G.Michaelson@cc.uq.oz.au The Prentice Centre      | There's no  market for
                         University of Queensland | hippos in Philadelphia
Phone: +61 7 365 4079    QLD Australia 4072       |          -Bertold Brecht


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-19  5:34         ` George Michaelson
@ 1993-03-19 12:05           ` Andre Beck
  0 siblings, 0 replies; 21+ messages in thread
From: Andre Beck @ 1993-03-19 12:05 UTC (permalink / raw)




Could one use a scenario as f.i.:

- Have the Xprompter beeing a script that creates a new cookie before
  starting the real prompter.
- start the xserver with this authority
- copy the authority to the homedir of the user that logs in

This would require to know the username. Any way to do it ?

Of course I could use xdm, but...

--
+-o-+--------------------------------------------------------------+-o-+
| o |                \\\-  Brain Inside -///                       | o |
| o |                    ^^^^^^^^^^^^^^^                           | o |
| o | Andre' Beck (ABPSoft) mehl: Andre_Beck@IRS.Inf.TU-Dresden.de | o |
+-o-+--------------------------------------------------------------+-o-+


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-19  3:42       ` Ian Dall
  1993-03-19  5:34         ` George Michaelson
@ 1993-03-19 14:22         ` Marcus J Ranum
  1993-03-21  4:55           ` Richard Todd
  1993-03-22  7:33           ` Ian Dall
  1 sibling, 2 replies; 21+ messages in thread
From: Marcus J Ranum @ 1993-03-19 14:22 UTC (permalink / raw)


>A MIT-MAGIC-COOKIE is a long (random) number. Essentially, the server
>allows any client which knows that random number to connect.

	That's it? That's hardly cryptographically secure!! There are
no provisions for the key's (magic-cookie) getting permuted over time
or changed automatically with each session? So if I snoop someone's
magic cookie I have it until they decide to change it? Any reasonbly
competent tcpdump postprocessor should be able to grab cookies off
the wire...

mjr.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
       [not found]   ` <CONS.93Mar17101003@mercury.cern.ch>
  1993-03-17 16:19     ` Robert J. Granvin
@ 1993-03-19 22:25     ` Marc Fraioli
  1993-03-22 14:07       ` Andre Beck
  1 sibling, 1 reply; 21+ messages in thread
From: Marc Fraioli @ 1993-03-19 22:25 UTC (permalink / raw)


In article <CONS.93Mar17101003@mercury.cern.ch> cons@mercury.cern.ch (Lionel Cons) writes:
>>>>>> On Tue, 16 Mar 1993 23:04:22 GMT, mfraioli@grebyn.com (Marc Fraioli) said:
>
>> > In article <C3xpnn.8LK@curia.ucc.ie> 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...)


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-18 20:01       ` Jason Haar
@ 1993-03-20 19:08         ` Bob Longo
  1993-03-21 10:11           ` Klaus Steinberger
  0 siblings, 1 reply; 21+ messages in thread
From: Bob Longo @ 1993-03-20 19:08 UTC (permalink / raw)


In article <C43oz9.2wD@cantua.canterbury.ac.nz>, j.haar@csc.canterbury.ac.nz (Jason Haar) writes:
> A followup to my previous posting - it has been pointed out to me that
> Ultrix 4.3 does support MAGIC-COOKIE - no such luck for VMS users tho'...
> 
>  --
> 
> Cheers
> 
> Jason Haar, Network Consultant
-- 

Could someone explain why MAGIC-COOKIE is necessary using VMS/Motif?  If I
understand correctly, the purpose of MAGIC-COOKIE is to pass a token between
an Xwindows server and client node to prevent someone from bringing up a window
on another system unless they know the proper token.  Correct?

The Motif (and older XUI DECwindows) "CUSTOMIZE SECURITY" options allow you to
control the node, username, and transport for anyone allowed to communicate
with your session.  So what would MAGIC-COOKIE do for you?

-Bob Longo
=======================================+======================================
Bob Longo (longo@sfpp.com)             | "I am not gonna raise taxes on the
Santa Fe Pacific Pipelines             | middle class to pay for these
Los Angeles, CA                        | programs." - Bill Clinton


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-19 14:22         ` Marcus J Ranum
@ 1993-03-21  4:55           ` Richard Todd
  1993-03-22  7:33           ` Ian Dall
  1 sibling, 0 replies; 21+ messages in thread
From: Richard Todd @ 1993-03-21  4:55 UTC (permalink / raw)


mjr@tis.com (Marcus J Ranum) writes:

>	That's it? That's hardly cryptographically secure!! There are

It's not meant to be cryptographically secure.  It's just meant to stop
the amateur cracker-wannabees with a copy of xkey.  

>or changed automatically with each session? So if I snoop someone's
>magic cookie I have it until they decide to change it? Any reasonbly
>competent tcpdump postprocessor should be able to grab cookies off
>the wire...

Yes, but that requires more smarts than just logging in to the machine
and starting your pet X client.  

You want more security, I belive there are a couple of options beyond the
MIT-MAGIC-COOKIE option that MIT X11R5 server and xdm offer, including
at least one with DES encryption.  (That's what's in the infamous Wraphelp.c
file in the X11R5 distribution that people outside the US are Not Allowed
to have, as it contains the Valuable State Secrets of the DES algorithm.
Grumble.)  
--
Richard Todd	rmtodd@kittyhawk.ecn.uoknor.edu  rmtodd@chinet.chi.il.us
  rmtodd@servalan.uucp  New Improved Domain: rmtodd@servalan.servalan.com


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-20 19:08         ` Bob Longo
@ 1993-03-21 10:11           ` Klaus Steinberger
  0 siblings, 0 replies; 21+ messages in thread
From: Klaus Steinberger @ 1993-03-21 10:11 UTC (permalink / raw)


longo@sfpp.com (Bob Longo) writes:

>In article <C43oz9.2wD@cantua.canterbury.ac.nz>, j.haar@csc.canterbury.ac.nz (Jason Haar) writes:
>> A followup to my previous posting - it has been pointed out to me that
>> Ultrix 4.3 does support MAGIC-COOKIE - no such luck for VMS users tho'...

>Could someone explain why MAGIC-COOKIE is necessary using VMS/Motif?  If I
>understand correctly, the purpose of MAGIC-COOKIE is to pass a token between
>an Xwindows server and client node to prevent someone from bringing up a window
>on another system unless they know the proper token.  Correct?
Correct.

>The Motif (and older XUI DECwindows) "CUSTOMIZE SECURITY" options allow you to
>control the node, username, and transport for anyone allowed to communicate
>with your session.  So what would MAGIC-COOKIE do for you?
Because the DECwindows scheme works only within a VMS/DECNET environment, not
in a heterogenous environment.

Sincerely,
Klaus

--
Klaus Steinberger               Beschleunigerlabor der TU und LMU Muenchen
Phone: (+49 89)3209 4287        Hochschulgelaende
FAX:   (+49 89)3209 4280        D-8046 Garching, Germany
Internet: Klaus.Steinberger@Physik.Uni-Muenchen.DE


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-19 14:22         ` Marcus J Ranum
  1993-03-21  4:55           ` Richard Todd
@ 1993-03-22  7:33           ` Ian Dall
  1 sibling, 0 replies; 21+ messages in thread
From: Ian Dall @ 1993-03-22  7:33 UTC (permalink / raw)



In article <1ockv1INNlk1@sol.tis.com>, mjr@tis.com (Marcus J Ranum) writes:
> >A MIT-MAGIC-COOKIE is a long (random) number. Essentially, the server
> >allows any client which knows that random number to connect.
> 
> That's it? That's hardly cryptographically secure!! There are
> no provisions for the key's (magic-cookie) getting permuted over time
> or changed automatically with each session?

If you use xdm, it will be different with each session, it will not
be permuted over time within a session.

> Any reasonbly
> competent tcpdump postprocessor should be able to grab cookies off
> the wire...

Yep. If you need the level of security where you are worried about
people running tcpdump (which if you have a physically secure net and
all the hosts on it are secure you might not be), then you need
something more secure. On MIT R4 or later xdm, servers and clients all
support DES authentication (XDM-AUTHENTICATION-1), but you need to
supply/get from other sources your own DES implimentation because of
US state dept paranoia. I have never actually used this, but I believe
operation is much the same, except for that actual transmission which
is encrypted and decrypted using a private key. I am not sure how the
private key get communicated.




-- 
Ian Dall          I'm not into isms, but hedonism is the most
                  harmless I can think of. -- Phillip Adams

internet: dall@hfrd.dsto.gov.au


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-19 22:25     ` Marc Fraioli
@ 1993-03-22 14:07       ` Andre Beck
  1993-03-22 21:27         ` Jason Haar
  0 siblings, 1 reply; 21+ messages in thread
From: Andre Beck @ 1993-03-22 14:07 UTC (permalink / raw)




BTW, MAGIC-COOKIE is neat, but still a strange solution. The way they do
it on VMS/DECnet is much safer... a full machine name/user name authorization
scheme. I know that TCP/IP doesn't carry user-id information in is packets,
but this would be the best solution...

I could imagine at least a possible scenario by an upgrade to the XDMCP
and XDM itself, where every client must send its uid, and the server checks
via special XDMCP commands whether this uid is valid and to what username
it translates on the client's machine... but this could be faked ???

--
+-o-+--------------------------------------------------------------+-o-+
| o |                \\\-  Brain Inside -///                       | o |
| o |                    ^^^^^^^^^^^^^^^                           | o |
| o | Andre' Beck (ABPSoft) mehl: Andre_Beck@IRS.Inf.TU-Dresden.de | o |
+-o-+--------------------------------------------------------------+-o-+


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
  1993-03-22 14:07       ` Andre Beck
@ 1993-03-22 21:27         ` Jason Haar
  0 siblings, 0 replies; 21+ messages in thread
From: Jason Haar @ 1993-03-22 21:27 UTC (permalink / raw)


Andre Beck (beck@irzr17.inf.tu-dresden.de) wrote:


> scheme. I know that TCP/IP doesn't carry user-id information in is packets,
> but this would be the best solution...

> I could imagine at least a possible scenario by an upgrade to the XDMCP
> and XDM itself, where every client must send its uid, and the server checks
> via special XDMCP commands whether this uid is valid and to what username
> it translates on the client's machine... but this could be faked ???

Argh, I think you're going overboard here.

There's no point in improving it, 'cause if you do, then you should also
be worrying about bigger issues - like the fact that both SET HOST and
TELNET send unencrypted passwords  over the network - that's a bigger hole
than worrying about X... (please prove me wrong - I was told that DECnet
doesn't encrypt - I haven't seen it myself).

Not only that, but if a DECnet node goes down, there's nothing to stop
someone booting their PC up with that DECnet node number and "spoofing"
your prized VAX anyway...

 --

Cheers

Jason Haar, Network Consultant


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Urgent: a hole in X security - xwatchwin2
       [not found]       ` <1oq61sINNgp5@shelley.u.washington.edu>
@ 1993-03-24 19:51         ` Robert J. Granvin
  0 siblings, 0 replies; 21+ messages in thread
From: Robert J. Granvin @ 1993-03-24 19:51 UTC (permalink / raw)


In article <1oq61sINNgp5@shelley.u.washington.edu>, dittrich@carson.u.washington.edu (Dave Dittrich) writes:
|> rjg@umnstat.stat.umn.edu (Robert J. Granvin) writes:
|> 
|> >Would someone be willing to post a quick summary on the proper usage of
|> >xauth, MIT-MAGIC-COOKIE and what all those little nuances a person needs
|> >to know to enable this most basic of display security?
|> 
|> >(i.e., talking about the problems are great, but a quick summary of
|> >procedures would help the more novice users get up and running quicker...)
|> 
|> Step 1.  Go out an buy a copy of O'Rielly & Associates X Window System
|> Administration (ISBN 0-937175-83-8).
|> 
|> Step 2.  Read it.
|> 
|> Step 3.  Know it.
|> 
|> Step 4.  Live it.

No offense intended, but if we're going to discuss the impotance of
MIT-MAGIC-COOKIE, how you must use it, what holes exist, etc., yet 
the only response to what seems like a logical and simple request is
"RT(his)FM", then I don't see much point to the whole preceeding
discussion.

All that came before could be summed up by "There are security holes in
X windows that you may not know about.  Read this book to learn all about
it" if that's all there is to it...

-- 
\\ Robert J. Granvin                                 User Services Specialist
// School of Statistics - University of Minnesota            rjg@stat.umn.edu


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~1993-03-24 19:51 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1993Mar15.071215.5122@tigger.jvnc.net>
1993-03-15 14:30 ` Urgent: a hole in X security - xwatchwin2 David O'Byrne
1993-03-15 16:59   ` Andre Beck
1993-03-15 17:50     ` Bob Heiney
     [not found]       ` <1o2jfe$1t7@irz401.inf.tu-dresden.de>
1993-03-15 19:58         ` Bob Heiney
     [not found]       ` <1o2p4t$20t@irz401.inf.tu-dresden.de>
1993-03-16 18:53         ` Bob Heiney
1993-03-15 19:56   ` Jack A. Zucker
     [not found]   ` <1993Mar16.230422.14356@grebyn.com>
1993-03-17  5:43     ` Jason Haar
1993-03-18 20:01       ` Jason Haar
1993-03-20 19:08         ` Bob Longo
1993-03-21 10:11           ` Klaus Steinberger
     [not found]   ` <CONS.93Mar17101003@mercury.cern.ch>
1993-03-17 16:19     ` Robert J. Granvin
1993-03-19  3:42       ` Ian Dall
1993-03-19  5:34         ` George Michaelson
1993-03-19 12:05           ` Andre Beck
1993-03-19 14:22         ` Marcus J Ranum
1993-03-21  4:55           ` Richard Todd
1993-03-22  7:33           ` Ian Dall
     [not found]       ` <1oq61sINNgp5@shelley.u.washington.edu>
1993-03-24 19:51         ` Robert J. Granvin
1993-03-19 22:25     ` Marc Fraioli
1993-03-22 14:07       ` Andre Beck
1993-03-22 21:27         ` Jason Haar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox