OpenSSH Flaw Bypasses Password Locks on Alpine Linux
Original source
OpenSSH flaw lets attackers log into password-disabled Linux accounts
BleepingComputer →A vulnerability in OpenSSH running on musl-based Linux distributions allows attackers to log into accounts explicitly configured to block password logins. The flaw, termed “sshole,” exploits how musl’s crypt() function handles oversized passwords. When a password exceeds 256 bytes, the function returns an asterisk () instead of a hash. Attackers can submit such an oversized password to match the asterisk stored in /etc/shadow for disabled accounts, gaining unauthorized access.
The vulnerability stems from a 2016 OpenSSH patch designed to prevent username enumeration attacks. That fix made OpenSSH perform password hashing even for accounts with no usable password hash, maintaining consistent response times to prevent timing-based attacks. On musl-based systems—including Alpine Linux, OpenWrt, and Buildroot—this approach creates an exploitable condition when combined with musl’s behavior. The attack requires specific conditions: a musl system without PAM authentication, SSH password authentication enabled, and at least one account with an asterisk password hash. Systems using glibc (Debian, Ubuntu, Fedora) are unaffected.
The flaw poses particular risk for cloud deployments, where Alpine Linux’s official AWS and Azure images include a default ‘alpine’ account with password authentication disabled but passwordless ‘doas’ privileges, potentially enabling root access. The vulnerability existed for a decade before discovery through automated testing using AI agents. OpenSSH 10.6p2 contains the fix; administrators should update immediately or disable SSH password authentication as an interim measure.
Read the full article
Continue reading at BleepingComputer →This is an AI-generated summary. Read the original for the full story.