CVE-2016-2125: s4:scripting: don't use GSS_C_DELEG_FLAG in nsupdate-gss
authorStefan Metzmacher <metze@samba.org>
Wed, 23 Nov 2016 10:41:10 +0000 (11:41 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 9 Dec 2016 11:05:00 +0000 (12:05 +0100)
This is just an example script that's not directly used by samba,
but we should avoid sending delegated credentials to dns servers.

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>
source4/scripting/bin/nsupdate-gss

index dec5916f28690245dfc186ae2807e50416f6a8e5..509220d5a1d11023bdd6f44fb60ccb6fd0967f88 100755 (executable)
@@ -178,7 +178,7 @@ sub negotiate_tkey($$$$)
     my $flags = 
        GSS_C_REPLAY_FLAG | GSS_C_MUTUAL_FLAG | 
        GSS_C_SEQUENCE_FLAG | GSS_C_CONF_FLAG | 
-       GSS_C_INTEG_FLAG | GSS_C_DELEG_FLAG;
+       GSS_C_INTEG_FLAG;
 
 
     $status = GSSAPI::Cred::acquire_cred(undef, 120, undef, GSS_C_INITIATE,