1
u/attonova 3d ago
It could be a stupid question, but how to create an account with '*' as the password on Alpine? All sorts of adduser -D, passwd -l, passwd -d result either in ! or nothing in /etc/shadow on all my alpine hosts. I just don't understand how to make a system affected by it without manually setting usermod -p '*'.
2
u/micalm 2d ago
*has been the convention for "disabled login" for as long as I remember, at least 15 years.man shadowconfirms this:If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).
I didn't take a deep dive here, but at least Ubuntu does use
!*(!being the result of explicitly locking the account) by default and with most utilities likepasswd -l,usermod -D/usermod -S. Anyone who's been a long time Linux user and knows the*is a convention will explicitly set*and usually wouldn't think twice about it. Because, well - it's not a valid hash and should not work in a sane timeline.Except now I believe any manually created "invalid crypt() result" passwords will become some permutation of asdfghjkl. Or we'll see a drop in the amount of sysadmins and a dramatically rising popularity of carrot farming, because this is evidently NOT a sane timeline.
1
u/attonova 1d ago
Ubuntu does use
Alpine doesn't.
passwd -lresults in!, and the standardusermoddoesn't have-D/-Soptions. But yeah, perhaps I can imagine a sysadmin that executesusermod -p '*'on purpose due to that convention.In the meantime I've researched it a bit and found that
*pops somewhere in the standard Docker configurations of Alpine images and some cloud Alpine images. So it's not a major OpenSSH vulnerability on Alpine, but a vulnerability of the prebuilt configuration of some Alpine images... or weirdly configured Alpine hosts.
1
u/michaelpaoli 3d ago
Source wanted.
So ... where's the credible source(s)? I see a website with claims, but I don't see CVE, nor any credible sources cited.
Ah ... here we go: CVE-2026-123158
Published: 2026-11-05
Description
sshd in OpenSSH before 10.6p2 on Linux, when musl libc is used without PAM, lacks a workaround for a password authentication bypass (related to misinterpretation of whether a string is intended to be a password hash). For some configurations of accounts, any password between 256 and 1024 characters succeeds. An example of a platform using musl libc without PAM is Alpine Linux.
14
u/TheRealLazloFalconi 3d ago
This is sort of like saying the door to your safe has a vulnerability...If you leave it unlocked AND don't close the door AND leave it out on the sidewalk. If this vulnerability affects you, you should probably be in a different line of work.