Meet *sshole: SSH Bug Grants Passwordless Access to Some Linux Systems

A decade-old vulnerability is allowing attackers to log into certain Linux devices over SSH without knowing any password. The flaw, dubbed *sshole, affects some configurations of Alpine Linux and potentially other distributions. It arises from the interaction between OpenSSH and musl, a lightweight alternative to the standard libc library used by Alpine, when OpenSSH is not using the PAM authentication framework.

Successful exploitation requires several conditions: a system must have an active user account whose password is hashed with SHA256 or SHA512, and that account must be passwordless, marked with a "*" in the /etc/shadow file. Passwordless accounts are commonly used for certificate-based authentication. When these conditions are met, an attacker can gain access simply by entering more than 256 characters in the password field, no retries needed.

Alpine maintainers warn the consequences are severe: anyone who can reach the SSH port can log in with a single connection. Security firm Check Point confirmed the hashing requirement matters because sshd borrows the account's salt, and testing showed the account must be active. Root accounts are safe under the default PermitRootLogin setting.

Read More at the original source →