Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


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.

Critical security vulnerability affects OpenSSH on Alpine Linux systems

2»

Comments

  • slowserversslowservers Member, Host Rep

    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.

  • @slowservers said:

    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.

  • @Mynymbox said:
    Alpine Linux is widely used for Docker deployments

    installing openssh server inside container on alpine linux base image is not normal

    Thanked by 1tentor
  • rpqurpqu Member
    edited November 6

    @ScreenReader said:

    @Mynymbox said:
    Alpine Linux is widely used for Docker deployments

    installing openssh server inside container on alpine linux base image is not normal

    I have did it in the past

  • jsgjsg Member, Resident Benchmarker
    edited November 6

    @stable_genius said:

    @tentor said:
    But did you compare proactiveness/reactiveness of vulnerabilities discovery between glibc/musl and code complexity difference (attack surface size) to normalize the proactiveness/reactiveness ratio?

    Without evidence, both of us are just sharing opinions.

    ...
    Code complexity gives an important contribution to the number of vulnerabilities but code quality is also important. Higher resources and scrutiny elevates code quality. I love code simplicity, code simplicity seems to be the main reason OpenBSD has fewer vulnerabilities, lighter scrutiny also plays a role in that.

    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.

    Thanked by 1stable_genius
  • forestforest Member
    edited November 6

    @jsg said: 2nd remark: I ported some libs myself and am quite confident that the musl guys did not leisurely and carelessly change the openssl code.

    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.

    Thanked by 1stable_genius
  • jsgjsg Member, Resident Benchmarker

    @forest said:

    @jsg said: 2nd remark: I ported some libs myself and am quite confident that the musl guys did not leisurely and carelessly change the openssl code.

    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.

    Thanks! That's even worse and I'm surprised that anyone or anything (relevant) even still uses crypt().

    The changes musl made to it were fine, but the result was that it exposed bugs in their callers.

    Hehe, matches well with my view, and I'm glad to see musl innocent *g

    Thanked by 2forest stable_genius
  • @jsg said:
    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.

    Thanked by 1jsg
  • kaitkait Member

    @rpqu said:

    @ScreenReader said:

    @Mynymbox said:
    Alpine Linux is widely used for Docker deployments

    installing openssh server inside container on alpine linux base image is not normal

    I have did it in the past

    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?

  • rpqurpqu Member

    @kait said:

    @rpqu said:

    @ScreenReader said:

    @Mynymbox said:
    Alpine Linux is widely used for Docker deployments

    installing openssh server inside container on alpine linux base image is not normal

    I have did it in the past

    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

  • kaitkait Member

    @rpqu said:

    @kait said:

    @rpqu said:

    @ScreenReader said:

    @Mynymbox said:
    Alpine Linux is widely used for Docker deployments

    installing openssh server inside container on alpine linux base image is not normal

    I have did it in the past

    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?

  • rpqurpqu Member

    @kait said:

    @rpqu said:

    @kait said:

    @rpqu said:

    @ScreenReader said:

    @Mynymbox said:
    Alpine Linux is widely used for Docker deployments

    installing openssh server inside container on alpine linux base image is not normal

    I have did it in the past

    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

  • kaitkait Member

    @rpqu said:

    @kait said:

    @rpqu said:

    @kait said:

    @rpqu said:

    @ScreenReader said:

    @Mynymbox said:
    Alpine Linux is widely used for Docker deployments

    installing openssh server inside container on alpine linux base image is not normal

    I have did it in the past

    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.

  • @rpqu said:

    @kait said:

    @rpqu said:

    @ScreenReader said:

    @Mynymbox said:
    Alpine Linux is widely used for Docker deployments

    installing openssh server inside container on alpine linux base image is not normal

    I have did it in the past

    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

    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 *

  • kaitkait Member

    @Mainfrezzer said: they did the stupid thing with *

    But still no user with a real password set so still not useful at all.

  • rpqurpqu Member

    @kait said:

    @rpqu said:

    @kait said:

    @rpqu said:

    @kait said:

    @rpqu said:

    @ScreenReader said:

    @Mynymbox said:
    Alpine Linux is widely used for Docker deployments

    installing openssh server inside container on alpine linux base image is not normal

    I have did it in the past

    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.

    Don't worry, it was my old setup

Sign In or Register to comment.