aesv2.key easy to create it with notepad (security hole?)
1 save any previous aesv2.key
2.
open notepad
write text as example: "aesv2.key" (without quote)
save document as aesv2.key
copy the file for both vncviewer and winvnc
try to connect with uvnc 1.0.4RC16 + aesv2plugin.dsm both side between xp to xp
succes
remark:
the aesv2.key is not encrypted, this just a clear text "aesv2.key" for the example.
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864
Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864
Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
aesv2.key easy to create it with notepad (security hole?)
aesv2.key easy to create it with notepad (security hole?)
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Re: aesv2.key easy to create it with notepad (security hole?
No one replied to your post, although perhaps you know the answer already.redge wrote: open notepad
write text as example: "aesv2.key" (without quote)
save document as aesv2.key
copy the file for both vncviewer and winvnc
try to connect with uvnc 1.0.4RC16 + aesv2plugin.dsm both side between xp to xp. succes
remark: the aesv2.key is not encrypted, this just a clear text "aesv2.key" for the example.
There is no obscuring, encrypting, or OS shielding for the aesv2 and arc4 keyfiles. The files contain the 16 raw bytes that are the secret key.
Also for the MSRC4 plugin, the MS CryptoAPI is used, but in this case as well the raw key bytes are directly accessible in the 'rc4.key' file.
Here is the recipe for getting the 16 secret key bytes out of the MSRC4 rc4.key: go to the 23th byte and pick out the next 16 bytes (the one after the last one should be a null byte). Reverse the order of those bytes, that is the RC4 private key. SSVNC uses this recipe for the MSRC4 case.
Re: aesv2.key easy to create it with notepad (security hole?
Nokrunge wrote:although perhaps you know the answer already.
I just experienced without know the reason why this so easy making a fake key or manual create ke
and your explanation is mathematical and i'm not very aware of mathematical (i'm poor in Mathematical exams)
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Re: aesv2.key easy to create it with notepad (security hole?
AFAIK and to my understanding the "key" is just broadcasted in the begining of a transaction
thought ANY key you make will be consider as "the key" and both client and server will encrypt data with this key (Any key you make)
correct me if wrong thought
thought ANY key you make will be consider as "the key" and both client and server will encrypt data with this key (Any key you make)
correct me if wrong thought
Re: aesv2.key easy to create it with notepad (security hole?
Sorry for not being clear. The key is just 128 random bits (= 16 random bytes) made when you click on 'Gen Key'. For AESV2 and ARC4 they are simply stored as-is in the key file (e.g. new_arc4.key). There is nothing hiding them. The same is true for the MSRC4 plugin (rc4.key), but the file format is a little different.redge wrote: No
I just experienced without know the reason why this so easy making a fake key or manual create ke
and your explanation is mathematical and i'm not very aware of mathematical (i'm poor in Mathematical exams)
So when you edit aesv2.key in notepad and type in something else in it is as though those were the random bytes generated by 'Gen Key'.
When a DSM plugin uses the VNC password instead of the key file data, the password string simply replaces the data (I guess padded with zeros to make it 16 bytes long)
BTW, in your example "aesv2.key" that is not 16 bytes long. I think if the aesv2 or arc4 keyfile is less than 16 bytes then the dsm plugin (silently?) falls back to using the password as the key data.
Re: aesv2.key easy to create it with notepad (security hole?
The keyfile data (i.e the stuff in arc4.key or aesv2.key; what was being discussed) is not broadcast at the beginning.plouf wrote:AFAIK and to my understanding the "key" is just broadcasted in the begining of a transaction
thought ANY key you make will be consider as "the key" and both client and server will encrypt data with this key (Any key you make)
correct me if wrong thought
What is broadcast at the start is 16 fresh random bytes of 'salt' followed by 16 fresh random bytes of 'initialization vector'. The receiver then combines that with the secret keyfile data to create what should be a unique session key. The sender has created the same session key and so he encrypts with it and the receiver decrypts with it.
Re: aesv2.key easy to create it with notepad (security hole?
thank you for the explanation, there the hole, use silently the vnc password instead the key or key not enough encrypted let another key used instead check the requirement is not enough for start encrypted connection. ie key don't have enough data .
I stop thinkinh about that. Mathematical make me headache. too complicate.
How the receiver can know the vector if sender send it at random ?krunge wrote:What is broadcast at the start is 16 fresh random bytes of 'salt' followed by 16 fresh random bytes of 'initialization vector'.
I stop thinkinh about that. Mathematical make me headache. too complicate.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
OS Win: xp home + vista business + 7 home
only experienced user, not developer
Re: aesv2.key easy to create it with notepad (security hole?
Yes, that does sound like undesirable app behavior. Maybe should be popup warning?redge wrote:thank you for the explanation, there the hole, use silently the vnc password instead the key or key not enough encrypted let another key used instead check the requirement is not enough for start encrypted connection. ie key don't have enough data .
Well, forgive me adding to the headache...How the receiver can know the vector if sender send it at random ?
I stop thinkinh about that. Mathematical make me headache. too complicate.
The first 32 bytes of the session data stream are random salt (16B) and random initialization vector (16B) the sender created on his computer for this vnc connection. Everything after these first 32 bytes is the encrypted VNC traffic from the sender.
So the receiver now has these 32 bytes. Any eavesdropper snooping the connection also has them. But that is OK, because these bytes are not the session key (i.e. the key used for this VNC connection), they are just used to be scrambled with the shared secret key (e.g. aesv2.key data) to form a unique session key for this VNC connection.
By using different session keys each time, the eavesdropper has a much harder time trying to crack the encrypted VNC traffic.
The "scrambling" is just a MD5 (MD=message digest) checksum, are you familiar with that? Headache?
Re: aesv2.key easy to create it with notepad (security hole?
less headache, but still complicate for me.The "scrambling" is just a MD5 (MD=message digest) checksum, are you familiar with that? Headache?
anyway, i believe the security how it work for do safety work, that all is necessary.
Last edited by redge on 2008-09-26 19:35, edited 1 time in total.
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
OS Win: xp home + vista business + 7 home
only experienced user, not developer