are you affected?

  • is your sshd running on musl? (alpine, openwrt, buildroot, yocto)
  • is it not using pam? alpine’s openssh-server doesn’t by default, or maybe you set UsePAM no
  • are password logins still on? they are by default
  • is there an account with just * as its password? key-only users, ldap users, root on alpine
  • and some other account with a real password?
  • then that * account takes any password between 257 and 1024 characters

on alpine’s official aws and azure images that’s the default alpine user, and it has passwordless doas. so it’s root

on debian, ubuntu, fedora or anything else with glibc? going through pam? dropbear? openbsd? you’re fine

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    4
    ·
    22 minutes ago

    This isn’t nearly as bad as I thought it was. Also the author is very reliant on AI to the point where they didn’t think about what if someone wipes the logs.

    Any effected devices should be wiped and redeployed

  • Orygin@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    7
    ·
    58 minutes ago

    OP I know you’re trying to do good, but please try to understand the vulnerability before spreading FUD

    • smiletolerantly@awful.systemsOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      28 minutes ago

      Yeah fair, sorry about that. The intro + where I originally learned this from made me overreact a bit, it seems.

  • Guiorgy@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    19 minutes ago

    How is crashing on an unhandled path in a security context not better?!

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    7
    ·
    60 minutes ago

    did you get hacked? check.

    $ grep “Accepted password” /var/log/messages

    That’s a really bad check unless you have an external box receiving logs and you’re looking there, because the first thing that a sophisticated attacker is going to do if they get in as root is remove the signs of their presence.

  • irotsoma@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 minutes ago

    People use * as an account password, or sysadmins allow that? I’d never allow that on any system or service of mine. No surprise, like most of these LLM discovered issues in the media lately, it hasn’t come up before. 💯 Good they’re getting fixed, but nothing so far has really been that urgent to fix for me.

    • lemmyvore@feddit.nl
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 minutes ago

      Unless it’s explicitly installed no. The default Alpine image doesn’t come with OpenSSH.

  • Venia Silente@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 hour ago

    If I’m running containers on Alpine, doesn’t that mean that they already don’t offer SSH (sshd)? The entire point of Alpine as a base is to not add stuff you don’t need.

  • FiredFloridaCop@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 hour ago

    I’m no cybersecurity expert, but from what I’ve heard from those who are, this is the new normal as anyone who formerly had no chance due to being a “script kiddie” can now just prompt an AI to “hack this system” and eventually find a vulnerability.

    • colourlesspony@pawb.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      20 minutes ago

      Yep, those new fangled slop-kitties. The worst part is that there brute force hacking is being subsidized by people 401ks.

      • FiredFloridaCop@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 minutes ago

        The irony - of course - is that their 401k money goes right into hacking those same people’s 401ks.

        … but at least we can brainrot an entire generation with glass fruit slices and put artists out of work?

        Now if you’ll excuse me, I have to go convince someone that the TikTok deepfakes they’re watching aren’t real and that cops don’t really employ nanny-boo-boos to unsettle criminals during interrogations. No, I’m not joking.

    • lemmyvore@feddit.nl
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 minutes ago

      It’s not quite as simple as that. The author in this case followed a pretty specific trail to find the bug.

      Where AI helped was as the last step. They already knew what the bug would do and where to look, but actually looking through the source code for all the possible musl implementations out there would have taken a lot of time.

      So they brute-forced it instead and asked AI to spin up actual running instances of all those implementations and simply tried the bug against each of them, rather than looking at all the code.

  • [object Object]@lemmy.ca
    link
    fedilink
    English
    arrow-up
    31
    arrow-down
    2
    ·
    2 hours ago

    Jesus Christ. Why?! How?

    Edit: I can’t figure out how to upload gifs to Lemmy… please imagine castle-nathan.gif

    • Vittelius@feddit.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 minutes ago

      I can’t figure out how to upload gifs to Lemmy…

      ![alt text - optional, you can keep this empty, but you need the brackets](https://website.tld/castle-nathan.gif)

    • NoLemurs@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      36 minutes ago

      castle-nathan.gif

      I don’t know why, but I always assumed that image was from Firefly. It’s the same color shirt and everything!

  • tenchiken@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 hour ago

    Everything behind a good firewall and proxy.

    No public facing url should ever not be proxied.

    Only ports you explicitly forward. Ever.

  • ComradeMiao@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    2
    ·
    59 minutes ago

    Why would a local server even have open internet access though?

    This alerts feel more relevant for public facing servers.

  • InnerScientist@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    48 minutes ago

    The only container i have that has a reachable SSH port is forgejo, and even then it’s only local traffic and i’d have to check if it even uses alpine. All others also don’t have SSH enabled.

    The vulnerability doesn’t seem too bad tbh.

  • tofu@lemmy.nocturnal.garden
    link
    fedilink
    English
    arrow-up
    19
    ·
    2 hours ago

    I mean, not that it’s not severe, but which container images have ssh baked in? If you’re using good stripped down images, you’re fine here.

    Not sure where the overlap is between"ssh is enabled" and “one of those OSes”. LXCs maybe?

  • tapdattl@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    ·
    2 hours ago

    I’m assuming this is only if you allow password authentication? If you’re only allowing certificate based auth you should be safe, right?

      • smiletolerantly@awful.systemsOP
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        11
        ·
        edit-2
        26 minutes ago

        NO! Exactly the opposite, that is the problem. Key-only is a prerequisite for this.

        Edit: see also, the first thing that pops up under the link.

        I was wrong, see below.

        • AHemlocksLie@lemmy.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          20 minutes ago

          The “are you affected?” section directly contradicts this. It outright states you must have password authentication enabled. Otherwise, SSH never gives you a chance to even attempt a password.

        • HelloRoot@lemy.lol
          link
          fedilink
          English
          arrow-up
          0
          ·
          44 minutes ago

          Bottom of the page says what to do and gives 2 options to mitigate:

          # update. openssh 10.6p2 fixes it.
          $ apk upgrade openssh
          
          # can't update yet? turn password logins off.
          $ echo "PasswordAuthentication no" > /etc/ssh/sshd_config.d/00-no-passwords.conf
          $ rc-service sshd restart
          

          So if you disable password auth and only allow key auth, then you are unaffected (safe).

          The introis a bit confusing but it means that if you have password auth on - then even if your regular ssh login requires a key, you are not safe.

    • smiletolerantly@awful.systemsOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      10
      ·
      edit-2
      26 minutes ago

      NO! Exactly the opposite, that is the problem. Key-only is a prerequisite for this.

      Edit: see also, the first thing that pops up under the link.

      I was wrong, see below.

      • cecilkorik@piefed.ca
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 hour ago

        I think there is some confusion and potential for misinformation here. SSH in key-only mode (common configuration) protects you from this problem, because it never accepts or even attempts any passwords at all, regardless of length. SSH in password-allowed mode with at least one user who might be a key-only USER by merit of having a password hash of “*” (not a valid password hash) is a prerequisite for this. That is a very different and very common thing, as most systems come with at least one key-only user by default. But gaining access to that user with an incorrect, invalid password still requires having passwords enabled at all.

        To be clear: Password access enabled is a prerequisite, and by extension, password access disabled (key-only) prevents this.

        The website you linked clearly defines that all of these conditions must be true for you to be vulnerable, and as far as I can tell, it is exactly correct:

        is your sshd running on musl? (alpine, openwrt, buildroot, yocto)
        is it not using pam? alpine’s openssh-server doesn’t by default, or maybe you set UsePAM no
        are password logins still on? they are by default
        is there an account with just * as its password? key-only users, ldap users, root on alpine
        and some other account with a real password?

        then that * account takes any password between 257 and 1024 characters

        The * account which they suggest potentially being “key only” is the prerequisite you are talking about, but having SSH itself key-only (which is best practice anyway) prevents the attack entirely.

      • DrakiaXYZ@lemmy.ca
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 hour ago

        The linked article literally says you need password login enabled at the ssh level. The account however needs to not have a password set

  • Err(()).unwrap()@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    3
    ·
    2 hours ago

    That website is atrocious. It’s the web design equivalent of shoving five kilograms of sugar and whipped cream in a cup of coffee.

      • Err(()).unwrap()@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        53 minutes ago

        Yes, it was a stroke of genius to label their mediocre confectionery as “coffee”, although it can lead to near fatalities when someone who’s only ever had Starbucks encounters real coffee for the first time.

        Still, my point stands. That website is like 20% useful content, 40% flair, and 40% wasted space.