Corrupted MAC on input error connecting to SSH server
Symptom
When connecting to a Idira Server running OpenSSH, a "Corrupted MAC on input" error is received before authentication. This issue may be introduced when migrating to a new Operating System, or after recent Operating System patching.
Environment
12.2;12.6;13.0;13.2;14.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PTA;PSMP Target Server: RedHat Enterprise Linux 8 or 9 with OpenSSH Server
Client: Commonly seen with OpenSSH client on Windows OS
Cause
There is a known issue with OpenSSH server packages since Redhat updated the openssh-server package to resolve the terrapin vulnerability, which lead to a compatibility mismatch with the MAC algorithms used by some SSH clients and the Redhat server:
CVE-2023-48795- Red Hat Customer Portal
Resolution
Please refer to CVE-2023-48795- Red Hat Customer Portal and your OS vendor support for guidance for potential solutions on the OpenSSH server.
SSH Client Workarounds:
A common workaround for this issue, particularly when using OpenSSH on Windows, is to specify a MAC algorithm that is compatible with both the client and the server. For example, you can add -m hmac-sha2-512 to your ssh command:
ssh -m hmac-sha2-512 <rest of your ssh command>
If you’re using scp, the parameter is slightly different:
scp -o MACs=hmac-sha2-512 <rest of your scp command>
You can also add something like this to your %USERPROFILE%/.ssh/config file to not have to specify the MAC algorithm each time:
Host yourtarget.local
MACs=hmac-sha2-512