Re: RFC 9266: Channel Bindings for TLS 1.3 support - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: RFC 9266: Channel Bindings for TLS 1.3 support
Date
Msg-id 91e27d46-97ad-4527-abc8-1cacf0b60f2e@iki.fi
Whole thread Raw
In response to Re: RFC 9266: Channel Bindings for TLS 1.3 support  (Jacob Champion <jacob.champion@enterprisedb.com>)
List pgsql-hackers
On 20/11/2025 23:59, Jacob Champion wrote:
> On Thu, Nov 20, 2025 at 1:52 PM Heikki Linnakangas <hlinnaka@iki.fi> wrote:
>> PostgreSQL does support channel binding, with tls-server-end-point. I
>> believe that sufficient to prevent an attack like that.
> 
> No, IIRC unique bindings (-unique and -exporter) prevent MITM even if
> the attacker has the server's private key, as long as they do not also
> possess the SCRAM verifiers. tls-server-end-point does not prevent
> against that (so you can terminate TLS on a different node from the
> verifiers).

If I understood the incident correctly, the attacker managed to somehow 
obtain a valid TLS certificate for the victim domain. They used that to 
perform a MITM attack. They did not have the server's private key. (Or 
if they did, they did not use that for the attack).

That's an advantage in general though, even if it wouldn't have made a 
difference in this instance. So fair point.

- Heikki




pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: CAST(... ON DEFAULT) - WIP build on top of Error-Safe User Functions
Next
From: * Neustradamus *
Date:
Subject: Re: RFC 9266: Channel Bindings for TLS 1.3 support