Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-123158 — Python PoC exploit for CVE-2026-123158 ("sshole"), an OpenSSH authentication bypass on Alpine Linux without PAM, triggered by long passwords against musl crypt(). | Kitploit
工具/GitHubGitHub/maalfer/cve-2026-123158
Vulnerability AnalysisExploitationWeb Application ExploitationAuthenticationLearning & EducationLabs & Practice
GitHubmaalfer/cve-2026-123158

CVE-2026-123158

Python PoC exploit for CVE-2026-123158 ("sshole"), an OpenSSH authentication bypass on Alpine Linux without PAM, triggered by long passwords against musl crypt().

查看仓库
512026年11月6日尚未审核
分享
内容在请求的语言中不可用。显示英文版本。

CVE-2026-123158 — SSH Authentication Bypass ("sshole") exploit

CVE-2026-123158 is an SSH authentication bypass vulnerability (SSH authentication bypass, login without a password) that affects OpenSSH compiled without PAM on Alpine Linux (musl libc). This repository contains the exploit / PoC (Proof of Concept) in Python that reproduces the flaw in a practical way.

Nicknamed "sshole", the vulnerability allows logging in via SSH to accounts without a real password without needing to know any credentials.

Keywords: CVE-2026-123158, sshole, OpenSSH exploit, Alpine Linux vulnerability, musl crypt bypass, SSH authentication bypass, SSH login without password, auth bypass PoC.

What is CVE-2026-123158?

The crypt() function of musl libc (the libc used by Alpine Linux) literally returns the * character when the submitted password exceeds 256 bytes and the hash stored in /etc/shadow is also * (account marked as "no valid password", typical of service or disabled accounts). OpenSSH, when compiled without PAM support, compares that result directly against the shadow field: when comparing "*" == "*" the server accepts the login without the attacker knowing any real password.

Impact: SSH authentication bypass / access without credentials on affected accounts.

Conditions required for the system to be vulnerable:

  • openssh-server compiled without PAM (--without-pam), as happens by default in many Alpine Linux images.
  • PasswordAuthentication yes in sshd_config.
  • An account with * in /etc/shadow (user without a real password assigned).
  • Any other account on the system with a $5$ or $6$ hash (necessary for musl to enter the vulnerable code path).

Exploit / PoC

pip install paramiko

python3 exploit.py <HOST> <PORT> <USER> [LEN]
# Ejemplo contra cuenta 'alice' con contraseña de 300 caracteres
python3 exploit.py 172.17.0.2 22 alice 300

The script first sends a short password (negative control) and then a long password (>256 bytes) to trigger the musl crypt() bug and confirm whether the login is accepted without valid credentials.

Demo

Screenshot of the CVE-2026-123158 exploit (sshole): SSH authentication bypass on Alpine Linux via a long password

Mitigation

# Actualizar y reiniciar sshd
apk upgrade -U -a
rc-service sshd restart

# O deshabilitar autenticación por contraseña
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
rc-service sshd restart

Docker Lab

Available at DockerLabs / BunkerLabs — Eseeseache machine — image eseseache:latest, freely accessible, to practice exploiting CVE-2026-123158 in a controlled environment.

References

  • Eseeseache machine on DockerLabs / BunkerLabs — hands-on lab for the vulnerability.

For educational purposes. Do not use against systems without express authorization.

下载工具

相关工具

  • nuclei

    基于 YAML 的快速漏洞扫描器,采用模板驱动的检测引擎,可对 Web 应用、API、网络、DNS 和云基础设施进行自动化安全测试。

  • zaproxy

    开源Web应用安全扫描器,支持自动化漏洞检测、手动渗透测试和API安全测试,并内置基于代理的拦截引擎。

  • openvas-scanner

    该仓库包含 Greenbone Community Edition 的扫描器组件。

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    Callisto

    jetp1ane/callisto

    自动化二进制漏洞分析工具,通过Ghidra反编译可执行文件,使用Semgrep扫描伪C代码,并利用GPT-3.5-Turbo验证发现以减少误报。

    2.3k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    针对 CVE-2026-43499 的一键式 Android 内核漏洞利用应用,通过内核模块加载实现权限提升,并提供偏移提取与设备端分析工具。

    819
  • 3

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    446
  • 4

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    383
  • 5

    faraday

    infobyte/faraday

    面向攻击性安全、漏洞管理和自主渗透测试的开源及AI驱动的网络安全工具。由拉丁美洲的黑客构建,供全球使用。

    342
  • 6

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    336

探索所有工具

浏览我们的工具集合

查看所有工具 →