pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Bruce Momjian <bruce@momjian.us>
Cc: Álvaro Hernández Tortosa <aht@8kdata.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Some thoughts about SCRAM implementation
Date: Tue, 11 Apr 2017 20:58:30 -0400
Message-ID: <20170412005830.GU9812@tamriel.snowman.net> (raw)
In-Reply-To: <20170412004118.GC20340@momjian.us>
References: <df8c6e27-4d8e-5281-96e5-131a4e638fc8@8kdata.com>
	<a990783c-44b3-cff6-7128-c6393be41af6@iki.fi>
	<729b548a-f434-f31c-15e7-59f44aaecc8d@8kdata.com>
	<20170410183230.oxagjpfgj6xxmcwx@alap3.anarazel.de>
	<fd4530e0-f016-4eb9-a0d0-e32824482db5@8kdata.com>
	<20170412004118.GC20340@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Bruce,

* Bruce Momjian (bruce@momjian.us) wrote:
> On Tue, Apr 11, 2017 at 02:53:24PM +0200, Álvaro Hernández Tortosa wrote:
> >     Let's put ourselves on the foot of potential users. Why would anyone
> > want to use SCRAM? What for? The hashing mechanism is better, no question.
> > And bring some added benefits, true. So its "better". But the real gain
> > comes from using channel binding, which avoids impersonation, MITM attacks.
> > This is the deal breaker. SCRAM without channel binding is like Coke Zero
> > without caffeine and mixed with water. Don't get me wrong, the work behind
> > is great.
> > 
> >     But just a bit more is needed to make it really a big announcement and
> > provide real value to (I guess, mostly but very interesting) enterprise
> > customers, for which MITM and impersonating are big things. The good news is
> > that adding channel binding is like inverse Paretto: a 20% of extra effort
> > (I bet significantly less) leads to 80% improvement.
> 
> I don't see why channel binding is a big deal for enterprises because I
> assume they are already using SSL:

Channel binding should be used with SSL to ensure that there is no
man-in-the-middle attack being performed.  It's necessary when the
end-points aren't performing full, mutual, certificate-based
verification.

> I think the big win for SCRAM is the inability to replay md5 packets
> after recording 16k sessions (salt was only 32-bit, so a 50% chance of
> replay after 16 sessions), and storage of SHA256 hashes instead of MD5
> in pg_authid, though the value of that is mostly a check-box item
> because collisions are not a problem for the way we use MD5.

There are a lot of wins to having SCRAM implemented.  I disagree
strongly that securing PG from attacks based on latent information
gathering (backups which include pg_authid) is just a "check-box" item.

Thanks!

Stephen

Attachments:

  [application/pgp-signature] signature.asc (818B, ../20170412005830.GU9812@tamriel.snowman.net/2-signature.asc)
  download

view thread (34+ messages)  latest in thread

Message-ID: <20170412005830.GU9812@tamriel.snowman.net>
Permalink:  ../20170412005830.GU9812@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20170412005830.GU9812@tamriel.snowman.net

 · 

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: sfrost@snowman.net, bruce@momjian.us, aht@8kdata.com, andres@anarazel.de, hlinnaka@iki.fi
  Subject: Re: Some thoughts about SCRAM implementation
  In-Reply-To: <20170412005830.GU9812@tamriel.snowman.net>

* 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