public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] OpenVPN: mark CBC ciphers as weak in WebUI
Date: Tue, 11 Jun 2019 11:17:44 +0100	[thread overview]
Message-ID: <E63D3C56-7857-4F20-AB55-37F4386B07AE@ipfire.org> (raw)
In-Reply-To: <e1852170b643b5a7ac5e4b8d6b5eb326ac3703b7.camel@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 4256 bytes --]

Hi,

> On 10 Jun 2019, at 20:49, ummeegge <ummeegge(a)ipfire.org> wrote:
> 
> Hi,
> 
> On Mo, 2019-06-10 at 20:12 +0100, Michael Tremer wrote:
>> Hi,
>> 
>>> On 10 Jun 2019, at 20:08, Peter Müller <peter.mueller(a)ipfire.org>
>>> wrote:
>>> 
>>> Hello Michael,
>>> 
>>> thanks for your comments.
>>> 
>>>> Hi,
>>>> 
>>>> I think I can ACK this although we definitely should change the
>>>> default. I have raised that a couple of times before.
>>> 
>>> Yes. This is true for IPsec as well... Patch is in my pipeline…
>> 
>> Okay. Can we try to make a patchset out of things like this in the
>> future?
>> 
>> That keeps things together and we can coordinate better when we merge
>> this.
>> 
>> We have closed the last Core Update technically last week. Now we
>> have some big changes here and I would prefer to not break the update
>> but have it rather shipped as soon as possible.
>> 
>>>> 
>>>> I also do not like having a very long list of ciphers that are
>>>> weak. There are not too many left which are “strong”. But yeah,
>>>> what can you do?
>>> 
>>> As far as I am concerned, there is little "strong" cryptography
>>> left indeed.
>>> It's basically only TLS >= 1.2 with AEAD (e.g. GCM) ciphers and
>>> Forward Secrecy.
>>> 
>>> Speaking about RFC 8446, this is more or less what survived
>>> discussions before
>>> standardizing TLS 1.3 ... :-)
>> 
>> Yeah I picked up on that too, but we have to make sure that we ensure
>> compatibility.
>> 
>> OpenVPN is hard to update. People cannot migrate from a cipher to
>> another one and not all versions support GCM.
> A helpful feature for this is --ncp-ciphers where we have had also some
> discussions some time ago. In principle it is only a checkbox but
> choosing the ciphers is more work also if we want to have a separate
> encryption section in the WUI.

Do we have any implementation of this somewhere?

Right now this feature is enabled and will default to what ever the OpenVPN project thinks is right, but the option on the web UI does not really matter any more. The cipher selected here is only being used when you have an old client which does not know about ncp-ciphers, yet.

> Another point which matches this topic i think is the DH-parameter
> which is, i think, for updated systems (OpenVPN-2.4.x) useless since
> mostly key exchanges are meanwhile managed via ECDH. We tested this
> with 'dh none' --> 
> https://forum.ipfire.org/viewtopic.php?f=50&t=22664

When you say most, how many is that? One is enough to have the DH params.

> . But this is again another encryption setting which is also in my
> opinion an advanced one in his specifics but a good candidate for a
> default. We could also spare then the DH-parameter while PKI generation
> (which needs really lot´s of time and can causes also troubles for weak
> machines and long paramters). An DH-upload possiblity can still be
> there for example to keep the possibility for backwards compatibility).
> Did also some work on this but my time is currently really really rare!

Yes, I think we can safely move to EC crypto for modern clients. The question is only how we can keep to support older clients. OpenVPN makes this very very very very difficult.

> 
>> 
>> -Michael
>> 
>>>> 
>>>> I will wait for Erik to ack this, too.
> I think we have two kinds of "weak" then. The 64bit block ciphers do
> have also some technical disadvantage since Sweet32 a renegotiation is
> forced after 64MB which can be fast reached. So we have a kind of "very
> weak" and "weak" then? 

In essence you are right. But isn’t weak just another word for broken? And is something either broken or not? I think it does not matter how weak something is really. The message we want to get across to users is to not use these ciphers any more. Having something as “weak” next to “very weak” might make it sound a bit softer and that it might be a little bit acceptable to use the weak cipher.

> 
>>>> 
>>>> -Michael
>>> 
>>> Thanks, and best regards,
>>> Peter Müller
>>> -- 
>>> The road to Hades is easy to travel.
>>> 	-- Bion of Borysthenes
>> 
>> 
> 
> Some thoughts from here.
> 
> Best,
> 
> Erik


      reply	other threads:[~2019-06-11 10:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-10 18:36 Peter Müller
2019-06-10 18:47 ` Michael Tremer
2019-06-10 19:08   ` Peter Müller
2019-06-10 19:12     ` Michael Tremer
2019-06-10 19:49       ` ummeegge
2019-06-11 10:17         ` Michael Tremer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E63D3C56-7857-4F20-AB55-37F4386B07AE@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox