Posted in Application Security

GitHub - liamromanis101/MaSSHole: MaSSHole v1.3.0: detection-only checker for *sshole (CVE-2026-123158)…

Liam R. — Freelance Penetration Tester

I've released MaSSHole, a free, detection-only, checker for *sshole (CVE-2026-123158), the OpenSSH password-authentication bypass on musl-based Linux such as Alpine.

Quick recap of the flaw: on musl systems where sshd runs without PAM and password authentication is enabled, an oversized password is accepted for accounts that have no password (shadow field "*"). That's the default openssh-server setup on Alpine, and Alpine's cloud images ship a key-only "alpine" user with passwordless doas. It's fixed in OpenSSH 10.6p2 and in Alpine's backported packages.

The awkward part: Alpine's fixes keep the old version string, so a patched host and a vulnerable one look identical from the network, and many scanners can't tell them apart. MaSSHole is built for that.

🔎 For penetration testers (on authorised engagements)

• Sweep ranges, CIDRs or host lists without credentials to find candidate hosts

• Rule out glibc distros, Dropbear, password-auth-off and patched upstream builds

• Confirm candidates with credentialed checks, with CSV output for reporting

🛠️ For DevOps, SRE and platform teams

• Check VMs, cloud instances and containers that run sshd: musl, PAM, patch level per Alpine branch, effective sshd config (including Match blocks) and exposed accounts

• Run it locally, or across a fleet over SSH with sudo/doas

• Exit codes make it easy to drop into CI or configuration-management checks

🛡️ For blue teams

• Searches auth logs for password logins to password-less accounts, the main indicator of compromise

It never sends a password and never attempts the bypass. It's a single POSIX shell script that runs on Alpine's BusyBox shell, with a Docker lab (vulnerable, patched, mitigated, PAM, glibc and "compromised" hosts) so you can verify its results before pointing it at anything real.

👉 https://github.com/liamromanis101/MaSSHole

Use it only on systems you own or are authorised to test. If it finds a vulnerable host: upgrade openssh (or set PasswordAuthentication no right away), and treat any host with log hits as compromised.

Feedback and pull requests welcome.

#CyberSecurity #OpenSSH #AlpineLinux #PenetrationTesting #DevSecOps #VulnerabilityManagement #InfoSec #DevOps #SRE #Musl #libc #cve-2026-123158

GitHub - liamromanis101/MaSSHole: MaSSHole v1.3.0: detection-only checker for *sshole (CVE-2026-123158)…

1 reactions · 0 comments

Topics: #devsecops, #libc, #openssh, #cve, #sre, #penetrationtesting, #infosec, #vulnerabilitymanagement, #alpinelinux, #devops

Read and join the discussion on Cyberr