CVE-2016-2125: s3:gse: avoid using GSS_C_DELEG_FLAG
authorStefan Metzmacher <metze@samba.org>
Wed, 23 Nov 2016 10:42:59 +0000 (11:42 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 9 Dec 2016 11:05:00 +0000 (12:05 +0100)
We should only use GSS_C_DELEG_POLICY_FLAG in order to let
the KDC decide if we should send delegated credentials to
a remote server.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12445

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Simo Sorce <idra@samba.org>
source3/librpc/crypto/gse.c

index f1ebe19fa79a43f5b96701c8cdb282d240986fcb..9c9f55d4f3d41e5bdbd1754f6b1cf912edb04c6b 100644 (file)
@@ -142,7 +142,6 @@ static NTSTATUS gse_context_init(TALLOC_CTX *mem_ctx,
        memcpy(&gse_ctx->gss_mech, gss_mech_krb5, sizeof(gss_OID_desc));
 
        gse_ctx->gss_want_flags = GSS_C_MUTUAL_FLAG |
-                               GSS_C_DELEG_FLAG |
                                GSS_C_DELEG_POLICY_FLAG |
                                GSS_C_REPLAY_FLAG |
                                GSS_C_SEQUENCE_FLAG;