Tech News
← Home  ·  All topics

Crypt Function

1 GoKawiil brief on this topic

Musl libc and sshd flaw lets unauthenticated users gain root shell on Alpine-based systems

A vulnerability was found stemming from musl libc's crypt function returning the sentinel string "*" when a password is too long to hash, which collides with the Unix convention that "*" denotes a locked account. Because sshd hashes login attempts for locked accounts to prevent timing attacks, this collision allows an unauthenticated user to obtain a shell—potentially as root—on musl-based systems lacking PAM, such as the official Alpine AWS image.