pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephen Frost <sfrost@snowman.net>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: Jonathan S. Katz <jkatz@postgresql.org>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Add "password_protocol" connection parameter to libpq
Date: Mon, 12 Aug 2019 19:46:41 +0200
Message-ID: <f433a63f-802d-bb29-7df7-8cb6e80bdc43@2ndquadrant.com> (raw )
In-Reply-To: <12894.1565630766@sss.pgh.pa.us >
References: <20190809030021.GG3194@paquier.xyz >
<3bbf5968ea705700a2605d6db74d8510bea7940b.camel@j-davis.com >
<20190809100922.GI3194@paquier.xyz >
<20190809132850.GL16436@tamriel.snowman.net >
<609482826475e0063c7d71b2449ae31c0d61b232.camel@j-davis.com >
<071e45a6-97f7-1614-371c-98ecb03aed65@postgresql.org >
<daf0017a1a5c2caabf88a4e00f66b4fcbdfeccad.camel@j-davis.com >
<7a7a2f07-d013-eb80-85ba-9edaaf845038@2ndquadrant.com >
<95b40ddcb3897772f075e6891521ee3f06f443d1.camel@j-davis.com >
<93653d2b-7cf7-6992-7d3e-600ffd461354@2ndquadrant.com >
<20190812171414.GX16436@tamriel.snowman.net >
<12894.1565630766@sss.pgh.pa.us >
On 2019-08-12 19:26, Tom Lane wrote:
> What problem do we actually need to solve here?
>
> If the known use-case is just "don't send my password in the clear",
> maybe we should just change libpq to refuse to do that, ie reject
> plain-password auth methods unless SSL is on (except maybe over
> unix sockets?). Or invent a bool connection option that enables
> exactly that.
There are several overlapping problems:
1) A downgrade attack by a malicious server. The server can collect
passwords from unsuspecting clients by just requesting some weak
authentication like plain-text or md5. This can currently be worked
around by using SSL with server verification, except when considering
the kind of attack that channel binding is supposed to address.
2) A downgrade attack to evade channel binding. This cannot currently
be worked around.
3) A user not wanting to expose a weakly hashed password to the
(otherwise trusted) server. This cannot currently be done.
4) A user not wanting to send a password in plain text over the wire.
This can currently be done by requiring SSL.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
view thread (46+ messages) latest in thread
Message-ID: <f433a63f-802d-bb29-7df7-8cb6e80bdc43@2ndquadrant.com>
Permalink: ../f433a63f-802d-bb29-7df7-8cb6e80bdc43@2ndquadrant.com/
Also on: postgresql.org/message-id/f433a63f-802d-bb29-7df7-8cb6e80bdc43@2ndquadrant.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us, sfrost@snowman.net, pgsql@j-davis.com, jkatz@postgresql.org, michael@paquier.xyz
Subject: Re: Add "password_protocol" connection parameter to libpq
In-Reply-To: <f433a63f-802d-bb29-7df7-8cb6e80bdc43@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox