From: | Claudio Freire <klaussfreire(at)gmail(dot)com> |
---|---|
To: | Sean Chittenden <sean(at)chittenden(dot)org> |
Cc: | Troels Nielsen <bn(dot)troels(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: SSL renegotiation |
Date: | 2013-07-11 14:11:50 |
Message-ID: | CAGTBQpZjO-rTdKspYZkn-0HqqVy5h6MX+E6CJ+4Rj6xcp6AHng@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On Thu, Jul 11, 2013 at 1:13 AM, Sean Chittenden <sean(at)chittenden(dot)org> wrote:
>> , I suppose two things can be done:
>>
>> 1. Quit the connection
>
> With my Infosec hat on, this is the correct option - force the client
> back in to compliance with whatever the stated crypto policy is through
> a reconnection.
>
>> 2. Carry on pretending nothing happened.
>
> This is almost never correct in a security context (all errors or
> abnormalities must boil up).
>
>> I think 2 is correct in the vast majority of cases (as it looks like
>> is being done now).
>
> That is a correct statement in that most code disregards renegotiation,
> but that is because there is a pragmatic assumption that HTTPS
> connections will be short lived. In the case of PostgreSQL, there is a
> good chance that a connection will be established for weeks or months.
> In the case of Apache, allowing a client to renegotiate every byte would
> be a possible CPU DoS, but I digress....
And, allowing the client to refuse to renegotiate leaves the relevant
vulnerability unpatched. Renegotiation was introduced to patch a
vulnerability in which, without renegotiation, there was the
possibility of an attacker gaining knowledge of session keys (and
hence the ability to intercept the stream).
I think 2 is not viable in this context. Only 1.
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2013-07-11 16:13:10 | Re: pgsql: pg_upgrade: document possible pg_hba.conf options |
Previous Message | Bruce Momjian | 2013-07-11 13:50:30 | Re: pgsql: pg_upgrade: document possible pg_hba.conf options |
From | Date | Subject | |
---|---|---|---|
Next Message | Sawada Masahiko | 2013-07-11 14:42:10 | Re: Patch for fail-back without fresh backup |
Previous Message | Magnus Hagander | 2013-07-11 14:05:59 | Re: robots.txt on git.postgresql.org |