128 points · by zx2c4 · 12y ago · 66 comments
* The "nacltai" protocol driver uses C VLAs to store attacker-controlled numbers of bytes; a VLA is morally the same as an "alloca" call. I have no clue if this is exploitable but reading it gives me a painful burning itching sensation.
* I sort of wish the authors didn't parse strings to recover crypto parameters from the packets, but instead just used a straightforward binary encoding that would require less use of C's terrible string functions.
I'm still a lot more comfortable with this codebase than with OpenVPN. :)
http://www.cvedetails.com/vulnerability-list/vendor_id-3278/...
Some compilers already support the spec, even if it isn't going to be in C++14.
VLAs too here - but there are many situations where it is necessary to dynamically allocate based on message contents ... just not at this level. alloca is no more a risk than most other allocation methods when it is necessary - at least in the worst case
(I have no idea if it's an issue here and sort of doubt it, and would not call this "rank amateur bs").
Or maybe because OpenVPN is less auditable relative to something like SigmaVPN?
Maybe the subtext to this submission is "OpenSSL totally sucks so bad you need to evacuate NOW NOW NOW!!!!" If so, I'd point out that now is the time to upgrade OpenSSL, ditch all of your old keys, and keep an eye on the future.
Today is not the day to forklift in a whole new chunk of infrastructure.
Instead, set up a lab, play with it, get a feeling for it.
What I see: when a packet is decrypted the time-based nonce is unpacked here [1] and this function seems to be called from here [2] but nowhere I can't find where this nonce is verified not to be too old, what am I missing?
[1] https://github.com/neilalexander/sigmavpn/blob/c7f60ecfdb22b...
[2] https://github.com/neilalexander/sigmavpn/blob/c7f60ecfdb22b...
[0] https://github.com/UCIS/QuickTun/blob/master/src/proto.naclt...
It's still OpenVPN but might be useful to those that care about this story too.
https://github.com/zerotier/ZeroTierOne
/full disclosure: I wrote this.
Also, please use something like twitter's bootstrap and buy a nice theme, your site and logo currently look like very untrustworthy. I couldn't get my boss to sign off buying something from a website that looks like that.
I'm not sure what you mean by diagrams though. This doesn't work that way. It creates virtual networks that look completely flat, as if you and every other peer were plugged into the same Ethernet switch.
One of my difficulties has been getting this across... you don't have to think about topology. It's easier than that. It's a virtual switch. Install, join network, done. Everything is automatic.
You can peek at the new design here (but don't try to use it): https://test.zerotier.com/
But a network in which every peer is connected to the same ethernet switch isn't flat, it's a star. But a star network doesn't scale as well as you claim.
Behind the scenes to make it scalable perhaps you build p2p connections, this would make the diagram be more like a complete graph, which it has its own scaling problems.
To solve it, perhaps you have stateless or on-demand connections, so the actual number of connections is lower than the worst case. Or perhaps you promote peers to super-peers and build a stars of stars network.
A couple of simple diagrams answer these questions and quickly let me decide whether your solution is suitable.
More importantly, QuickTun might have some usability issues. Port numbers are hard-coded, and most configuration options seem to be set as environment variables. This should be expected though, as a result of trying to keep the code as small as possible.
I'd recommend it, but only to someone who's willing to read the source to figure out what's going on. If someone wanted to write their own VPN, it would be an excellent reference. It's definitely not for everyone.
SigmaVPN would look awesome, but lacks Windows support. I'd give ZeroTierOne a shot, but that lacks Android support. Any other solutions for a "VPN Of Things" if you will?
PPTP is completely broken (MS-CHAPv2 especially), OpenVPN is hard to setup and maintain.
I've been using ssh as an impromptu VPN-like thing but I'd really, really like an actual VPN solution.
That's not true. OpenVPN is the easier, most straight-forward solution when it comes to set-up[1] and configuration (routing, firewalling, client auth, etc.). Try to setup OpenSWAN and you'll see what hard to setup really means. I don't know about new software like SigmaVPN.
[1] Or maybe I am too used to it.
https://gist.github.com/arnehormann/9744964 There's a usage howto in the comments and this should be short enough to fully grasp what it does. No third party requirements, just ruby core + openssl.
It creates client and server configuration and creates and manages CA and CRL.
The VPN uses tun mode over UDP. Required changes on the server are written down in comments at the beginning of the server configuration.
If there is sufficient interest, I can make it a real repo so it can get issues and pull requests.
After this thread I'll be looking at fastd and zerotierone, though.
Do you have something else to create L2 overlays that is more secure?
I was looking them up the other day they seem very nice.