Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VipzS-0000M0-Qf for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Nov 2013 18:25:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VipzS-0004n9-9W for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Nov 2013 18:25:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VipzR-0004mP-FK for pgsql-bugs@postgresql.org; Tue, 19 Nov 2013 18:25:33 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VipzO-0005qj-Rv for pgsql-bugs@postgresql.org; Tue, 19 Nov 2013 18:25:33 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1VipzN-0003r0-VO; Tue, 19 Nov 2013 13:25:29 -0500 Date: Tue, 19 Nov 2013 13:25:29 -0500 From: Bruce Momjian To: Jeffrey Walton Cc: pgsql-bugs@postgresql.org Subject: Re: postmaster.c and random keys/salts Message-ID: <20131119182529.GQ28149@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Wed, Nov 13, 2013 at 03:23:29AM -0500, Jeffrey Walton wrote: > The following is used to key a channel (it appears to be used in the > AUTH_REQ_MD5 in fe-auth.c). > > Four bytes is a tad bit small, and time based does not leave much to > the imagination. Also, it looks like its susceptible to VM roillbacks. Yes, it is too small. The odds of salt replay are in the 10k-connection range. However, to fix it, we would need a new wire protocol version. :-( -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs