pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Jacobo Vazquez <jvazquez@denodo.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Fwd: SSPI authentication ASC_REQ_REPLAY_DETECT flag
Date: Tue, 31 Mar 2015 21:06:26 -0400
Message-ID: <20150401010625.GO3663@tamriel.snowman.net> (raw)
In-Reply-To: <CADdJUUKzrkab_rMRNhKctx3VR2_PRtsS8bak7nKg=VRzw=eEjw@mail.gmail.com>
References: <CADdJUUJuNDN5ekarfdL8O7Tb_duVao0M48W9dj-ox5bXkE+3xA@mail.gmail.com>
	<CADdJUUKzrkab_rMRNhKctx3VR2_PRtsS8bak7nKg=VRzw=eEjw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (3+ messages)

Message-ID: <20150401010625.GO3663@tamriel.snowman.net>
Permalink:  ../20150401010625.GO3663@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20150401010625.GO3663@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: sfrost@snowman.net, jvazquez@denodo.com, pgsql-hackers@postgresql.org
  Subject: Re: Fwd: SSPI authentication ASC_REQ_REPLAY_DETECT flag
  In-Reply-To: <20150401010625.GO3663@tamriel.snowman.net>
  References: <CADdJUUJuNDN5ekarfdL8O7Tb_duVao0M48W9dj-ox5bXkE+3xA@mail.gmail.com> <CADdJUUKzrkab_rMRNhKctx3VR2_PRtsS8bak7nKg=VRzw=eEjw@mail.gmail.com> <20150401010625.GO3663@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