Just a thought - config hashing
Hi
I sat in on the meeting today 2016-02-01 as manhaton
Watching the discussion about elevated privileges regarding a non-admin user interacting with the iservice, a subject to which I am ignorant with regard to programming ..
Anyway, an idea struck me ...
It is a *little* off-piste so .. new thread.
Why not .. (pleaze shoot me down if this is stupid)
OpenVPN could HASH the *current* config file on the fly:
As the Client:
--verify-config-file ALG
ALG = algorithm The result of which is stored within openvpn variable(s) IV_CONF_ALG = algorithmIV_CONF_HASH = result
and pushed to the server with other IV_* variables.
As the Server this is down to the admin to configure:
--verify-config-file ALG FILE ([0/1])
ALG = algorithm
FILE = a file containing expected HASH value(s) (Could be a third option [0/1] to include server HASH)
if the value is matched the config passes etc. All connecting clients which do not provide suitable HASH are disconnected .. probably with SIGTERM->client.
+ If --verify-config-file is used in the server config
+ Could also verify IV_CONF_ALG with server env
*Maybe* hand-off the file searching to a script on the server Not sure how effectively that could be done on windows .. perhaps a plugin ?
Anyway, It looks ok to me but what do I know ?
Just a thought .. something for the wishlist ? Thanks
Hi David,
thankyou for your detailed reply ..I looked up eurephia :-) nice and did a little more research and discovered anonyproz.com The idea has some merit but it is not for the core openvpn team. I see that now .. I am, as ever, still learning and, on this occasion, maybe seeing things a little more clearly ..
Ironically, this maybe one idea where open vs closed source "shows it's teeth" a little. C'est la vie and thanks for your time .. mvh :D
----- Original Message ----- From: "David Sommerseth" <[email protected]...>
To: <[email protected]...>; <[email protected]>
Sent: Tuesday, February 02, 2016 5:20 PM
Subject: Re: [Openvpn-devel] Just a thought - config hashing
Quoted 8 lines · On 2 February 2016 00:01:58 CET, [email protected]... wrote:
Hi
I sat in on the meeting today 2016-02-01 as manhaton
Watching the discussion about elevated privileges regarding a non-admin user interacting with the iservice, a subject to which I am ignorant with regard to programming ..
Quoted 7 lines
Anyway, an idea struck me ...
It is a *little* off-piste so .. new thread.
Why not .. (pleaze shoot me down if this is stupid)
OpenVPN could HASH the *current* config file on the fly:
I had a similar "bright" idea a few years ago too. And it was shut down quite quickly back then too, with very good reasons. Because I hadn't really thought this through properly.
Basically, you cannot trust the client at all. Bottom line is that the server needs to verify whatever the client does, but you can never trust the client to provide the information the server asks for *and* at the same time be sure the client didn't modify what it sent to the server first. In fact, the client can send whatever it believes the server expects and do something completely different locally - because the server can not validate what is really happening on the client side. This is open source software, so you cannot be 100% sure the client runs exactly a particular version of OpenVPN. What the client tells the server cannot be verified in any way.
I honestly believe OpenConnect is into something better. You just provide a server URL and the server pushes the config to the client on-the-fly. But again, even here the client can do what it wants with that data.
Another way "around" this is that you push a binary blob which the client needs to execute ... but don't get me started on the security issues related to this. Plus the nightmare of supporting different CPU architectures, different glibc, openssl/polarssl/mbdtls libraries, etc, etc .... So that's also never gonna fly.
The only to be sure the client does what it is supposed to, is to controll the VPN network traffic it tries to push over the tunnel to the server, which means firewall rules. This is one (of several) reasons I started the eurephia project ages ago, which still runs very well on latest openvpn 2.3.10 servers.
Signature · 3 lines
mvh. David Sommerseth
Hi,
Quoted 8 lines · On Wed, Feb 03, 2016 at 01:44:10AM -0000, [email protected]... wrote:
thankyou for your detailed reply ..I looked up eurephia :-) nice and did a little more research and discovered anonyproz.com The idea has some merit but it is not for the core openvpn team. I see that now .. I am, as ever, still learning and, on this occasion, maybe seeing things a little more clearly ..
Ironically, this maybe one idea where open vs closed source "shows it's teeth" a little. C'est la vie and thanks for your time .. mvh :D
Well, with a "closed" package, the VPN server could (sort of) trust the VPN client - but the *user* cannot trust the client, so hast to believe the vendor claims "it is totally secure!"...
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...It seems like... As far as the GUI is concerned, if it's already running as admin, it should just start OpenVPN.exe directly. If it's not admin, it should try to connect to the IService.
Hi,
Quoted 8 lines · On Wed, Feb 03, 2016 at 01:44:10AM -0000, [email protected]... wrote:
thankyou for your detailed reply ..I looked up eurephia :-) nice and did a little more research and discovered anonyproz.com The idea has some merit but it is not for the core openvpn team. I see that now .. I am, as ever, still learning and, on this occasion, maybe seeing things a little more clearly ..
Ironically, this maybe one idea where open vs closed source "shows it's teeth" a little. C'est la vie and thanks for your time .. mvh :D
Well, with a "closed" package, the VPN server could (sort of) trust the VPN client - but the *user* cannot trust the client, so hast to believe the vendor claims "it is totally secure!"...
gert
--
USENET is *not* the non-clickable part of WWW!
//
www.muc.de/~gert/
Gert Doering - Munich, Germany
[email protected]...
fax: +49-89-35655025
[email protected]...
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel