CVE Tools

OpenSSH flaw lets attackers log into password-disabled Linux accounts

BleepingComputerBy Lawrence Abrams

Our summary

Researcher Ozgun Kultekin has disclosed a bug nicknamed "*sshole" affecting OpenSSH deployments on Linux systems that rely on the musl C library, such as Alpine Linux, OpenWrt, Buildroot and Yocto. A 2016 OpenSSH change made to close the username-enumeration issue CVE-2016-6210 interacts badly with musl's crypt() function, which also returns an asterisk when hashing fails or when a submitted password is longer than 256 bytes. As a result, submitting an oversized password can make OpenSSH match it against accounts whose password field is deliberately set to * to disable password login, granting access. Exploitation needs PAM disabled, SSH password authentication enabled, and both a *-locked account and one with a valid hash present — conditions met by default in Alpine's official AWS and Azure images, where the 'alpine' account has passwordless 'doas' rights that could lead to root compromise; glibc-based distros like Debian, Ubuntu and Fedora are unaffected. The issue is fixed in OpenSSH 10.6p2, and Alpine admins should run apk upgrade openssh or disable password authentication as a temporary mitigation.

Read at BleepingComputer

BleepingComputer publishes this story on its own site; we link to it rather than reprint it.

Worried this affects your company?

Discuss a security assessment of your internet-facing systems. Scope agreed before testing.

Check my exposure