with ubuntu:24.04:
crypt() returned: *1
with ubuntu:24.04:
crypt() returned: *1
fedora:
crypt() returned: NULL
macOS:
crypt() returned: *0HDTuSCs5FOM
FreeBSD 15.0-RELEASE:
crypt() returned: *0HDTuSCs5FOM
Huh, so the website of the vulnerability is wrong then. It said Ubuntu returned *0.
But I stand by my previous statement putting these strings into /etc/shadows is still a good way to plant a stealthy backdoor.
@agowa338 not sure what version of ubuntu they used
Ups my bad, they said debian not ubuntu.
Referring to what they wrote on their website btw https://sshhole.com/
@ncopa As such if you happened to use "*1" as your "no password access" field in the shadow file (or if a utility trying to set a password put it there by not realizing it was an error code), the OpenSSH vuln would be present even on glibc.
@dalias yeah but I doubt anybody does that
@ncopa Someone should probably check what the passwd utility does on inputs that are supposed to be an error. That's the main vector where I can imagine it getting there.
@dalias @ncopa Solar Designer told me (almost ten years ago, it might be a good idea to recheck) that he picked `*1` as the "failure token" used by OpenWall's libcrypt (which is the origin of most of the code that became libxcrypt) specifically because it was known never to have been used as a special marker in either /etc/passwd or /etc/shadow.