NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/61100: openssh: various nonstandard krb5 issues
>Number: 61100
>Category: bin
>Synopsis: openssh: various nonstandard krb5 issues
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 01 08:45:00 +0000 2026
>Originator: Taylor R Campbell
>Release: current, 11, 10, ...
>Organization:
The OpenSSH Kerberization, Inc.
>Environment:
>Description:
We have local patches for a `KerberosAuthentication' option in
ssh(1) and sshd(8). This enables two different things:
- Authenticating a client by having the client furnish a ticket
for host/${hostname}@${REALM} that the server verifies with
its service key if available.
This is roughly the intended way to use Kerberos, except it
uses the somewhat obscure `kerberos-2%ssh.com@localhost' framing
instead of standard `gssapi-with-mic' framing of RFC 4462 and
doesn't support, e.g., GSSAPIDelegateCredentials. It was
implemented in upstream openssh in May 2003, and then deleted
in August 2003, but we've kept it around as a local patch
since then.
- Authenticating a client by having the client furnish a
password that the sever verifies by
(a) acquiring a TGT from the KDC with it,
(b) acquiring a ticket for host/${hostname}@${REALM} from the
KDC with it, and
(c) verifying the ticket with the server's service key.
This is NOT the intended way to use Kerberos, but it is a way
to give users a familiar password-based experience that
happens to be backed by Kerberos -- much like pam_krb5(8).
But there are various issues with this.
1. `ssh -G' doesn't dump the krb5-related options on the client
side.
2. The ssh_config(5) man page doesn't mention the krb5-related
options.
3. The server side of kerberos-2%ssh.com@localhost has bitrotted over the
years:
(a) In the openssh-6.2 update in 2013, the logic for
handling AuthenticationMethods broke with
`kerberos-2%ssh.com@localhost' because in some places it is
spelled that way and in other places it is spelled as
`kerberos'.
(b) In the openssh-7.6 merge in 2017, when converting
packet_get_string/cstring to sshpkt_get_string/cstring,
the `string' and `cstring' versions got mixed up.
(c) In the openssh-9.8 import in 2024, the
kerberos-2%ssh.com@localhost method never got added to a new list
of authentication method configs, so it became
impossible to enable.
>How-To-Repeat:
try to use KerberosAuthentication in openssh (and not
GSSAPIAuthentication)
>Fix:
Not entirely sure it was worthwhile but I already have patches
to fix the server side, so might as well...
Home |
Main Index |
Thread Index |
Old Index