跳到正文
FunCoding

svc-ssh

SSH version CVEs and post-auth tricks — regreSSHion, user enum, agent hijack. Use when SSH is open. Triggers - port 22, OpenSSH banner, regreSSHion CVE-2024-6387, CVE-2018-15473, CVE-2025-26465/66.

Star
1,278
分类
安全
许可证
MIT
最近提交
2026年11月30日

skills/services/ssh/SKILL.md

在 GitHub 上查看

SSH — Version CVEs & Tricks

CVE-2024-6387 (regreSSHion)

OpenSSH 8.5–9.7 on glibc-based Linux. Race condition → unauthenticated RCE. Public PoCs exist but are slow/unreliable — confirm version, note as high-value finding.

CVE-2025-26465 / CVE-2025-26466 (OpenSSH 9.8p1 — February 2025)

CVE-2025-26465: Pre-authentication async-signal safety issue in privilege separation child. Affects 9.5p1–9.8p1 (introduced 2024-07-15). Patch: upgrade to 9.8p1 or later. CVE-2025-26466: Pre-authentication race in ssh1-compatibility code (unused by default but compiled in). Affects 9.5p1–9.8p1. Patch: upgrade or disable Protocol 1. Action: ssh -V on target; if 9.5p1–9.8p1, flag both CVEs and recommend immediate upgrade. No reliable public RCE PoC yet, but exploitability research ongoing.

CVE-2018-15473 (user enumeration)

OpenSSH <7.7. Timing-based username enumeration. ssh-audit TARGET or Metasploit auxiliary/scanner/ssh/ssh_enumusers. User list → password spray / AS-REP roast.

SSH agent forwarding hijack

If another user has agent forwarding enabled: find /tmp -name "agent.*" → SSH_AUTH_SOCK=/tmp/agent.XXXX ssh other-target

Post-auth pivot intel

  • ~/.ssh/config — other hosts, jump hosts, proxy configs
  • ~/.ssh/known_hosts — every host this user connected to
  • ~/.ssh/authorized_keys — who else has access (persistence opportunity)

Auth method check

ssh -o PreferredAuthentications=none TARGET reveals accepted methods. If only publickey → password brute is impossible, don't waste time on hydra.

相似的 Skill

agent-security-hardening

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

精选

ponytail-audit

审计整个代码库,找出 bug、安全漏洞和性能瓶颈,获得按重要性排序的通俗报告。

DIDietrichGebert/ponytail202k近 7 天新增 4,226 个 star

gstack

GAgarrytan/gstack143k近 7 天新增 524 个 star

精选

security-and-hardening

按 OWASP Top 10 检查输入处理、登录和依赖,加固代码。

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

doubt-driven-development

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

ruview-rvagent

RUruvnet/RuView106k近 7 天新增 596 个 star