A decade-old vulnerability, sshole, has been discovered in some configurations of Alpine Linux, and possibly other systems, allowing attackers to log into devices with no password. The conditions are stringent: a system must have a passworded account and a passwordless account, with specific hashing functions in place. Once exploited, an attacker can gain access in a single connection, rendering traditional password protection ineffective.
The vulnerability lies in the interaction between OpenSSH and musl, a lightweight alternative to the standard libc. For successful exploitation, OpenSSH must not use PAM, and the system must be configured to allow passwordless logins via certificate-based authentication. Security firm Checkpoint emphasizes the importance of the hashing functions, stating that without them, the attack fails.
Alpine maintainers warn that reaching the SSH port can lead to seamless login, with no need for retries. This means that once an attacker gains access, they can input more than 256 characters in the password field to log in. Root accounts are safe under default settings, but other accounts with sudo rights can still pose a threat. This discovery underscores the ongoing challenges in maintaining robust security in a digital age.







