Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BFDD7200CC9 for ; Mon, 17 Jul 2017 11:28:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BE5C6163882; Mon, 17 Jul 2017 09:28:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 12AD3163A4F for ; Mon, 17 Jul 2017 11:28:04 +0200 (CEST) Received: (qmail 50667 invoked by uid 500); 17 Jul 2017 09:28:04 -0000 Mailing-List: contact commits-help@guacamole.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@guacamole.incubator.apache.org Delivered-To: mailing list commits@guacamole.incubator.apache.org Received: (qmail 50658 invoked by uid 99); 17 Jul 2017 09:28:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2017 09:28:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BCDF3180704 for ; Mon, 17 Jul 2017 09:28:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id voWCJ2TJAfpo for ; Mon, 17 Jul 2017 09:28:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id EC45161AE8 for ; Mon, 17 Jul 2017 09:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7724FE00C7 for ; Mon, 17 Jul 2017 09:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 40D7C2476A for ; Mon, 17 Jul 2017 09:28:00 +0000 (UTC) Date: Mon, 17 Jul 2017 09:28:00 +0000 (UTC) From: "Sebastian Ohmsen (JIRA)" To: commits@guacamole.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (GUACAMOLE-349) Currupt user input for guacamole sessions over RDP MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 17 Jul 2017 09:28:05 -0000 [ https://issues.apache.org/jira/browse/GUACAMOLE-349?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebastian Ohmsen updated GUACAMOLE-349: --------------------------------------- Description:=20 We've come across a bug that is corrupting the user input for guacamole ses= sions over rdp. The problem only occurs when you open a RDP session inside = the RDP session established by guacamole. Our use case is that we connect t= o a Hyper-V server and would open the console of a VM running on it. You ca= n very well test that too with connecting to any RDP server from the connec= tion established by guacamole. We've tested this extensively and we can observe the following: Whenever yo= u press a key combination that produces another result by adding a modifier= key, like "SHIFT_R + ."(dot) which should lead to an ">" sign, it's only a= matter of time when this is mapped to a "."(dot) sign. This does not only = occur when you hold both keys down, it also occurs occasionally when you pr= ess it the first time. This makes entering passwords super hard and seems t= o be a bug. We've traced it down to the corresponding C code and think the problem is h= ere: https://github.com/apache/incubator-guacamole-server/blob/master/src/protoc= ols/rdp/keyboard.c#L261 In some cases of extra mapped keys, for example in the above case, it's sen= ding more keys than expected. We can see that =E2=80=9CSHIFT_L + .=E2=80=9D= results in following keysym updates: =20 * 0xFFE1 (SHIFT_R) pressed * 0x003E (>) pressed * 0x003E (>) released * 0xFFE1 (SHIFT_R) released and works perfectly fine. In contrast =E2=80=9CSHIFT_R + .=E2=80=9D results= in following events: * 0xFFE2 (SHIFT_R) pressed * 0xFFE1 (SHIFT_L) pressed * 0x003E (>) pressed * 0xFFE1 (SHIFT_L) released * 0xFFE1 (SHIFT_L) pressed * 0x003E (>) released * 0xFFE1 (SHIFT_L) released * 0xFFE2 (SHIFT_R) released which leads to the described behavior above. was: We've come across a bug that is corrupting the user input for guacamole ses= sions over rdp. The problem only occurs when you open a RDP session inside = the RDP session established by guacamole. Our use case is that we connect t= o a Hyper-V server and would open the console of a VM running on it. You ca= n very well test that too with connecting to any RDP server from the connec= tion established by guacamole. We've tested this extensively and we can observe the following: Whenever yo= u press a key combination that produces another result by adding a modifier= key, like "SHIFT_R + ."(dot) which should lead to an ">" sign, it's only a= matter of time when this is mapped to a "."(dot) sign. This does not only = occur when you hold both keys down, it also occurs occasionally when you pr= ess it the first time. This makes entering passwords super hard and seems t= o be a bug. We've traced it down to the corresponding C code and think the problem is h= ere: https://github.com/apache/incubator-guacamole-server/blob/master/src/protoc= ols/rdp/keyboard.c#L261 In some cases of extra mapped keys, for example in the above case, it's sen= ding more keys than expected. We can see that =E2=80=9CSHIFT_L + .=E2=80=9D= results in following keysym updates: =20 * FFE1 (SHIFT_R) pressed * 003E (>) pressed * 003E (>) released * FFE1 (SHIFT_R) released and works perfectly fine. In contrast =E2=80=9CSHIFT_R + .=E2=80=9D results= in following events: * FFE2 (SHIFT_R) pressed * FFE1 (SHIFT_L) pressed * 003E (>) pressed * FFE1 (SHIFT_L) released * FFE1 (SHIFT_L) pressed * 003E (>) released * FFE1 (SHIFT_L) released * FFE2 (SHIFT_R) released which leads to the described behavior above. > Currupt user input for guacamole sessions over RDP > -------------------------------------------------- > > Key: GUACAMOLE-349 > URL: https://issues.apache.org/jira/browse/GUACAMOLE-349 > Project: Guacamole > Issue Type: Bug > Components: guacamole, RDP > Reporter: Sebastian Ohmsen > > We've come across a bug that is corrupting the user input for guacamole s= essions over rdp. The problem only occurs when you open a RDP session insid= e the RDP session established by guacamole. Our use case is that we connect= to a Hyper-V server and would open the console of a VM running on it. You = can very well test that too with connecting to any RDP server from the conn= ection established by guacamole. > We've tested this extensively and we can observe the following: Whenever = you press a key combination that produces another result by adding a modifi= er key, like "SHIFT_R + ."(dot) which should lead to an ">" sign, it's only= a matter of time when this is mapped to a "."(dot) sign. This does not onl= y occur when you hold both keys down, it also occurs occasionally when you = press it the first time. This makes entering passwords super hard and seems= to be a bug. > We've traced it down to the corresponding C code and think the problem is= here: > https://github.com/apache/incubator-guacamole-server/blob/master/src/prot= ocols/rdp/keyboard.c#L261 > In some cases of extra mapped keys, for example in the above case, it's s= ending more keys than expected. We can see that =E2=80=9CSHIFT_L + .=E2=80= =9D results in following keysym updates: > =20 > * 0xFFE1 (SHIFT_R) pressed > * 0x003E (>) pressed > * 0x003E (>) released > * 0xFFE1 (SHIFT_R) released > and works perfectly fine. In contrast =E2=80=9CSHIFT_R + .=E2=80=9D resul= ts in following events: > * 0xFFE2 (SHIFT_R) pressed > * 0xFFE1 (SHIFT_L) pressed > * 0x003E (>) pressed > * 0xFFE1 (SHIFT_L) released > * 0xFFE1 (SHIFT_L) pressed > * 0x003E (>) released > * 0xFFE1 (SHIFT_L) released > * 0xFFE2 (SHIFT_R) released > which leads to the described behavior above. -- This message was sent by Atlassian JIRA (v6.4.14#64029)