The new version of OpenSSH 8.8 has already been released and this new version stands out for disabling by default the ability to use digital signatures based on RSA keys with a SHA-1 hash ("ssh-rsa").
The end of support for "ssh-rsa" signatures is due to the increased effectiveness of collision attacks with a given prefix (the cost of guessing the collision is estimated at around $50). To test the use of ssh-rsa on a system, you can try to connect via SSH with the option "-oHostKeyAlgorithms=-ssh-rsa".
Furthermore, support for RSA signatures with SHA-256 and SHA-512 hashes (rsa-sha2-256/512), which have been supported since OpenSSH 7.2, remains unchanged. In most cases, the end of support for "ssh-rsa" will not require any manual action from users, as the UpdateHostKeys setting was previously enabled by default in OpenSSH, which automatically migrates clients to more reliable algorithms.
This version disables RSA signatures using the SHA-1 hash algorithm by default. This change was made because the SHA-1 hash algorithm is cryptographically broken, and it is possible to create hash collisions of the chosen prefix for less than $50 USD. [1]
For most users, this change should be invisible, and there's no need to replace ssh-rsa keys. OpenSSH supports RFC8332 RSA/SHA-256/512 signatures from version 7.2 onwards, and existing ssh-rsa keys will automatically use the strongest algorithm whenever possible.
For migration, the protocol extension " [email protected] " is used, which allows the server, after authentication, to inform the client about all available host keys. When connecting to hosts with very old versions of OpenSSH on the client side, you can selectively revert the ability to use "ssh-rsa" signatures by adding ~/.ssh/config
The new version also fixes a security issue caused by sshd, since OpenSSH 6.2 , incorrectly initializing the user group when executing commands specified in the AuthorizedKeysCommand and AuthorizedPrincipalsCommand directives.
These directives should ensure that the commands are run under a different user, but in fact they inherited the list of groups used when starting sshd. Potentially, this behavior, given certain system configurations, allowed the running controller to gain additional privileges on the system.
The release notes also include a warning about the intention to change the default scp utility to use SFTP instead of the legacy SCP/RCP protocol. SFTP uses more predictable method names, and it uses unprocessed global patterns in filenames through the shell on the other host, which creates security issues.
In particular, when using SCP and RCP, the server decides which files and directories to send to the client, and the client only checks the correctness of the returned object names, which, in the absence of proper checks on the client side , allows the server to transmit other file names that differ from those requested.
SFTP lacks these problems, but does not support the expansion of special routes such as "~ /". To address this difference, in the previous version of OpenSSH, a new SFTP extension was proposed in the SFTP server implementation to expose the ~ / and ~ user / paths.
Finally, if you are interested in learning more about this new version, you can find the details by following this link.
How to install OpenSSH 8.8 on Linux?
For those interested in installing this new version of OpenSSH on their systems, for now they can do so by downloading the source code and compiling it on their computers.
This is because the new version has not yet been included in the repositories of major Linux distributions. To obtain the source code, you can use the following link.
Once the download is complete, we will now decompress the package with the following command:
tar -xvf openssh-8.8.tar.gz
We enter the created directory:
cd openssh-8.8
And we can perform the compilation with the following commands:
./configure --prefix=/opt --sysconfdir=/etc/ssh make make install