Skip to contentSkip to conversation

Backslash in user/pass breaks OpenVPN-GUI management authentication

Openvpn-devel Adam McDougall 3 participants 6 messages Oct 9, 2012 – Nov 6, 2012

lore
Share & tools
lore
#0 lore raw

Hello, I've been running an OpenVPN server for several years and in recent years I've been testing out various Windows GUIs. Essentially just the official one bundled with the OpenVPN Windows download and the OpenVPN-MI variant.

This report concerns the OpenVPN-GUI application included with 2.3-alpha3 and 2.3_beta1. I am excited to see native support for the Management Interface which I will ultimately need if I start deploying the Windows client, but I discovered username/password authentication chokes if either contain a backslash: \

Tue Oct 09 14:23:55 2012 Warning: cannot open --log file: C:\Program Files\OpenVPN\log\openvpn-user-client.log:
The process cannot access the file because it is being used by another process. (errno=32)
Tue Oct 09 14:23:55 2012 OpenVPN 2.3_beta1 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Sep 14 2012
Tue Oct 09 14:23:55 2012 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.10:25341
Tue Oct 09 14:23:55 2012 Need hold release from management interface, waiting...
Tue Oct 09 14:23:55 2012 MANAGEMENT: Client connected from [AF_INET]127.0.0.10:25341
Tue Oct 09 14:23:55 2012 MANAGEMENT: CMD 'state on'
Tue Oct 09 14:23:55 2012 MANAGEMENT: CMD 'log all on'
Tue Oct 09 14:23:55 2012 MANAGEMENT: CMD 'hold off'
Tue Oct 09 14:23:55 2012 MANAGEMENT: CMD 'hold release'
Tue Oct 09 14:24:06 2012 MANAGEMENT: CMD 'username "Auth" "aa\aa"'
Tue Oct 09 14:24:06 2012 MANAGEMENT: CMD 'password [...]'
(hangs here)

I am running OpenVPN as a service on the client, and the server is using the PAM auth plugin to require user/pass authentication. This works fine as long as the username and password do not contain a backslash, so this seems like a quoting issue when the user/pass get passed to the TCP port for management.

I am hoping this could be fixed for or shortly after the 2.3 release since I think it is the last remaining large issue in my way. The other big one was the DHCP NAK issue in the TAP Adapter but I am thrilled it is fixed. Please let me know if there is some place I should file a formal bug ticket (I hunted for a while) or whatever else I can do that could help this get fixed. Thanks.

#1 lore raw

Hi Adam

Quoted 5 lines · On Tuesday 09 October 2012 14:52:33 Adam McDougall wrote:

This report concerns the OpenVPN-GUI application included with 2.3-alpha3 and 2.3_beta1. I am excited to see native support for the Management Interface which I will ultimately need if I start deploying the Windows client, but I discovered username/password authentication chokes if either contain a backslash: \

Thanks for the report. Currently "special" characters in username and password are not quoted. I've had a report about a double quote breaking auth as well... and forgot about fixing it. =) Expect this to be fixed in the next beta release. And again, thanks for testing!

Heiko

Signature · 2 lines
Heiko Hund | Sr. Software Engineer | Tel +49-721-25516-237 | Fax -200
SOPHOS NSG | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany
#2 lore raw
Quoted 9 lines · Heiko Hund

Hi Adam

Quoted 5 lines · On Tuesday 09 October 2012 14:52:33 Adam McDougall wrote:

This report concerns the OpenVPN-GUI application included with 2.3-alpha3 and 2.3_beta1. I am excited to see native support for the Management Interface which I will ultimately need if I start deploying the Windows client, but I discovered username/password authentication chokes if either contain a backslash: \

Quoted 7 lines

Thanks for the report. Currently "special" characters in username and password are not quoted. I've had a report about a double quote breaking auth as well... and forgot about fixing it. =) Expect this to be fixed in the next beta release. And again, thanks for testing!

Heiko

I tested the recent rc1 build but it was not fixed, did it go in? Thanks.

#3 lore raw
Quoted 10 lines · Heiko Hund
Quoted 8 lines

Hi Adam

Quoted 5 lines · On Tuesday 09 October 2012 14:52:33 Adam McDougall wrote:

This report concerns the OpenVPN-GUI application included with 2.3-alpha3 and 2.3_beta1. I am excited to see native support for the Management Interface which I will ultimately need if I start deploying the Windows client, but I discovered username/password authentication chokes if either contain a backslash: \

Quoted 9 lines
Quoted 7 lines

Thanks for the report. Currently "special" characters in username and password are not quoted. I've had a report about a double quote breaking auth as well... and forgot about fixing it. =) Expect this to be fixed in the next beta release. And again, thanks for testing!

Heiko

I tested the recent rc1 build but it was not fixed, did it go in? Thanks.

I checked the Windows installer and indeed, it was using an older version of openvpn-gui. The build computer is atm building a new installer based on latest Git commit. This seems to include the backlash fix.

I'll release the fixed build later today.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#4 lore raw
Quoted 17 lines
Quoted 17 lines · Heiko Hund
Quoted 15 lines

Hi Adam

Quoted 5 lines · On Tuesday 09 October 2012 14:52:33 Adam McDougall wrote:

This report concerns the OpenVPN-GUI application included with 2.3-alpha3 and 2.3_beta1. I am excited to see native support for the Management Interface which I will ultimately need if I start deploying the Windows client, but I discovered username/password authentication chokes if either contain a backslash: \

Thanks for the report. Currently "special" characters in username and password are not quoted. I've had a report about a double quote breaking auth as well... and forgot about fixing it. =) Expect this to be fixed in the next beta release. And again, thanks for testing!

Heiko

Quoted 9 lines
Quoted 2 lines

I tested the recent rc1 build but it was not fixed, did it go in? Thanks.

I checked the Windows installer and indeed, it was using an older version of openvpn-gui. The build computer is atm building a new installer based on latest Git commit. This seems to include the backlash fix.

I'll release the fixed build later today.

Fixed installers (version 003) are downloadable. If you look at "Properties -> Details/Version" of the bundled openvpn-gui.exe it should say "File version: 1.0.7".

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#5 lore raw
Quoted 16 lines · Samuli Sepp?nen
Quoted 16 lines · Heiko Hund
Quoted 15 lines

Hi Adam

Quoted 5 lines · On Tuesday 09 October 2012 14:52:33 Adam McDougall wrote:

This report concerns the OpenVPN-GUI application included with 2.3-alpha3 and 2.3_beta1. I am excited to see native support for the Management Interface which I will ultimately need if I start deploying the Windows client, but I discovered username/password authentication chokes if either contain a backslash: \

Thanks for the report. Currently "special" characters in username and password are not quoted. I've had a report about a double quote breaking auth as well... and forgot about fixing it. =) Expect this to be fixed in the next beta release. And again, thanks for testing!

Heiko

Quoted 9 lines
Quoted 2 lines

I tested the recent rc1 build but it was not fixed, did it go in? Thanks.

I checked the Windows installer and indeed, it was using an older version of openvpn-gui. The build computer is atm building a new installer based on latest Git commit. This seems to include the backlash fix.

I'll release the fixed build later today.

Fixed installers (version 003) are downloadable. If you look at "Properties -> Details/Version" of the bundled openvpn-gui.exe it should say "File version: 1.0.7".

--
Samuli Sepp?nen

It does say 1.0.7 now and it works! Thanks. Back to testing...