NetBSD/src ABLyyM5crypto/external/bsd/openssh/dist ssh-pkcs11.c sntrup4591761.c, crypto/external/bsd/openssh/dist/moduli-gen moduli.2048 moduli.3072

   Import 8.0:

   Security
   ========

   This release contains mitigation for a weakness in the scp(1) tool
   and protocol (CVE-2019-6111): when copying files from a remote system
   to a local directory, scp(1) did not verify that the filenames that
   the server sent matched those requested by the client. This could
   allow a hostile server to create or clobber unexpected local files
   with attacker-controlled content.

   This release adds client-side checking that the filenames sent from
   the server match the command-line request,

   The scp protocol is outdated, inflexible and not readily fixed. We
   recommend the use of more modern protocols like sftp and rsync for
   file transfer instead.

   Potentially-incompatible changes
   ================================

   This release includes a number of changes that may affect existing
   configurations:

    * scp(1): Relating to the above changes to scp(1); the scp protocol
      relies on the remote shell for wildcard expansion, so there is no
      infallible way for the client's wildcard matching to perfectly
      reflect the server's. If there is a difference between client and
      server wildcard expansion, the client may refuse files from the
      server. For this reason, we have provided a new "-T" flag to scp
      that disables these client-side checks at the risk of
      reintroducing the attack described above.

    * sshd(8): Remove support for obsolete "host/port" syntax. Slash-
      separated host/port was added in 2001 as an alternative to
      host:port syntax for the benefit of IPv6 users. These days there
      are establised standards for this like [::1]:22 and the slash
      syntax is easily mistaken for CIDR notation, which OpenSSH
      supports for some things. Remove the slash notation from
      ListenAddress and PermitOpen; bz#2335

   Changes since OpenSSH 7.9
   =========================

   This release is focused on new features and internal refactoring.

   New Features
   ------------

    * ssh(1), ssh-agent(1), ssh-add(1): Add support for ECDSA keys in
      PKCS#11 tokens.

    * ssh(1), sshd(8): Add experimental quantum-computing resistant
      key exchange method, based on a combination of Streamlined NTRU
      Prime 4591^761 and X25519.

    * ssh-keygen(1): Increase the default RSA key size to 3072 bits,
      following NIST Special Publication 800-57's guidance for a
      128-bit equivalent symmetric security level.

    * ssh(1): Allow "PKCS11Provider=none" to override later instances of
      the PKCS11Provider directive in ssh_config; bz#2974

    * sshd(8): Add a log message for situations where a connection is
      dropped for attempting to run a command but a sshd_config
      ForceCommand=internal-sftp restriction is in effect; bz#2960

    * ssh(1): When prompting whether to record a new host key, accept
      the key fingerprint as a synonym for "yes". This allows the user
      to paste a fingerprint obtained out of band at the prompt and
      have the client do the comparison for you.

    * ssh-keygen(1): When signing multiple certificates on a single
      command-line invocation, allow automatically incrementing the
      certificate serial number.

    * scp(1), sftp(1): Accept -J option as an alias to ProxyJump on
      the scp and sftp command-lines.

    * ssh-agent(1), ssh-pkcs11-helper(8), ssh-add(1): Accept "-v"
      command-line flags to increase the verbosity of output; pass
      verbose flags though to subprocesses, such as ssh-pkcs11-helper
      started from ssh-agent.

    * ssh-add(1): Add a "-T" option to allowing testing whether keys in
      an agent are usable by performing a signature and a verification.

    * sftp-server(8): Add a "lsetstat at openssh.com" protocol extension
      that replicates the functionality of the existing SSH2_FXP_SETSTAT
      operation but does not follow symlinks. bz#2067

    * sftp(1): Add "-h" flag to chown/chgrp/chmod commands to request
      they do not follow symlinks.

    * sshd(8): Expose $SSH_CONNECTION in the PAM environment. This makes
      the connection 4-tuple available to PAM modules that wish to use
      it in decision-making. bz#2741

    * sshd(8): Add a ssh_config "Match final" predicate Matches in same
      pass as "Match canonical" but doesn't require hostname
      canonicalisation be enabled. bz#2906

    * sftp(1): Support a prefix of '@' to suppress echo of sftp batch
      commands; bz#2926

    * ssh-keygen(1): When printing certificate contents using
      "ssh-keygen -Lf /path/certificate", include the algorithm that
      the CA used to sign the cert.

   Bugfixes
   --------

    * sshd(8): Fix authentication failures when sshd_config contains
      "AuthenticationMethods any" inside a Match block that overrides
      a more restrictive default.

    * sshd(8): Avoid sending duplicate keepalives when ClientAliveCount
      is enabled.

    * sshd(8): Fix two race conditions related to SIGHUP daemon restart.
      Remnant file descriptors in recently-forked child processes could
      block the parent sshd's attempt to listen(2) to the configured
      addresses. Also, the restarting parent sshd could exit before any
      child processes that were awaiting their re-execution state had
      completed reading it, leaving them in a fallback path.

    * ssh(1): Fix stdout potentially being redirected to /dev/null when
      ProxyCommand=- was in use.

    * sshd(8): Avoid sending SIGPIPE to child processes if they attempt
      to write to stderr after their parent processes have exited;
      bz#2071

    * ssh(1): Fix bad interaction between the ssh_config ConnectTimeout
      and ConnectionAttempts directives - connection attempts after the
      first were ignoring the requested timeout; bz#2918

    * ssh-keyscan(1): Return a non-zero exit status if no keys were
      found; bz#2903

    * scp(1): Sanitize scp filenames to allow UTF-8 characters without
      terminal control sequences;  bz#2434

    * sshd(8): Fix confusion between ClientAliveInterval and time-based
      RekeyLimit that could cause connections to be incorrectly closed.
      bz#2757

    * ssh(1), ssh-add(1): Correct some bugs in PKCS#11 token PIN
      handling at initial token login. The attempt to read the PIN
      could be skipped in some cases, particularly on devices with
      integrated PIN readers. This would lead to an inability to
      retrieve keys from these tokens. bz#2652

    * ssh(1), ssh-add(1): Support keys on PKCS#11 tokens that set the
      CKA_ALWAYS_AUTHENTICATE flag by requring a fresh login after the
      C_SignInit operation. bz#2638

    * ssh(1): Improve documentation for ProxyJump/-J, clarifying that
      local configuration does not apply to jump hosts.

    * ssh-keygen(1): Clarify manual - ssh-keygen -e only writes
      public keys, not private.

    * ssh(1), sshd(8): be more strict in processing protocol banners,
      allowing \r characters only immediately before \n.

    * Various: fix a number of memory leaks, including bz#2942 and
      bz#2938

    * scp(1), sftp(1): fix calculation of initial bandwidth limits.
      Account for bytes written before the timer starts and adjust the
      schedule on which recalculations are performed. Avoids an initial
      burst of traffic and yields more accurate bandwidth limits;
      bz#2927

    * sshd(8): Only consider the ext-info-c extension during the initial
      key eschange. It shouldn't be sent in subsequent ones, but if it
      is present we should ignore it. This prevents sshd from sending a
      SSH_MSG_EXT_INFO for REKEX for buggy these clients. bz#2929

    * ssh-keygen(1): Clarify manual that ssh-keygen -F (find host in
      authorized_keys) and -R (remove host from authorized_keys) options
      may accept either a bare hostname or a [hostname]:port combo.
      bz#2935

    * ssh(1): Don't attempt to connect to empty SSH_AUTH_SOCK; bz#2936

    * sshd(8): Silence error messages when sshd fails to load some of
      the default host keys. Failure to load an explicitly-configured
      hostkey is still an error, and failure to load any host key is
      still fatal. pr/103

    * ssh(1): Redirect stderr of ProxyCommands to /dev/null when ssh is
      started with ControlPersist; prevents random ProxyCommand output
      from interfering with session output.

    * ssh(1): The ssh client was keeping a redundant ssh-agent socket
      (leftover from authentication) around for the life of the
      connection; bz#2912

    * sshd(8): Fix bug in HostbasedAcceptedKeyTypes and
      PubkeyAcceptedKeyTypes options. If only RSA-SHA2 siganture types
      were specified, then authentication would always fail for RSA keys
      as the monitor checks only the base key (not the signature
      algorithm) type against *AcceptedKeyTypes. bz#2746

    * ssh(1): Request correct signature types from ssh-agent when
      certificate keys and RSA-SHA2 signatures are in use.

   Portability
   -----------

    * sshd(8): On Cygwin, run as SYSTEM where possible, using S4U for
      token creation if it supports MsV1_0 S4U Logon.

    * sshd(8): On Cygwin, use custom user/group matching code that
      respects the OS' behaviour of case-insensitive matching.

    * sshd(8): Don't set $MAIL if UsePAM=yes as PAM typically specifies
      the user environment if it's enabled; bz#2937

    * sshd(8) Cygwin: Change service name to cygsshd to avoid collision
      with Microsoft's OpenSSH port.

    * Allow building against OpenSSL -dev (3.x)

    * Fix a number of build problems against version configurations and
      versions of OpenSSL. Including bz#2931 and bz#2921

    * Improve warnings in cygwin service setup. bz#2922

    * Remove hardcoded service name in cygwin setup. bz#2922
VersionDeltaFile
1.1.1.12+1,334-249crypto/external/bsd/openssh/dist/ssh-pkcs11.c
1.1+1,081-0crypto/external/bsd/openssh/dist/sntrup4591761.c
1.1.1.13+397-339crypto/external/bsd/openssh/dist/sshkey.c
1.1.1.22+202-230crypto/external/bsd/openssh/dist/sshd.c
1.1.1.20+233-180crypto/external/bsd/openssh/dist/sshconnect2.c
1.1.1.21+227-165crypto/external/bsd/openssh/dist/clientloop.c
1.1.1.17+221-160crypto/external/bsd/openssh/dist/serverloop.c
1.1.1.18+310-39crypto/external/bsd/openssh/dist/kex.c
1.1.1.22+222-125crypto/external/bsd/openssh/dist/ssh-keygen.c
1.1+331-0crypto/external/bsd/openssh/dist/kexgen.c
1.1.1.15+297-14crypto/external/bsd/openssh/dist/scp.c
1.1.1.18+75-219crypto/external/bsd/openssh/dist/sshconnect.c
1.1.1.18+173-66crypto/external/bsd/openssh/dist/session.c
1.1+217-0crypto/external/bsd/openssh/dist/kexsntrup4591761x25519.c
1.1.1.5+162-51crypto/external/bsd/openssh/dist/kexecdh.c
1.1.1.20+114-90crypto/external/bsd/openssh/dist/monitor.c
1.1.1.6+153-49crypto/external/bsd/openssh/dist/kexdh.c
1.1.1.5+124-58crypto/external/bsd/openssh/dist/kexc25519.c
1.1.1.10+93-86crypto/external/bsd/openssh/dist/moduli-gen/moduli.2048
1.1.1.5+93-75crypto/external/bsd/openssh/dist/ssh_api.c
1.1.1.10+137-28crypto/external/bsd/openssh/dist/ssh-pkcs11-client.c
1.1.1.10+75-80crypto/external/bsd/openssh/dist/moduli-gen/moduli.3072
1.1.1.10+73-69crypto/external/bsd/openssh/dist/moduli-gen/moduli.7680
1.1.1.7+106-36crypto/external/bsd/openssh/dist/PROTOCOL.mux
1.1.1.10+67-71crypto/external/bsd/openssh/dist/moduli-gen/moduli.8192
1.1.1.10+73-65crypto/external/bsd/openssh/dist/moduli-gen/moduli.4096
1.1.1.10+69-65crypto/external/bsd/openssh/dist/moduli-gen/moduli.6144
1.1.1.20+91-43crypto/external/bsd/openssh/dist/ssh.c
1.1.1.15+41-89crypto/external/bsd/openssh/dist/kexgexs.c
1.1.1.10+41-86crypto/external/bsd/openssh/dist/kexgexc.c
1.1.1.12+97-29crypto/external/bsd/openssh/dist/krl.c
1.1.1.15+99-25crypto/external/bsd/openssh/dist/ssh-add.c
1.1.1.20+82-41crypto/external/bsd/openssh/dist/channels.c
1.1.1.17+113-9crypto/external/bsd/openssh/dist/misc.c
1.1.1.18+76-41crypto/external/bsd/openssh/dist/sftp.c
1.1.1.15+68-45crypto/external/bsd/openssh/dist/auth2.c
1.1.1.11+68-33crypto/external/bsd/openssh/dist/ssh-pkcs11-helper.c
1.1.1.19+50-51crypto/external/bsd/openssh/dist/mux.c
1.1.1.19+72-29crypto/external/bsd/openssh/dist/readconf.c
1.1.1.21+58-36crypto/external/bsd/openssh/dist/packet.c
1.1.1.21+57-28crypto/external/bsd/openssh/dist/servconf.c
1.1.1.15+52-31crypto/external/bsd/openssh/dist/kex.h
1.1.1.16+72-7crypto/external/bsd/openssh/dist/sftp-server.c
1.1.1.13+47-31crypto/external/bsd/openssh/dist/dh.c
1.1.1.19+38-37crypto/external/bsd/openssh/dist/ssh.1
1.1.1.21+60-13crypto/external/bsd/openssh/dist/ssh_config.5
1.1.1.5+52-19crypto/external/bsd/openssh/dist/nchan.c
1.1.1.18+54-15crypto/external/bsd/openssh/dist/ssh-keygen.1
1.1.1.4+12-51crypto/external/bsd/openssh/dist/sshbuf-getput-crypto.c
1.1.1.7+26-34crypto/external/bsd/openssh/dist/progressmeter.c
1.1.1.18+47-11crypto/external/bsd/openssh/dist/sftp-client.c
1.1+57-0crypto/external/bsd/openssh/dist/sntrup4591761.sh
1.1.1.14+49-6crypto/external/bsd/openssh/dist/sftp.1
1.1.1.18+27-24crypto/external/bsd/openssh/dist/auth.c
1.1.1.13+35-14crypto/external/bsd/openssh/dist/ssh-rsa.c
1.1.1.14+28-3crypto/external/bsd/openssh/dist/scp.1
1.1.1.5+15-15crypto/external/bsd/openssh/dist/kexgex.c
1.1.1.9+19-9crypto/external/bsd/openssh/dist/ssh-dss.c
1.1.1.17+25-3crypto/external/bsd/openssh/dist/auth2-pubkey.c
1.1.1.5+15-13crypto/external/bsd/openssh/dist/digest-openssl.c
1.1.1.4+25-2crypto/external/bsd/openssh/dist/ssh-pkcs11-helper.8
1.1.1.15+16-9crypto/external/bsd/openssh/dist/myproposal.h
1.1.1.17+9-15crypto/external/bsd/openssh/dist/monitor_wrap.c
1.1.1.18+19-5crypto/external/bsd/openssh/dist/ssh-agent.c
1.1.1.16+14-9crypto/external/bsd/openssh/dist/ssh-keyscan.c
1.1.1.10+20-3crypto/external/bsd/openssh/dist/ssh-add.1
1.1.1.8+17-6crypto/external/bsd/openssh/dist/ssh-ecdsa.c
1.1.1.16+11-11crypto/external/bsd/openssh/dist/auth.h
1.1.1.10+14-7crypto/external/bsd/openssh/dist/moduli.c
1.1.1.5+15-5crypto/external/bsd/openssh/dist/atomicio.c
1.1.1.22+15-4crypto/external/bsd/openssh/dist/sshd_config.5
1.1.1.12+13-6crypto/external/bsd/openssh/dist/auth2-hostbased.c
1.1.1.11+10-8crypto/external/bsd/openssh/dist/cipher.c
1.1.1.3+17-1crypto/external/bsd/openssh/dist/crypto_api.h
1.1.1.5+17-1crypto/external/bsd/openssh/dist/ssh-pkcs11.h
1.1.1.17+10-7crypto/external/bsd/openssh/dist/auth-options.c
1.1.1.7+10-7crypto/external/bsd/openssh/dist/sshbuf.c
1.1.1.9+6-10crypto/external/bsd/openssh/dist/sshconnect.h
1.1.1.4+9-7crypto/external/bsd/openssh/dist/PROTOCOL.krl
1.1.1.14+7-9crypto/external/bsd/openssh/dist/monitor_wrap.h
1.1.1.7+11-4crypto/external/bsd/openssh/dist/readpass.c
1.1.1.18+10-4crypto/external/bsd/openssh/dist/authfile.c
1.1.1.9+8-5crypto/external/bsd/openssh/dist/monitor.h
1.1.1.12+10-2crypto/external/bsd/openssh/dist/misc.h
1.1.1.14+7-5crypto/external/bsd/openssh/dist/authfd.c
1.1.1.16+5-7crypto/external/bsd/openssh/dist/packet.h
1.1.1.12+6-5crypto/external/bsd/openssh/dist/sshkey.h
1.1.1.9+9-1crypto/external/bsd/openssh/dist/match.c
1.1.1.5+1-8crypto/external/bsd/openssh/dist/dispatch.h
1.1.1.16+6-3crypto/external/bsd/openssh/dist/servconf.h
1.1.1.13+8-1crypto/external/bsd/openssh/dist/PROTOCOL
1.1.1.16+4-3crypto/external/bsd/openssh/dist/readconf.h
1.1.1.4+4-3crypto/external/bsd/openssh/dist/OVERVIEW
1.1.1.8+5-1crypto/external/bsd/openssh/dist/ssh.h
1.1.1.8+2-4crypto/external/bsd/openssh/dist/sshbuf.h
1.1.1.10+3-3crypto/external/bsd/openssh/dist/cipher.h
1.1.1.4+4-2crypto/external/bsd/openssh/dist/krl.h
1.1.1.6+3-3crypto/external/bsd/openssh/dist/dispatch.c
1.1.1.8+3-3crypto/external/bsd/openssh/dist/dh.h
1.1.1.6+3-2crypto/external/bsd/openssh/dist/groupaccess.c
1.1.1.8+4-1crypto/external/bsd/openssh/dist/sftp-client.h
1.1.1.13+3-2crypto/external/bsd/openssh/dist/ssh-keysign.c
1.1.1.3+3-1crypto/external/bsd/openssh/dist/atomicio.h
1.1.1.9+2-2crypto/external/bsd/openssh/dist/sftp-common.c
1.1.1.22+2-2crypto/external/bsd/openssh/dist/version.h
1.1.1.8+2-1crypto/external/bsd/openssh/dist/PROTOCOL.certkeys
1.1.1.4+2-1crypto/external/bsd/openssh/dist/progressmeter.h
1.1.1.7+2-1crypto/external/bsd/openssh/dist/session.h
1.1.1.7+2-1crypto/external/bsd/openssh/dist/match.h
1.1.1.15+2-1crypto/external/bsd/openssh/dist/channels.h
1.1.1.8+1-2crypto/external/bsd/openssh/dist/ssh_config
1.1.1.1+0-0crypto/external/bsd/openssh/dist/kexsntrup4591761x25519.c
1.1.1.1+0-0crypto/external/bsd/openssh/dist/kexgen.c
1.1.1.1+0-0crypto/external/bsd/openssh/dist/sntrup4591761.c
1.1.1.1+0-0crypto/external/bsd/openssh/dist/sntrup4591761.sh
+8,813-3,746115 files

UnifiedSplitRaw