Request peer review of modified OpenVPN client software
Hi guys,
I obtained a modified OpenVPN client software from a friend and wonder if any of you would like to help review it for security vulnerabilities, design flaws, incorrect implemention of code, etc...
To the best of my knowledge, modifications include the ability to provide obfuscation and avoid deep packet inspection by the Great Firewall.
The URLs to download the two relevant files are:
http://www.datafilehost.com/d/b85faf74
http://www.datafilehost.com/d/930732b4
Thanks in advance.
Lisa
P.S.:
sha256sum lisa.tar.gz: 927ad11784d52a6e4a8c129c9471f97591c31379ff18232bcb80c6a0b7090d39
sha256sum lisa-config.ovpn: c6100b855cf0ba29dde6df7f3711cdd14784c10f5c8c327e24dda9f52bf95055
-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be
Am 12.05.15 um 09:59 schrieb Lisa Minogue:
Quoted 6 lines
Hi guys,
I obtained a modified OpenVPN client software from a friend and wonder if any of you would like to help review it for security vulnerabilities, design flaws, incorrect implemention of code, etc...
To the best of my knowledge, modifications include the ability to provide obfuscation and avoid deep packet inspection by the Great Firewall.
Quoted 8 lines
The URLs to download the two relevant files are:
http://www.datafilehost.com/d/b85faf74
http://www.datafilehost.com/d/930732b4
Thanks in advance.
I only took a very brief look: What you gave use is some modified source code archive that contains some modified OpenVPN source (2.3_git as version). While most of us developers /could /probably find out which version that source code is and try to see what the changes our motivatation to do so is very minimal. We focus on working on the main source code and review patches for that version.
It has probably some obfuscation/encryption patches applied. There is no official obfuscation capability in OpenVPN yet since the core OpenVPN developers believe that such a mechansim should be either implemented in a plugin or other way (e.g., a proxy) that is flexible enough to change the mechanism.
Arne
Quoted 4 lines
Arne Schwabe <[email protected]...> wrote:
It has probably some obfuscation/encryption patches applied. There is no official obfuscation capability in OpenVPN yet since the core OpenVPN developers believe that such a mechansim should be either implemented in a plugin or other way (e.g., a proxy) that is flexible enough to change the mechanism.
Thanks Arne, for your prompt reply.
Can I conclude from your above statements that applying obfuscation patches to the standard OpenVPN client software may actually introduce security vulnerabilities?
Regards.
Lisa
-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be
Am 12.05.15 um 13:27 schrieb Lisa Minogue:
Quoted 8 lines
Quoted 4 lines
Arne Schwabe <[email protected]...> wrote:
It has probably some obfuscation/encryption patches applied. There is no official obfuscation capability in OpenVPN yet since the core OpenVPN developers believe that such a mechansim should be either implemented in a plugin or other way (e.g., a proxy) that is flexible enough to change the mechanism.
Thanks Arne, for your prompt reply.
Can I conclude from your above statements that applying obfuscation patches to the standard OpenVPN client software may actually introduce security vulnerabilities?
Any patch can introduce security vulnerabilities. Without knowing and reviewing the specific patch that has been applied to that version there is no way to be sure.
Arne
Quoted 4 lines · Lisa Minogue
Can I conclude from your above statements that applying obfuscation patches to the standard OpenVPN client software may actually introduce security vulnerabilities?
The openvpn_xorpatch
<https://github.com/clayface/openvpn_xorpatch/blob/master/openvpn_xor.patch>
which
as introduced and discussed in this thread
<https://forums.openvpn.net/topic12605.html> does have some vulnerabilities See Tunnelblick openvpn_xorpatch
<https://code.google.com/p/tunnelblick/wiki/cOpenvpn_xorpatch> for a further discussion of the patch.
Most of the vulnerabilities are null pointer dereferences or other errors when parsing the "scramble" option or are triggered by unlikely values for its parameters. However, one is a potential buffer overflow which can occur while the VPN is active and could potentially be triggered by carefully constructed traffic.
Quoted 6 lines
"Jonathan K. Bullard" <[email protected]...> wrote:
The
openvpn_xorpatchwhich as introduced and discussed in this thread does have some vulnerabilities.Most of the vulnerabilities are null pointer dereferences or other errors when parsing the "scramble" option or are triggered by unlikely values for its parameters. However, one is a potential buffer overflow which can occur while the VPN is active and could potentially be triggered by carefully constructed traffic.
Thanks Jonathan for your feedback.
I've a different question for you. What about using stunnel4 with OpenVPN?
I've seen a situation in which a user opens a stunnel4 connection in Linux (without root) as in the following:
stunnel filename.ssl
In a new terminal window, the user, as root, types the following command to connect to an OpenVPN server:
sudo openvpn filename.ovpn
I was told the above method achieves the same goal as using the OpenVPN_XOR-patch method, i.e. preventing deep packet inspection carried out by the Great Firewall.
But does the stunnel4+openvpn combo method have security vulnerabilities? (Last I checked, stunnel4 is available in many Linux distros.)
Regards.
Lisa
-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be
Quoted 15 lines · Lisa Minogue
Quoted 6 lines
"Jonathan K. Bullard" <[email protected]...> wrote:
The
openvpn_xorpatchwhich as introduced and discussed in this thread does have some vulnerabilities.Most of the vulnerabilities are null pointer dereferences or other errors when parsing the "scramble" option or are triggered by unlikely values for its parameters. However, one is a potential buffer overflow which can occur while the VPN is active and could potentially be triggered by carefully constructed traffic.
Thanks Jonathan for your feedback.
I've a different question for you. What about using stunnel4 with OpenVPN?
I've seen a situation in which a user opens a stunnel4 connection in Linux (without root) as in the following:
stunnel filename.ssl
Quoted 7 lines
In a new terminal window, the user, as root, types the following command to connect to an OpenVPN server:
sudo openvpn filename.ovpn
I was told the above method achieves the same goal as using the OpenVPN_XOR-patch method, i.e. preventing deep packet inspection carried out by the Great Firewall.
But does the stunnel4+openvpn combo method have security vulnerabilities? (Last I checked, stunnel4 is available in many Linux distros.)
Hi Lisa,
We honestly know not much about stunnel here. We care about openvpn. As Arne said, any patch can introduce security vulnerabilities. And that goes for software as well. There are no software which is 100% perfect and completely free for vulnerabilities. OpenVPN found one not that many months ago which impacted most versions the project already have released, going over a decade.
So if there are issues in stunnel, try asking that community instead. They
know much more about that than what we do here.
Now regarding to why stunnel may work. Any tunnel which you pipe/proxy OpenVPN traffic through will modify how the packets leaving your computer. That means, what once was an OpenVPN which would fit into an OpenVPN signature detection will not pass that detection - as the traffic doesn't look like OpenVPN traffic. The packets have been mangled.
The XOR patch which we've basically rejected so far, modifies how OpenVPN packets looks like. Piping the traffic through stunnel will actually encrypt the OpenVPN packets once more, thus the packets will not look like OpenVPN packets. And the same happens if you use obfsproxy from the Tor project, which also is used to mangle the network packets.
There are many ways to achieve the goal you aim for. We have generally recommended obfsproxy, as that's a tool especially designed to do this clever magic in a very flexible way. So when a firewall learns the new packet fingerprint, obfsproxy can easily and quickly be extended with another mangler. And that is why we don't want this functionality built into OpenVPN.
Because it is far harder for OpenVPN to follow what passes through various
"Great Firewalls" (you have more countries doing that than just China). The Tor projects have a special interest in making such mangling work as smooth as possible, with great success. Hence that has been our primary recommendation.
Signature · 3 lines
kind regards, David Sommerseth
Hi David
Quoted 6 lines
From: David Sommerseth <[email protected]...>
Sent: Tue May 12 23:07:52 CEST 2015
To: Lisa Minogue <[email protected]...>, Jonathan K. Bullard <[email protected]...>
Subject: Re: [Openvpn-devel] Request peer review of modified OpenVPN client softwareSo if there are issues in stunnel, try asking that community instead. They know much more about that than what we do here.
Thank you for pointing me in the right direction.
Quoted 2 lines
The XOR patch which we've basically rejected so far, modifies how OpenVPN packets looks like. Piping the traffic through stunnel will actually encrypt the OpenVPN packets once more, thus the packets will not look like OpenVPN packets. And the same happens if you use obfsproxy from the Tor project, which also is used to mangle the network packets.
Briefly what are your reasons for rejecting the XOR patch?
Quoted 3 lines
We have generally recommended obfsproxy, as that's a tool especially designed to do this clever magic in a very flexible way. So when a firewall learns the new packet fingerprint, obfsproxy can easily and quickly be extended with another mangler. And that is why we don't want this functionality built into OpenVPN. Because it is far harder for OpenVPN to follow what passes through various "Great Firewalls" (you have more countries doing that than just China). The Tor projects have a special interest in making such mangling work as smooth as possible, with great success. Hence that has been our primary recommendation.
Thanks once again for your time and effort in helping me understand the advantages of using obfsproxy over XOR patch or stunnel4.
Do OpenVPN developers have an official wiki on how to use obfsproxy with OpenVPN? Or is the article referenced by the following URL--https://community.openvpn.net/openvpn/wiki/TrafficObfuscation--your official guide?
Best regards.
Lisa
-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be
Quoted 7 lines · Lisa Minogue
Hi David
Quoted 4 lines
From: David Sommerseth <[email protected]...>
Sent: Tue May 12 23:07:52 CEST 2015
To: Lisa Minogue <[email protected]...>, Jonathan K. Bullard <[email protected]...>
Subject: Re: [Openvpn-devel] Request peer review of modified OpenVPN client software
Quoted 8 lines
Quoted 6 lines
The XOR patch which we've basically rejected so far, modifies how OpenVPN packets looks like. Piping the traffic through stunnel will actually encrypt the OpenVPN packets once more, thus the packets will not look like OpenVPN packets. And the same happens if you use obfsproxy from the Tor project, which also is used to mangle the network packets.
Briefly what are your reasons for rejecting the XOR patch?
Read carefully below, as I already answered that.
Quoted 10 lines
Quoted 9 lines
We have generally recommended obfsproxy, as that's a tool especially designed to do this clever magic in a very flexible way. So when a firewall learns the new packet fingerprint, obfsproxy can easily and quickly be extended with another mangler. And that is why we don't want this functionality built into OpenVPN. Because it is far harder for OpenVPN to follow what passes through various "Great Firewalls" (you have more countries doing that than just China). The Tor projects have a special interest in making such mangling work as smooth as possible, with great success. Hence that has been our primary recommendation.
Quoted 7 lines
Thanks once again for your time and effort in helping me understand the advantages of using obfsproxy over XOR patch or stunnel4.
Do OpenVPN developers have an official wiki on how to use obfsproxy with OpenVPN? Or is the article referenced by the following URL--https://community.openvpn.net/openvpn/wiki/TrafficObfuscation--your official guide?
No, that's the general approach. Using obfsproxy is actually fairly simple. I've not tested the setup which is demonstrated here in a long time, but I see that nowadays obfsproxy supports a better protocol, obfs3 instead of obfs2. And that's the power of obfsproxy, when newer tweaks are needed to combat these "Great Firewalls", the Tor projects have a solution for you.
Signature · 3 lines
kind regards, David Sommerseth
Quoted 4 lines
Do OpenVPN developers have an official wiki on how to use obfsproxy with OpenVPN? Or is the article referenced by the following URL--https://community.openvpn.net/openvpn/wiki/TrafficObfuscation--your official guide?
The obfuscation guide you linked to does not have official blessing from the project, but it seems to have useful content. Note that we don't generally distinguish between official and unofficial documentation.
Samuli
Quoted 9 lines
----------------------------------------
From: Samuli Seppänen <[email protected]...>
Sent: Wed May 13 15:07:03 CEST 2015
To: Lisa Minogue <[email protected]...>, <[email protected]>, Jonathan K. Bullard <[email protected]...>
Subject: Re: [Openvpn-devel] Request peer review of modified OpenVPN client softwareThe obfuscation guide you linked to does not have official blessing from the project, but it seems to have useful content. Note that we don't generally distinguish between official and unofficial documentation.
Thanks Samuli for your clarification.
But as that guide in question was hosted on OpenVPN.net's website and was not given the "Imprimatur" by OpenVPN's project team members, it'd help surfers if the guide was prefixed by the word "Unofficial Guide" or some words of similar meaning.
When I first read the said guide, I was under the impression that it was officially sanctioned by OpenVPN's project team.
Best regards.
Lisa
-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be
Quoted 7 lines
Quoted 7 lines
----------------------------------------
From: Samuli Seppänen <[email protected]...>
Sent: Wed May 13 15:07:03 CEST 2015
To: Lisa Minogue <[email protected]...>, <[email protected]>, Jonathan K. Bullard <[email protected]...>
Subject: Re: [Openvpn-devel] Request peer review of modified OpenVPN client software
Quoted 9 lines
Quoted 3 lines
The obfuscation guide you linked to does not have official blessing from the project, but it seems to have useful content. Note that we don't generally distinguish between official and unofficial documentation.
Thanks Samuli for your clarification.
But as that guide in question was hosted on OpenVPN.net's website and was not given the "Imprimatur" by OpenVPN's project team members, it'd help surfers if the guide was prefixed by the word "Unofficial Guide" or some words of similar meaning.
When I first read the said guide, I was under the impression that it was officially sanctioned by OpenVPN's project team.
That particular page is hosted on Trac Wiki, not on the OpenVPN website (http://openvpn.net). As Wikis are editable by anyone all the pages hosted on them can be considered unofficial by default.
Samuli