News for hackers. Stuff that matters.
Re:Sshole by amluto on Thursday November 05, 2026 @05:47PM (#50385611)
Caveat:

> $ret = crypt($pw, $hash); $ret == $hash

musl is actually safe against this use. OpenSSL takes a bizarre code path, detects that $hash is too short, calls crypt($pw, $other_string), forgets that it detected that the hash was too short, and checks $hash == return value.

See my other comment.

Re:Sshole by mpyne on Thursday November 05, 2026 @08:54PM (#50387174)
I did note that musl would normally work just fine here. Though I appreciate that your other comment goes into much better detail about what was actually going on in the code, as my analysis basically stopped once I understood the high-level flow of what was going on.
Re:Sshole by __david__ on Friday November 06, 2026 @03:45AM (#50389756)
Except OpenSSH qould have worked just fine if musl behaved correctly. Instead musl ignored the spec and tried to hack around badly written programs but ended up creating a security hole in a correctly written one!