Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YTcDb-0004n5-9T for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2015 20:18:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YTcDa-0003Uq-Kg for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2015 20:18:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YTcDZ-0003Uh-Ba for pgsql-hackers@postgreSQL.org; Thu, 05 Mar 2015 20:18:01 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YTcDV-0006j4-98 for pgsql-hackers@postgreSQL.org; Thu, 05 Mar 2015 20:18:00 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 5A71D5F7A3; Thu, 5 Mar 2015 15:17:56 -0500 (EST) Date: Thu, 5 Mar 2015 15:17:56 -0500 From: Stephen Frost To: Jim Nasby Cc: Bruce Momjian , PostgreSQL-development Subject: Re: MD5 authentication needs help Message-ID: <20150305201756.GG29780@tamriel.snowman.net> References: <20150304174354.GC29780@tamriel.snowman.net> <20150304175857.GA31979@momjian.us> <20150304182731.GG29780@tamriel.snowman.net> <20150304191625.GB31979@momjian.us> <20150304192151.GJ29780@tamriel.snowman.net> <20150304193715.GC31979@momjian.us> <20150304194654.GL29780@tamriel.snowman.net> <20150304204327.GD31979@momjian.us> <20150304205603.GM29780@tamriel.snowman.net> <54F8B7FD.8070706@BlueTreble.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eGMvpD6hD+aUohLR" Content-Disposition: inline In-Reply-To: <54F8B7FD.8070706@BlueTreble.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-45-generic (x86_64) X-Uptime: 15:13:30 up 42 days, 20:02, 10 users, load average: 0.55, 0.44, 0.37 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 --eGMvpD6hD+aUohLR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Jim Nasby (Jim.Nasby@BlueTreble.com) wrote: > On 3/4/15 2:56 PM, Stephen Frost wrote: > >>2) The per-session salt sent to the client is only 32-bits, meaning > >>>that it is possible to reply an observed MD5 hash in ~16k connection > >>>attempts. > >Yes, and we have no (PG-based) mechanism to prevent those connection > >attempts, which is a pretty horrible situation to be in. >=20 > Is there some reason we don't just fix that? I'm thinking that this > is a special case where we could just modify the pg_auth tuple > in-place without bloating the catalog (we already do that somewhere > else). Is there something else that makes this difficult? Are we > afraid of an extra GUC to control it? I'm all for it, though I would ask that we provide a way for superusers to delegate the ability to reset locked accounts to non-superusers. I'd want to think about it a bit more before settling on using pg_authid to track the data. In any case, I do think we need a way to disable this ability for certain roles and, furtherr, that we not track failed logins in cases where it's disabled (which might well be the default- I don't think we want to add this overhead for systems which have lots of recurring logins (think application users where they aren't doing pooling). Thanks! Stephen --eGMvpD6hD+aUohLR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJU+LnzAAoJEO1sijiDR2RVn3cP/jbCvHiDXGKzokOfVxAmN8s1 LRpiNJTKeJ/Xv9UJ0mjOsVpbVDTnYvZG0FP5SclCKckmxQsTb+i3I5B0KD/8W2XN 4MoptHT/CVAWQqct6kEen4UV3QERxIclVV9Tfj0Tdwp3JEmpJ+UpO30W4j4vLILs nO7IGMs93jElZRMvpy5RRDUlcNMaJLZwxbT/8lkoq4x8bCAjZkB1dDrOkrgrxjOV hL+qqkEfM0efh/KcPphvlpV3IhGkJ1XXqWRY/Yj1WF9SqWqCg8twM0fCofAdF9rM 0DzTud9oUCPQLT7kGvZMU2dnjUT5oCB+0omo5qgRbpAgV399EC456RzoYDB72vG5 eB7QDnnSmDRY6t6eXhduiN4fbyT2+Uc0QxaadOxybFadMQDaV+2deeZnyJYDN5sE xmKOuQrga3BstR78ynDy6zo4WWt/m6lT/NdtQN//2cQLvSpDjLJWKJvRob5MHpXz knaZr//hCOnNEJsiBK50ny2l+lQRqS92Zxykw8QCR883V+FYPRhu6jD9N4YgTyJg 54kJM5J0F5hwoT3Fq80Mu3nZs2WfSm2uKhMhienAJK3hFBX18yNS8GYKBbGYyBnl tfOOFBfmPmnphqYnRtKyEj/BzNgL/u9u+zrEoJU4K1Gf7jdaftifvBn91IzjH4g4 l/f3+A70V1QUFx7u4lAu =cFOY -----END PGP SIGNATURE----- --eGMvpD6hD+aUohLR--