Show HN: Sshole-audit – Find, prove and fix *sshole: the OpenSSH password bypass...
Show HN @show
Show HN: Sshole-audit – Find, prove and fix *sshole: the OpenSSH password bypass github.com · 2 points · 0 comments · HN thread
TL;DR Show HN post for sshole-audit, an MIT-licensed POSIX sh tool that detects, verifies and fixes a reported OpenSSH password bypass: on musl libc without PAM, passwords of 257 to 1024 bytes can log in to accounts whose shadow field is a bare '*'. The tool probes hosts read-only over SSH, reports a verdict per host, and offers a dry-run-by-default fix that upgrades or disables password auth. The post has 2 points and no comments.
- The bug: musl's crypt() returns the literal '' on failure for passwords over 256 bytes with $5$/$6$ settings, so an account with a bare '' shadow field can match a password supplied as '*' hashed with a borrowed salt.
- All four conditions must hold: musl-linked sshd, no PAM, password auth reachable for the account, and a '*' account plus another account with a $5$/$6$ hash to donate the salt.
- Fixed upstream in OpenSSH 10.6p2; Alpine backported per branch (e.g. 3.21 needs 9.9_p2-r1), with no CVE assigned when Alpine published on 2026-11-05.
- The probe is read-only: it reads config and logs, parses sshd -T, never prints password hashes, and is piped to the remote host over stdin with no installation.
- The fix script is dry-run by default, backs up files, runs sshd -t before restarting, and offers a mitigate mode that disables PasswordAuthentication; a package upgrade needs a sshd restart to take effect.
Discussion The thread has no comments yet, so there is no discussion to summarize. The post has only its 2 points and has drawn no responses so far.