|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
diff -up openssh-9.8p1/sshd-session.c.xxx openssh-9.8p1/sshd-session.c
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
--- openssh-9.8p1/sshd-session.c.xxx 2024-08-26 13:23:33.071882129 +0200
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
+++ openssh-9.8p1/sshd-session.c 2024-08-26 13:26:02.990528767 +0200
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
@@ -1229,8 +1229,9 @@ main(int ac, char **av)
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
break;
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
}
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
}
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
- if (!have_key)
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
- fatal("internal error: monitor received no hostkeys");
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
+ /* The GSSAPI key exchange can run without a host key */
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
+ if (!have_key && !options.gss_keyex)
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
+ fatal("internal error: monitor received no hostkeys and GSS KEX is not configured");
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
/* Ensure that umask disallows at least group and world write */
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
new_umask = umask(0077) | 0022;
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
@@ -1565,7 +1565,7 @@ do_ssh2_kex(struct ssh *ssh)
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
if (gss && orig)
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
xasprintf(&newstr, "%s,%s", gss, orig);
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
else if (gss)
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
- newstr = gss;
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
+ xasprintf(&newstr, "%s,%s", gss, "kex-strict-s-v00@openssh.com");
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
else if (orig)
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
newstr = orig;
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
@@ -1575,7 +1575,7 @@ do_ssh2_kex(struct ssh *ssh)
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
* host key algorithm we support
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
*/
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
if (gss && (strlen(myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS])) == 0)
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
- myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = "null";
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
+ myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = xstrdup("null");
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
if (newstr)
|
|
![](https://seccdn.libravatar.org/avatar/bf58c36eec674fb2fe8744438582f820d6a15548097263146b8ffabcab17025a?s=16&d=retro) |
78bb33 |
myproposal[PROPOSAL_KEX_ALGS] = newstr;
|