Summary
SSH transport protocol with specific OpenSSH extensions (AsyncSSH) that are version 9.6 or less are susceptible to CVE-2023-48795 (CVSS 3.1: 5.9) Terrapin attacks. After performing a MiTM attack, remote attackers are able to then intercept and spy on communications and spoof the identity of both the recipient and the sender.
Secure Shell Protocol (SSH) is the new standard for remote login and file transfers within organizations. Currently there is an attack which requires a man-in-the-middle attack in order for the Terrapin attack to be attempted.
Impact Assessment
This vulnerability is only possible if there is an available active adversary-in-the-middle position for the connection. For SSH, this seemed difficult to take advantage of, but it is possible with the Terrapin attack. For this attack to be possible, the SSH server’s must be secured by “ChaCha20-Poly1305” or “CBC with Encrypt-then-Mac” methods. After it successfully alters or corrupts at the beginning of the 3-way-handshake that is used before establishing a secure connection. After it goes for the Binary Packet Protocol, it uses a prefix truncation to attack.
Affected software
OpenSSH before 9.6
See this NVD article for all other associated software which use OpenSSH extensions.
What it means for you
If you use AsyncSSH, you should prioritize updating it as quickly as possible. It should still be updated if you are not using those two methods as it does not hurt to be on the latest version.
Review the software and figure out which of the software in the list are common and follow procedure
Remediation
To find vulnerable installations of OpenSSH instances, follow the link provided. This will supply a full list of vulnerable instances to this vulnerability.
Link to Terrapin website providing list of affected applications and patches.
Business Implications
This vulnerability can lead to the attacker being able to control the remote end by injecting or removing packets. This can blead to exfiltrating data, control machines, lateral movements if possible, installing malware where it leads to data loss and monetary loss.
Access Point Technology Recommends
Patch: Review the followings patches that are affected by the Terrapin attack. This requires both the sender and recipient to have the latest version or else it falls back to the vulnerable version.
Harden network: The use of X.509 certificates or shared secret values from the server to deny the act of a man-in-the-middle attack.
Harden endpoints: Implement Last Privilege Access policies in the organization to limit the damage that can happen by attacking that compromise the account.
Associated Bulletins
https://nvd.nist.gov/vuln/detail/CVE-2023-48795
https://terrapin-attack.com/