RDP: login fails when pasting password

5

1

There is a strange problem i'm seeing when using remote desktop. I have passwords stored in notepad (yes, I realize i have passwords stored in notepad). When I copy/paste the password from notepad to RDP login, the login fails. When I type the password, the login works.

I am not getting any spaces or extra charactors when copying (verified by using a hex editor). The password is exactly as I type it (not replacing 1 for I or anything like that).

After I have successfully logged in, I can logout and then paste the password from notepad and it will work. I don't know how long before it will stop working again, but I've run into this many times.

Any ideas? I've also had this happen when logging into sharepoint.

  • Windows 7, lastest updates
  • AD Domain (there are no policies)

DustinDavis

Posted 2011-07-18T22:45:14.200

Reputation: 249

Am interested in A) How you verified no extra spaces/characters made it into the ?clipboard? with the hex editor?, and B) Where you are pasting the password after login and then logout? – user66001 – 2013-08-11T20:07:55.553

Answers

6

I have a simple work-around for this and it is to use the shortcuts of Ctrl+C (Copy) Ctrl+V (paste) instead of the right-click menu.

Don't ask me why this works, but it does. :)

Mark Seymour

Posted 2011-07-18T22:45:14.200

Reputation: 76

Actually I've found this to be the case. It doesn't like certain types of pasting. – DustinDavis – 2012-07-04T18:09:16.263

That is unbelievably bizarre. Can anyone shed light on why this happens? – Justin Morgan – 2013-01-23T20:28:13.970

2Bizarrely, Ctrl+V works but Shift+Insert does not work. Both show the same number of dots in the password input field and both paste the identical contents into notepad. – jarmod – 2013-07-17T16:18:58.110

3

I had a similar issue. I was using Windows 7 on my workstation, and the issue was occuring with both Windows 2008 and Windows 2003 servers. I appeared to be pasting no extra characters - for an 8 character password, 8 circles appeared.

When logging in to a Windows 2003 server, after the login failed, I'd see 13 circles. However, if I intentionally typed an incorrect 8 character password, I'd see 8 circles. Clearly the password I thought I was sending was not being sent.

I used a third-party app (Ditto, in this case) to do a "Plain text paste". This login was successful. So somehow, extra data is being pasted. I'm living with this workaround, for now. I'm not sure if this is the case for you, but trying a "plain text paste" may help.

equiraptor

Posted 2011-07-18T22:45:14.200

Reputation: 31

2didn't think notepad was anything but plain text. I'll give it a try. – DustinDavis – 2011-08-04T20:17:06.730

2

There is a hotfix (not included in a Windows Update) for this issue: https://support.microsoft.com/en-us/kb/2547752 (Windows 7/2008R2 with or without SP1)

Krystian Bigaj

Posted 2011-07-18T22:45:14.200

Reputation: 121

This is a great find! +1 – Burgi – 2016-01-13T13:25:49.377

1

It may be the disappearing Password text behind the textbox. If you type in gobbledygook, select it, then mouse-paste, it still works. You just can't mouse-paste into an empty text box.

knockNrod

Posted 2011-07-18T22:45:14.200

Reputation: 141

Believe dustindavis is using mstsc.exe, which is not a web form, and hence no "textbox" involved. Also, what do you mean by "You just can't mouse-paste into an empty text box"?

– user66001 – 2013-08-11T20:09:45.840

Hmm. So what do you call the box you type in on a non-web, graphical form? For example, the one where you type your password, as the OP is asking about? I've been programming since before CERN created the web -- back in the day, these were called textboxes. Whatever you call it, that thingy. Sometimes you have to select it before you can paste in it. Of course, I've discovered since that newer versions of RDP have disabled paste, as a security measure. So, storing your passwords in a password safe was too secure for MS, and they had to do something about it -- for security. Go figure. – knockNrod – 2013-09-20T14:08:17.547

Not sure what it is called, but when I read your answer, thought immediately of a webform, which has a z index, hence things can go behind it, unlike what I am aware can be done with the Windows GUI "thingy" that performs a similar function. As for mouse-paste, if it is what I think it is, you can just right-click and select paste, to fill the box you right-clicked in with the text on the clipboard. – user66001 – 2013-09-20T15:57:13.743

Interesting info about later version of MSTSC, will have to D/L a newer version to check it out (Might solve the silly disconnect from RDP and then stop redirecting keyboard input to the MSTSC.exe window/remote host problem, in earlier MSTSC.exe versions) – user66001 – 2013-09-20T16:00:04.553

In all honesty, the only time I've ever had this happen was when I was logging into a Remote Desktop via a web connection (as some VPNs do, like Citrix). Most times when this happens, it is a web form. (Sorry, I was just having some fun with the idea that because it wasn't a web, that it couldn't be a textbox -- I have a weird sense of humour.) Anywhere the textbox is filled in with some greyed place-holder text, though, this is done via a transparent textbox or label over the entry textbox, and a mouse-paste (as different from keyboard) will sometimes fail, just as the OP was experiencing. – knockNrod – 2013-09-23T16:14:13.700

Ah, interesting point about RDP launched via webform (or Citrix's functionality), had only been considering mstsc.exe up until this point. Understand about the joke now :) As for greyed out textboxes, I don't believe a transparent textbox or label is used in most greyed out text boxes, that have place-holder text.. Interesting thing learnt though, in recent versions of FF (at least) if the input element is inside a form, you can at least select+copy the place-holder text.

– user66001 – 2013-09-23T17:23:02.740