summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-01-01 23:53:30 +0000
committerColin Watson <cjwatson@debian.org>2010-01-01 23:53:30 +0000
commitdf03186a4f9e0c2ece398b5c0571cb6263d7a752 (patch)
tree1aab079441dff9615274769b19f2d734ddf508dd /sshd.c
parent6ad6994c288662fca6949f42bf91fec2aff00bca (diff)
parent99b402ea4c8457b0a3cafff37f5b3410a8dc6476 (diff)
* New upstream release (closes: #536182). Yes, I know 5.3p1 has been out
for a while, but there's no GSSAPI patch available for it yet. - Change the default cipher order to prefer the AES CTR modes and the revised "arcfour256" mode to CBC mode ciphers that are susceptible to CPNI-957037 "Plaintext Recovery Attack Against SSH". - Add countermeasures to mitigate CPNI-957037-style attacks against the SSH protocol's use of CBC-mode ciphers. Upon detection of an invalid packet length or Message Authentication Code, ssh/sshd will continue reading up to the maximum supported packet length rather than immediately terminating the connection. This eliminates most of the known differences in behaviour that leaked information about the plaintext of injected data which formed the basis of this attack (closes: #506115, LP: #379329). - ForceCommand directive now accepts commandline arguments for the internal-sftp server (closes: #524423, LP: #362511). - Add AllowAgentForwarding to available Match keywords list (closes: #540623). - Make ssh(1) send the correct channel number for SSH2_MSG_CHANNEL_SUCCESS and SSH2_MSG_CHANNEL_FAILURE messages to avoid triggering 'Non-public channel' error messages on sshd(8) in openssh-5.1. - Avoid printing 'Non-public channel' warnings in sshd(8), since the ssh(1) has sent incorrect channel numbers since ~2004 (this reverts a behaviour introduced in openssh-5.1; closes: #496017). * Update to GSSAPI patch from http://www.sxw.org.uk/computing/patches/openssh-5.2p1-gsskex-all-20090726.patch, including cascading credentials support (LP: #416958).
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sshd.c b/sshd.c
index 9e03cf3ef..f61d79ec7 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.364 2008/07/10 18:08:11 markus Exp $ */ 1/* $OpenBSD: sshd.c,v 1.366 2009/01/22 10:02:34 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -117,7 +117,6 @@
117#include "ssh-gss.h" 117#include "ssh-gss.h"
118#endif 118#endif
119#include "monitor_wrap.h" 119#include "monitor_wrap.h"
120#include "monitor_fdpass.h"
121#include "version.h" 120#include "version.h"
122 121
123#ifdef USE_SECURITY_SESSION_API 122#ifdef USE_SECURITY_SESSION_API
@@ -1373,7 +1372,7 @@ main(int ac, char **av)
1373 exit(1); 1372 exit(1);
1374 } 1373 }
1375 options.ports[options.num_ports++] = a2port(optarg); 1374 options.ports[options.num_ports++] = a2port(optarg);
1376 if (options.ports[options.num_ports-1] == 0) { 1375 if (options.ports[options.num_ports-1] <= 0) {
1377 fprintf(stderr, "Bad port number.\n"); 1376 fprintf(stderr, "Bad port number.\n");
1378 exit(1); 1377 exit(1);
1379 } 1378 }
@@ -2354,9 +2353,11 @@ do_ssh2_kex(void)
2354 kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; 2353 kex->kex[KEX_DH_GEX_SHA1] = kexgex_server;
2355 kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; 2354 kex->kex[KEX_DH_GEX_SHA256] = kexgex_server;
2356#ifdef GSSAPI 2355#ifdef GSSAPI
2357 kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_server; 2356 if (options.gss_keyex) {
2358 kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_server; 2357 kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_server;
2359 kex->kex[KEX_GSS_GEX_SHA1] = kexgss_server; 2358 kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_server;
2359 kex->kex[KEX_GSS_GEX_SHA1] = kexgss_server;
2360 }
2360#endif 2361#endif
2361 kex->server = 1; 2362 kex->server = 1;
2362 kex->client_version_string=client_version_string; 2363 kex->client_version_string=client_version_string;