Bug report: Newline character in password breaks login

Got a problem with Viscosity or need help? Ask here!

jutley

Posts: 1
Joined: Fri Jun 23, 2017 2:47 am

Post by jutley » Fri Jun 23, 2017 2:57 am
I have an alias in my shell that pulls a password out of my password manager and sticks it in my clipboard. What I wasn't aware of is that this process adds a newline character to the end of the password.

When I tried to use this password+newline with Viscosity, it put the application into a state where it accepts my credentials and closes the login screen, but then never actually tries to initiate a connection with the server. Here is a copy of the logs. Note that after entering username/password, I never see any new logs show up. The application seems to be completely stalled.
Code: Select all
2017-06-22 09:55:06: Viscosity Mac 1.7.1 (1402)
2017-06-22 09:55:06: Viscosity OpenVPN Engine Started
2017-06-22 09:55:06: Running on macOS 10.12.5
2017-06-22 09:55:06: ---------
2017-06-22 09:55:06: State changed to Connecting
2017-06-22 09:55:07: Checking reachability status of connection...
2017-06-22 09:55:07: Testing address: 13.55.206.126 Reachable
2017-06-22 09:55:07: Connection is reachable. Starting connection attempt.
2017-06-22 09:55:07: OpenVPN 2.4.2 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [MH/RECVDA] [AEAD] built on May 26 2017
2017-06-22 09:55:07: library versions: OpenSSL 1.0.2l  25 May 2017, LZO 2.09
When I get rid of the newline, everything works fine. It's was a tricky problem to debug, so I wanted to bring it up. Ideally, I'd either have my credentials rejected by Viscosity (malformed credentials) or by the upstream server (incorrect credentials).

James

User avatar
Posts: 2313
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Mon Jun 26, 2017 7:04 pm
Hi jutley,

Thanks for the report. This should now be fixed in version 1.7.3.

Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
2 posts Page 1 of 1