• asap@lemmy.world
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    3
    ·
    edit-2
    18 hours ago

    The vuln is specifically for key-based accounts:

    Second, the target system account must be configured to be passwordless. Passwordless accounts are commonly used for accounts that use certificate-based authentication.

    • dan@upvote.au
      link
      fedilink
      English
      arrow-up
      11
      ·
      16 hours ago

      “passwordless” here means that the account doesn’t have a password. What the person you’re replying to means is that password authentication should be completely disabled in the SSH config, as that’s the only way to exploit this issue.

    • AHemlocksLie@lemmy.zip
      link
      fedilink
      English
      arrow-up
      16
      arrow-down
      1
      ·
      18 hours ago

      But passwords need to be enabled for SSH. You must submit a faulty password of a specific kind, and the SSH server misinterprets it for passwordless accounts, which means the server must be configured to allow you to attempt a password.

    • realitaetsverlust@piefed.zip
      link
      fedilink
      English
      arrow-up
      5
      ·
      16 hours ago

      When logging into a passwordless account, the attacker can gain access by inputting more than 256 characters in the password field.

      If you disable passwords in SSH, there is no password field. There is no way for you to input anything. The connection will just be refused as the only auth method is an ssh key. If there is no matching key, SSH will refuse the connection.

      If you don’t do that, the daemon will fall back to a password, which might then be vulnerable. However, no sane administrator would leave password auth enabled. Usually, you use the SSH password once - to copy an SSH key on the system. Then you disable it.