Passwordless SSH access possible on Alpine Linux systems
Original source
Meet *sshole, the vulnerability that lets hackers SSH into Linux devices
Ars Technica →Alpine Linux and potentially other distributions using OpenSSH with musl but without PAM are vulnerable to unauthorized SSH access without credentials. The vulnerability arises from the interaction between OpenSSH and musl, a lightweight alternative to the standard libc library. A successful attack requires only a single connection and works reliably without retries.
The exploit succeeds only when specific conditions are met: the target must have at least one user account with a password hashed using SHA256 or SHA512, and that account must be configured as passwordless (marked with ”*” in /etc/shadow). Passwordless accounts are commonly used for certificate-based authentication. When these conditions align, an attacker can bypass authentication by supplying more than 256 characters in the password field.
The attack’s success depends on OpenSSH borrowing the account’s cryptographic salt from the SHA256 or SHA512 hash; without it, exploitation fails. The compromised account must be active. Default root restrictions protect root accounts, but accounts with doas or sudo privileges can be exploited to gain elevated access.
Read the full article
Continue reading at Ars Technica →This is an AI-generated summary. Read the original for the full story.