All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: xen-devel@lists.xensource.com
Subject: Re: Individual passwords for guest VNC servers ?
Date: Fri, 25 Aug 2006 01:44:36 +0100	[thread overview]
Message-ID: <20060825004436.GL809@redhat.com> (raw)
In-Reply-To: <20060816181153.GC25831@redhat.com>

On Wed, Aug 16, 2006 at 07:11:53PM +0100, Daniel P. Berrange wrote:
> The current implementation of the VNC server in qemu-dm appears to just
> leverage whatever password the root user has set in /root/.vnc/passwd.
> This doesn't really have very nice semantics if one migrates the domain
> over to a different host...which may not have same VNC password file.

Ok, so looking more closly I'm wrong here. The VNC server in qemu-dm
does not use a password at all - it sets the VNC auth protocol to None.

At the same time it binds to 0.0.0.0 - so any HVM guest running VNC
is completely unsecured, accessible to anyone who can route to the
Dom0 host unless you've firewalled off all the ports >= 5900 on the
machine. This looks like a pretty serious flaw to be fixed for 3.0.3 

> Has anyone given any thought to / written any patches to enable assignment
> of different passwords to individual guest's VNC servers. At its simplest
> one could just allow the crypt/md5 hash of the desired password to be
> supplied in the xm config file, or XenD SEXPR when creating a new domain
> and pass that hash through to qemu-dm to use instead of /root/.vnc/passwd

It appears that given the way the standard VNC challenge-response auth
scheme works there's no choice but to store the actual password - at very 
least using some reversible encryption - we can't simply store the hash
as one would with passwords for /etc/shadow.  There are other newer
auth schemes defined in VNC protocol, but its not clear whether these
have broad support amongst VNC viewer clients.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

  reply	other threads:[~2006-08-25  0:44 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-16 18:11 Individual passwords for guest VNC servers ? Daniel P. Berrange
2006-08-25  0:44 ` Daniel P. Berrange [this message]
     [not found]   ` <44F0FE76.4010104@codemonkey.ws>
2006-08-27 22:21     ` Daniel P. Berrange
2006-08-31  1:23   ` Masami Watanabe
2006-08-31  1:38     ` Daniel P. Berrange
2006-08-31 15:43       ` George Dunlap 
2006-08-31  2:57     ` Masami Watanabe
  -- strict thread matches above, loose matches on Subject: below --
2006-08-31 10:45 Ian Pratt
2006-09-22 12:04 ` Masami Watanabe
2006-09-22 12:49   ` Ian Pratt
2006-09-22 13:12   ` Daniel P. Berrange
2006-09-22 13:54     ` Ian Pratt
2006-09-22 14:03       ` Anthony Liguori
2006-09-22 14:43       ` Daniel P. Berrange
2006-09-26  8:07       ` Masami Watanabe
2006-09-26 14:25         ` Anthony Liguori
2006-09-28  1:04           ` Masami Watanabe
2006-09-26 18:23 Ian Pratt
2006-09-28  1:01 ` Masami Watanabe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060825004436.GL809@redhat.com \
    --to=berrange@redhat.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.