From: Anthony Liguori <aliguori@linux.vnet.ibm.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Neil Wilson <neil@aldur.co.uk>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] vnc: Fix password expiration through 'change vnc ""'
Date: Mon, 14 Feb 2011 08:16:58 -0600 [thread overview]
Message-ID: <4D59395A.6030206@linux.vnet.ibm.com> (raw)
In-Reply-To: <4D59349C.5050005@redhat.com>
On 02/14/2011 07:56 AM, Gerd Hoffmann wrote:
> On 02/14/11 13:10, Anthony Liguori wrote:
>> On 02/14/2011 04:57 AM, Gerd Hoffmann wrote:
>>> On 01/31/11 21:43, Anthony Liguori wrote:
>>>> commit 52c18be9e99dabe295321153fda7fce9f76647ac introduced a
>>>> regression in the
>>>> change vnc password command that changed the behavior of setting
>>>> the VNC
>>>> password to an empty string from disabling login to disabling
>>>> authentication.
>>>>
>>>> This commit refactors the code to eliminate this overloaded
>>>> semantics in
>>>> vnc_display_password and instead introduces the
>>>> vnc_display_disable_login. The
>>>> monitor implementation then determines the behavior of an empty or
>>>> missing
>>>> string.
>>>
>>> Hmm, now about simply never ever changing vs->auth?
>>
>> If auth is none and you do a vnc change password "" then if we don't set
>> vs->auth to vnc, it won't have the desired effect.
>
> If you want a password-protected vnc session you should better
> explicitly say so using '-vnc :0,password', otherwise you'll have a
> window (between qemu start and setting the password) where vnc clients
> can connect without a password.
>
> Going from "none" to "vnc" automagically when setting a password
> encourages this insecure way to enable password protection. IMHO we
> should stop doing this. There are backward compatibility issues
> though as qemu did this for quite some time ...
Yeah, change vnc is deprecated, set-password has sane semantics.
> Going from "vnc" to "none" automagically when setting a empty password
> is a no-go from a security point of view, especially as older qemu
> versions did *not* do that. ]
Yup, this was the reason for the CVE.
> I don't think we'll need a monitor command to switch authentication
> methods on the fly. YMMV.
Actually, I do, but that's far off on my radar screen.
One thing we're noticing is that QEMU is not terribly forgiving in a
hosting environment. If you make a mistake configuring something (like
use the wrong auth type), you're only recourse is restarting the guest
with the new options. Restarting a guest of a paying customer ==
unhappy customer.
The more we can change without restarting a guest the better IMHO.
Regards,
Anthony Liguori
> cheers,
> Gerd
>
prev parent reply other threads:[~2011-02-14 14:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-31 20:43 [Qemu-devel] [PATCH] vnc: Fix password expiration through 'change vnc ""' Anthony Liguori
2011-01-31 21:32 ` Anthony Liguori
2011-02-03 16:29 ` [Qemu-devel] " Daniel P. Berrange
2011-02-03 16:35 ` Anthony Liguori
2011-02-03 17:02 ` Daniel P. Berrange
2011-02-03 17:16 ` Anthony Liguori
2011-02-04 8:56 ` Markus Armbruster
2011-02-14 10:57 ` Gerd Hoffmann
2011-02-14 12:10 ` Anthony Liguori
2011-02-14 12:24 ` Daniel P. Berrange
2011-02-14 14:14 ` Anthony Liguori
2011-02-14 14:47 ` Daniel P. Berrange
2011-02-14 13:56 ` Gerd Hoffmann
2011-02-14 14:16 ` Anthony Liguori [this message]
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=4D59395A.6030206@linux.vnet.ibm.com \
--to=aliguori@linux.vnet.ibm.com \
--cc=kraxel@redhat.com \
--cc=neil@aldur.co.uk \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).