Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yd772-0005gZ-1F for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2015 01:06:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yd771-0000yc-1R for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2015 01:06:31 +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 1Yd770-0000yW-7K for pgsql-hackers@postgresql.org; Wed, 01 Apr 2015 01:06:30 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yd76x-0001o0-1E for pgsql-hackers@postgresql.org; Wed, 01 Apr 2015 01:06:29 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 1FA675F7A5; Tue, 31 Mar 2015 21:06:26 -0400 (EDT) Date: Tue, 31 Mar 2015 21:06:26 -0400 From: Stephen Frost To: Jacobo Vazquez Cc: pgsql-hackers@postgresql.org Subject: Re: Fwd: SSPI authentication ASC_REQ_REPLAY_DETECT flag Message-ID: <20150401010625.GO3663@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jwSnfOBD38i7UC9C" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-46-generic (x86_64) X-Uptime: 20:54:33 up 12 days, 6:43, 3 users, load average: 0.01, 0.09, 0.12 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 --jwSnfOBD38i7UC9C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Jacobo, * Jacobo Vazquez (jvazquez@denodo.com) wrote: > Am I misunderstanding something or is this the expected behavior? This > not means a replay attack risk? I think that if SSL is not used by the > connection, a malicious user could capture the authentication package which > the client service ticket and then reuse it. It's not entirely clear to me what you're getting at here, but Kerberos service tickets are *intended* to be re-used up until they are invalid due to their lifetime limit. That's why they have a lifetime. If you don't want them to be reused, make their lifetime very short, but you'll end up creating a huge additional load on your KDC that way for very little gain.. Note that this is entirely independent of a replay attack risk, which is addressed by the resource server checking if the timestamp in the authenticator being provided is the same as the last one (it should be denied if it is). Further, the timestamp in the authenticator has to be within 5 minutes or it'll also be denied. Thanks, Stephen --jwSnfOBD38i7UC9C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVG0SRAAoJEO1sijiDR2RVIGoP/1I9QSrsGunJSihSDa8SfPvy +N0EngrVQpVCEkDfiavUed+ir+MW7azNl80M9zqsXj0ltcIIGCwySHcrGOJPHHI4 RdMcnFeADykhA6VNECbpCdRtYjCRoBFjEIvND14IGtyHgyyYNeS6oS9OAdA1CJZG iEL44TfhSC8srixpFC6k0qPWM1g0X7Vtv93ltOHR6/IMumUBGQGhwd/2pGHi/NnK +4dCCO+WgCAJwoLl0Lv1AqD37NeCs9XwjoOVlJrIe9QiYmdJNw2mJ6LSVQdgB5ol ZlwcveZMcoRmd9E4jyS60eM8U2FIVVRO6Ve0/mfjuqswp25DnMJWza7Pq07SFjv0 jv3SSn2cFQdNgCchtczhAKIG6nAUKposBOw+H0vEjdvCQCucrwVrKzdrc8qOVvYJ 408C337IrGYHj+jSi/WLClQNR32pAUNb8wu4H7osAI3kHYDlu3payelU/fb9rrJn IvTkucutqelba29JBRVtOKkT3+0q3GYfyaFP43jN5qCF1tkcQbEIhvrn/oxJamoF qRg2QsqzAuE7s1JH2HFufGx9eT3f6dp73rTGeqTnoWg4sjSqfveD8Vd+lfv4GeKf Pzh3B1v74YFhy9F7wgcWUB/29CN8oPg4LTivw9rVnKte2LrUNwtMbqEiHn2WMPCK 6NKAqxumU6UaqDt0DNuW =bI54 -----END PGP SIGNATURE----- --jwSnfOBD38i7UC9C--