Skip to contentSkip to conversation

QEMU: VNC

Qemu-devel Luke-Jr 5 participants 9 messages Feb 22, 2007 1 message not in the archive

lore
Share & tools
lore

Luke-Jr

author
#0 lore raw

Is there a reason to not use the semi-standard -rfbauth <filename> argument?

#1 lore raw

Hi,

Quoted 2 lines · Luke-Jr

Is there a reason to not use the semi-standard -rfbauth <filename> argument?

Yes. The authentication is not really secure. It only uses 16 bits if I remember correctly, so even without access to <filename>, it can be easily broken.

The common practice is to block after 3 attempts, but there are ways around that, too.

Ciao,
Dscho

#2 lore raw
Quoted 6 lines · Johannes Schindelin

Hi,

Quoted 1 line · Luke-Jr

Is there a reason to not use the semi-standard -rfbauth <filename> argument?

I would be happy with a patch that allowed a password to be set from the monitor. Storing a password in a file on disk is, IMHO, ugly. If no one beats me to it, I'll probably write something up this weekend.

Quoted 4 lines
Quoted 4 lines

Yes. The authentication is not really secure. It only uses 16 bits if I remember correctly, so even without access to <filename>, it can be easily broken.

The common practice is to block after 3 attempts, but there are ways around that, too.

RFB authentication is not secure for a few reasons. The first is that passwords are limited to 8 characters and constant padding for passwords shorter than 8. Furthermore, the challenge/response mechanism is prone to man-in-the-middle attacks and replay attacks. Triple DES is not a very good encryption method either by modern standards.

For all practical purposes, it's a plain-text equivalent authentication mechanism. However, it's widely supported, and provides a useful feature so it's worth supporting.

For real security, TLS integration is most certainly the way to go. I want to make sure anything we do though doesn't violate the RFB spec so we have to validate the the authentication ids are reserved and the protocol isn't violated in anyway (realizing there's no absolutely secure way to do RFB and still be compatible to the spec).

Regards,

Anthony Liguori

Quoted 11 lines
Quoted 11 lines

Ciao,
Dscho

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#3 lore raw

Anthony,

I have a patch to do the vnc standard challenge-reponse method.. With the pass passed in as a flag (for now)

-Christopher

Christopher Olsen
88B Toledo Street
Farmingdale, NY 11735

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Anthony Liguori
Sent: Thursday, February 22, 2007 11:36 AM
To: [email protected]
Cc: Luke-Jr
Subject: Re: [Qemu-devel] QEMU: VNC

Quoted 7 lines · Johannes Schindelin

Hi,

Quoted 2 lines · Luke-Jr

Is there a reason to not use the semi-standard -rfbauth <filename> argument?

I would be happy with a patch that allowed a password to be set from the monitor. Storing a password in a file on disk is, IMHO, ugly. If no one beats me to it, I'll probably write something up this weekend.

Quoted 2 lines
Quoted 2 lines

Yes. The authentication is not really secure. It only uses 16 bits if I remember correctly, so even without access to <filename>, it can be

easily

Quoted 5 lines
Quoted 5 lines

broken.

The common practice is to block after 3 attempts, but there are ways around that, too.

RFB authentication is not secure for a few reasons. The first is that passwords are limited to 8 characters and constant padding for passwords shorter than 8. Furthermore, the challenge/response mechanism is prone to man-in-the-middle attacks and replay attacks. Triple DES is not a very good encryption method either by modern standards.

For all practical purposes, it's a plain-text equivalent authentication mechanism. However, it's widely supported, and provides a useful feature so it's worth supporting.

For real security, TLS integration is most certainly the way to go. I want to make sure anything we do though doesn't violate the RFB spec so we have to validate the the authentication ids are reserved and the protocol isn't violated in anyway (realizing there's no absolutely secure way to do RFB and still be compatible to the spec).

Regards,

Anthony Liguori

Quoted 11 lines
Quoted 11 lines

Ciao,
Dscho

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#4 lore raw
In reply to Anthony Liguori

Hi,

Quoted 11 lines · Anthony Liguori
Quoted 10 lines · Johannes Schindelin
Quoted 7 lines · Luke-Jr

Yes. The authentication is not really secure. It only uses 16 bits if I remember correctly, so even without access to <filename>, it can be easily broken.

The common practice is to block after 3 attempts, but there are ways around that, too.

[Why do you quote me as if Luke was quoted?]

Quoted 3 lines

For all practical purposes, it's a plain-text equivalent authentication mechanism. However, it's widely supported, and provides a useful feature so it's worth supporting.

This invariably leads to user confusion. ("But I _did_ use encryption? What do you mean, it is not encrypted, and the handshake is weak?")

Ciao,
Dscho

BTW Anothony, now that I already have you on the subject of VNC, do you have any plans on making the documentation on
http://www.realvnc.com/docs/rfbproto.pdf a little more useful for the extensions you registered?

#5 lore raw
Quoted 14 lines · Johannes Schindelin

Hi,

Quoted 9 lines · Anthony Liguori
Quoted 7 lines · Johannes Schindelin
Quoted 4 lines · Luke-Jr

Yes. The authentication is not really secure. It only uses 16 bits if I remember correctly, so even without access to <filename>, it can be easily broken.

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

The common practice is to block after 3 attempts, but there are ways around that, too.

[Why do you quote me as if Luke was quoted?]

Because thunderbird sucks and did it automagically.

Quoted 5 lines
Quoted 2 lines

For all practical purposes, it's a plain-text equivalent authentication mechanism. However, it's widely supported, and provides a useful feature so it's worth supporting.

This invariably leads to user confusion. ("But I _did_ use encryption? What do you mean, it is not encrypted, and the handshake is weak?")

I understand. The solution is education. The documentation for vnc auth support should make it very clear that it's plain-text equivalent.

Regards,

Anthony Liguori

Quoted 7 lines

Ciao,
Dscho

BTW Anothony, now that I already have you on the subject of VNC, do you have any plans on making the documentation on http://www.realvnc.com/docs/rfbproto.pdf a little more useful for the extensions you registered?

#6 lore raw

Hi,

Quoted 8 lines · Anthony Liguori
Quoted 4 lines · Johannes Schindelin

This invariably leads to user confusion. ("But I _did_ use encryption? What do you mean, it is not encrypted, and the handshake is weak?")

I understand. The solution is education. The documentation for vnc auth support should make it very clear that it's plain-text equivalent.

Blessed are you when your users read documentation...

Ciao,
Dscho

#7 lore raw

If I may say something here... the original question was how to append the VNC header, so that the VNC client-compatible RFB auth could be supported. We all know this is not "secure", but it's a common feature of VNC and supporting it is not a bad thing IMHO. Adding it to QEMU is no less secure than using a regular Xvnc server with rfb auth enabled. You can always tunnel this via ssh to make it secure, or use it over a VPN. I doubt any serious user really considers it unbreakable security, when it is really just advertised as authentication, which is not the same thing. Generally speaking, if you are going to act like a VNC server (which QEMU now does), why not support the type of authentication that the regular VNC clients support? I think discrediting someone's attempt to post a patch to support this by turning it into a security analysis among other things is probably a good way to scare people away from contributing to this open source project we all love. I don't see an RFB auth patch and support for some strong type of encryption as a separate patch as mutually exclusive.

Regards,

Leo Reiter

Quoted 25 lines · Johannes Schindelin

Hi,

Quoted 8 lines · Anthony Liguori
Quoted 4 lines · Johannes Schindelin

This invariably leads to user confusion. ("But I _did_ use encryption? What do you mean, it is not encrypted, and the handshake is weak?")

I understand. The solution is education. The documentation for vnc auth support should make it very clear that it's plain-text equivalent.

Blessed are you when your users read documentation...

Ciao,
Dscho

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#9 lore raw
Quoted 9 lines · Luke -Jr
Quoted 4 lines · you

I would be happy with a patch that allowed a password to be set from the monitor. Storing a password in a file on disk is, IMHO, ugly. If no one beats me to it, I'll probably write something up this weekend.

That doesn't make it too simple to start a qemu session without a human present. It also means there's a vulnerable window of time without a password.

In my patch queue, I have a patch that adds a null VNC target along with another patch to allow you to change what the VNC server listens to in the monitor.

I also have a small program that lets you execute monitor commands outside of QEMU (assuming the monitor is a unix socket).

So, without human intervention, you would do:

qemu -vnc null ...
connect to monitor and set password
connect to monitor and change vnc server to listen on :3

Regards,

Anthony Liguori

Quoted 10 lines
Quoted 6 lines

For real security, TLS integration is most certainly the way to go. I want to make sure anything we do though doesn't violate the RFB spec so we have to validate the the authentication ids are reserved and the protocol isn't violated in anyway (realizing there's no absolutely secure way to do RFB and still be compatible to the spec).

Well, in theory I can use iptables to restrict connections only from an individual local user (--uid-owner) and thus require SSH authentication, but I'm not sure how simple that will be to do from Java...