NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/61094: sshd(8): docs/code disagree on KerberosAuthentication default



>Number:         61094
>Category:       bin
>Synopsis:       sshd(8): docs/code disagree on KerberosAuthentication default
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 30 05:00:00 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, ...
>Organization:
The OpenSSH Kerberization, Inc.
>Environment:
>Description:

	The sshd_config(5) man page says:

     KerberosAuthentication
             Specifies whether the password provided by the user for
             PasswordAuthentication will be validated through the Kerberos
             KDC.  To use this option, the server needs a Kerberos servtab
             which allows the verification of the KDC's identity.  The default
             is no.
                ^^
	But the code in sshd(8) that fills in default values when
	parsing sshd_config(5) says:

   3015 #if defined(KRB4) || defined(KRB5)
   3016 	if (options->kerberos_authentication == -1)
   3017 		options->kerberos_authentication = 1;
   3018 #endif

	https://nxr.netbsd.org/xref/src/crypto/external/bsd/openssh/dist/readconf.c?r=1.53#3015

	I suspect the code is correct and the man page is wrong:
	KerberosAuthentication is on by default.

	But I think this is a bad default and we should fix the code to
	match the man page, not the other way around, so that
	KerberosAuthentication is off by default.

	What `KerberosAuthentication' is not using Kerberos properly --
	it's just having the client send its password to the server so
	the server can verify the password by trying to get and verify
	Kerberos tickets with it.  This isn't just an idle distinction
	without a difference: it creates needless risks by copying the
	user's password to hosts that should never need to know
	anything about it, and having users type in their passwords
	over and over again instead of using single-sign-on.  So we
	should really discourage its use.

	(We should also audit whether the docs and the code agree on
	the defaults of all the other options too; I just happened to
	be looking at this one.)

>How-To-Repeat:

	code/docs inspection

>Fix:

	Change the code to default off.




Home | Main Index | Thread Index | Old Index