New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
Wow. Some of these bugs are absolutely incredible to see exploited. This one is just sad and makes me lose a lot of faith in musl.
It's not really a musl problem. It's a problem caused by a bunch of different components making assumptions about each other that turned out to be wrong, and an archaic way of storing a password database.
installing openssh server inside container on alpine linux base image is not normal
I have did it in the past
A quick remark: IMO the main factor is that the BSDs (and in particular OpenBSD) are cathedral as opposed to bazaar (linux).
As for simplicity (of code) I don't disagree but want to remark that that to a large degree is depending on "management" (sorry, I don't call the front man of linux a 'leader') both as in capability/intelligence and as in consistency (and possibly in being obsessive). At BSD poettering ("the cancer") would be aggressively laughed out of the room.
2nd remark: I ported some libs myself and am quite confident that the musl guys did not leisurely and carelessly change the openssl code. Any (and every) capable developer with some experience would try hard to keep changes to that code base to the absolutely necessary minimum (both, out of professional respect and disgust).
That's why I have reservations about "musl seems to be the culprit"; rather I'd assume that musl just brought some pestilence to the surface. Just look at the code (linked to above), those changes hint at some serious whoopsie-doopsie in the openssl code (wouldn't be the first one ...).
In case anyone happens to have a link to a (ideally diffed) patch for Alpine/musl I'd appreciate that.
P.S. I just saw @forest's take and gladly notice that he seems to agree with mine, not musl.
Nitpick:
crypt()is a C library function, not OpenSSL's. It's a very old function covered in cruft from the early days of *nix (the days where "wait, maybe accounts should be password-protected" was a novel idea) and its behavior is not well-defined.The changes musl made to it were fine, but the result was that it exposed bugs in their callers.
Thanks! That's even worse and I'm surprised that anyone or anything (relevant) even still uses crypt().
Hehe, matches well with my view, and I'm glad to see musl innocent *g
Hope so, there's a lot to like in musl.
Still not the norm, and if it is like Gitea/Forgejo its also not exploitable because what docker container has a user account with password?
LOL. Yes, it has user account and password. I think it was run on 1.10.x or 1.11.x
Who?
It was mine. I think I still got the volume somewhere
Hehe please don't, I like you to much.
gitea's default sshd config ships with PasswordAuthentication no. So even if you added something, it doesnt matter. Although yes, they did the stupid thing with *
But still no user with a real password set so still not useful at all.
Don't worry, it was my old setup