Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2018-15473 | Kitploit
Tools/GitHubGitHub/wtbacon/cve-2018-15473
ReconnaissanceVulnerability AnalysisExploitationInformation GatheringNetwork SecurityPenetration Testing
GitHubwtbacon/cve-2018-15473

cve-2018-15473

View Repository
4 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2018-15473: OpenSSH Username Enumeration

OpenSSH through 7.7 allows remote attackers to enumerate valid usernames by sending malformed authentication requests and observing differential server responses.

Details

FieldValue
Affected SoftwareOpenSSH 2.3 through 7.7
CVSS v3.15.3 (Medium)
Attack VectorNetwork (remote, no authentication required)
Root CauseServer does not delay bailout for invalid users until after the full packet is parsed (auth2-gss.c, auth2-hostbased.c, auth2-pubkey.c)
ImpactInformation disclosure — valid username enumeration

Scripts

exploit.py — Malformed Packet (fast, multi-threaded)

Sends a truncated SSH_MSG_USERAUTH_REQUEST (boolean field removed). Invalid users trigger an early bailout (USERAUTH_FAILURE), valid users cause the server to disconnect.

exploit_timing.py — Timing Attack (slower, works on patched servers)

Sends a very long password (~100KB) via password auth. Valid users take longer because the server hashes the password before rejecting, while invalid users are rejected immediately. Runs sequentially and auto-calibrates the threshold.

Use this when exploit.py returns false positives (patched servers).

Quick Start

root@kitploit:~
git clone <this-repo-url>
cd cve-2018-15473

pip install -r requirements.txt

# Malformed packet (try this first)
python3 exploit.py <target_ip> 22 <lhost> <lport> -u root
python3 exploit.py <target_ip> 22 <lhost> <lport> -w usernames.txt -t 8

# Timing attack (fallback for patched servers)
python3 exploit_timing.py <target_ip> 22 <lhost> <lport> -u root
python3 exploit_timing.py <target_ip> 22 <lhost> <lport> -w usernames.txt

Arguments (both scripts)

References

  • https://nvd.nist.gov/vuln/detail/CVE-2018-15473
  • https://www.exploit-db.com/exploits/45233
  • https://github.com/epi052/cve-2018-15473
  • https://github.com/Rhynorater/CVE-2018-15473-Exploit
Download Tool
ArgumentDescription
target_ipTarget SSH server IP
target_portTarget SSH port (usually 22)
lhostAttacker IP (unused, kept for template consistency)
lportAttacker port (unused, kept for template consistency)
-u, --usernameSingle username to test
-w, --wordlistPath to a wordlist file (one username per line)
-t, --threadsNumber of threads (default: 4, exploit.py only)