Science & Tech · Cybersecurity · 2 hrs ago

OpenSSH flaw lets long passwords access some musl-based Linux accounts

OpenSSH flaw lets long passwords access some musl-based Linux accounts

A flaw dubbed sshole affects some OpenSSH servers running on Linux systems that use the musl C library, including Alpine Linux.

Attackers can exploit it by entering a password between 257 and 1,024 characters long to access certain accounts marked as unable to accept password logins.

The attack requires specific settings, including password authentication being enabled, PAM being disabled, an account marked with an asterisk, and another account with a valid password hash.

The problem traces to an OpenSSH change from 2016 and how musl handles password-hashing errors.

Some Alpine cloud images may be at risk, because an affected account can have passwordless doas access that could let an attacker become root.

Systems using glibc or PAM authentication are not affected, and no attacks exploiting the flaw have been reported.

Administrators should update OpenSSH or disable SSH password logins until they can install the fix; Alpine has also issued fixed packages.

6 sources

Related

What people are saying

Damien MillerOpenSSH project representative
set PasswordAuthentication=no or disable SSH for these systems IMMEDIATELY
via The Hacker News