Running Alpine? You sure? Are your containers running Alpine? If so, pretty good chance anyone can log in via SSH.

  • smiletolerantly@awful.systemsOP
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 hours ago

    No, \* is being put as a hash of a password, originally precisely because that would mean no actual hash (over any input) ever matches it.

    • irotsoma@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 hours ago

      Ah got it, so is that a hack to prevent a specific user from logging in rather than something like:

      Match User <username> PasswordAuthentication no

      • SteveTech@aussie.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 hour ago

        Nah the hash function gives up after 256 bytes and outputs *, matching the ‘hash’.

        Edit: it’s unix tradition to put * as the hash for system accounts that should never be able to be logged in, this bug now means you can login (with the right config), using any password longer than 256 characters.

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

          But how is that better than just disabling a user’s ability to log in with a password through the normal notation I mentioned? Just not sure why that was used at all. Is it something that some installer or distribution does by default? Why would that be used?