Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cy6cJ-0001g8-0J for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Apr 2017 00:58:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cy6cI-0006Vd-Gu for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Apr 2017 00:58:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cy6cG-0006Tb-NH for pgsql-hackers@postgresql.org; Wed, 12 Apr 2017 00:58:36 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cy6cB-0007iI-Rr for pgsql-hackers@postgresql.org; Wed, 12 Apr 2017 00:58:32 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 68F105F794; Tue, 11 Apr 2017 20:58:30 -0400 (EDT) Date: Tue, 11 Apr 2017 20:58:30 -0400 From: Stephen Frost To: Bruce Momjian Cc: =?iso-8859-1?Q?=C1lvaro_Hern=E1ndez?= Tortosa , Andres Freund , Heikki Linnakangas , pgsql-hackers Subject: Re: Some thoughts about SCRAM implementation Message-ID: <20170412005830.GU9812@tamriel.snowman.net> References: <729b548a-f434-f31c-15e7-59f44aaecc8d@8kdata.com> <20170410183230.oxagjpfgj6xxmcwx@alap3.anarazel.de> <20170412004118.GC20340@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Zv7yVv09Ga1uSn+2" Content-Disposition: inline In-Reply-To: <20170412004118.GC20340@momjian.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 20:54:11 up 277 days, 2:18, 32 users, load average: 0.13, 0.16, 0.14 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --Zv7yVv09Ga1uSn+2 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Bruce, * Bruce Momjian (bruce@momjian.us) wrote: > On Tue, Apr 11, 2017 at 02:53:24PM +0200, =C1lvaro Hern=E1ndez Tortosa wr= ote: > > 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 questi= on. > > And bring some added benefits, true. So its "better". But the real gain > > comes from using channel binding, which avoids impersonation, MITM atta= cks. > > This is the deal breaker. SCRAM without channel binding is like Coke Ze= ro > > without caffeine and mixed with water. Don't get me wrong, the work beh= ind > > is great. > >=20 > > 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 ne= ws is > > that adding channel binding is like inverse Paretto: a 20% of extra eff= ort > > (I bet significantly less) leads to 80% improvement. >=20 > 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 --Zv7yVv09Ga1uSn+2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJY7Xu2AAoJEO1sijiDR2RV3hgP/RRsjzGF2S3cS1oG/WxwVO+H ndwY+Pe42SOhPN4ljkeeL8DfqVcukqOA0C07sFY0l+/6cu8hzH8lXs0xvxRz0NhO oQQhT/pdeFUWsSYDjgmauO4Y+n+DxJe1m5lquNsD3YyrvoAPtXGw1QDwjcsoFppQ YZSXJfpK025nqEIK8EmLxzOr+CbxKGjNH+zzbrhQdrctIndJaWlgQVxD8C0j2aTn 0TH8Kcm39ONTRxMzDIwuG+y4ELU+v9Znef0n7M1GwJsW08saByLjoVHlXvw3Nax6 44Z0RKjBFMQahEfFwOSoNumY7VQPjqSYzG2nCXNjJPphyngPOmmGmy+JKhdwx9eH wjnpkanRDtV684TtAfS/Gb4/vs+oryEtdBsnjFmXs2kKeW/16Re5tAOhnV5OWFPf lW+7txB/X+Y8WiyDrsOtHr5yOlGXd1M09Z6aVdhCwKHLcTTLDeL5IFpnFEAB5zpi m3Ipc5n9nt7rm1voHNBUYyJcjp8scmWLsCuhrwwZt19sv/kf+IkKehOk/4AFQ0pP zSbLy7/+JPXHo4LNHBcieFkGYGlKMEXT2hPvYX57YdaxG0i9592h8IDIgMCg/F/L 2Veb12d9+koc7qc1ev2/vWlfMVtJu4UhPtiGzeVeQllaXkcN0sTU4ktNfM4Rjj91 l9dhLbBiIPQSQ+xeOl9N =wDzz -----END PGP SIGNATURE----- --Zv7yVv09Ga1uSn+2--