MEDIUM
OpenSSH through 7.7 is prone to a user enumeration vulnerability due to not delaying bailout for an invalid authenticating user until after the packet containing the request has been fully parsed, related to auth2-gss.c, auth2-hostbased.c, and auth2-pubkey.c.
Weakness: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
The program contains a code sequence that can run concurrently with other code, and the code sequence requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence that is operating concurrently.
Published: 2018-08-17
Community Advisory
This section is open source, for any additional information that enhances or clarifies the official advisory above.
CVE-2018-15473 Exploits (26)
- Rhynorater/CVE-2018-15473-Exploit ( 435)
- trimstray/massh-enum ( 120)
- epi052/cve-2018-15473 ( 15)
- r3dxpl0it/CVE-2018-15473 ( 7)
- secmode/enumpossible ( 3)
- gbonacini/opensshenum ( 2)
- JoeBlackSecurity/SSHUsernameBruter-SSHUB ( 1)
- pyperanger/CVE-2018-15473_exploit ( 1)
- LINYIKAI/CVE-2018-15473-exp ( 1)
- 1stPeak/CVE-2018-15473
Show all exploits (+16):
- Sait-Nuri/CVE-2018-15473
- crAckZ0p/CVE-2018-15473-py3
- JoeBlackSecurity/CrappyCode
- NHPT/SSH-account-enumeration-verification-script
- coollce/CVE-2018-15473_burte
- WildfootW/CVE-2018-15473_OpenSSH_7.7
- CaioCGH/EP4-redes
- trickster1103/-
- Moon1705/easy_security
- Wh1t3Fox/cve-2018-15473
- cved-sources/cve-2018-15473
- xer0dayz/CVE-2018-15473-Exploit
- 45210
- 45233
- 45939
- rapid7/metasploit-framework/modules/auxiliary/scanner/ssh/ssh_enumusers.rb
CVE-2018-15473 Vulnerable Docker Environment
Vulhub is an open-source collection of Docker-ized vulnerable environments. No pre-existing knowledge of Docker is required, just execute two simple commands and you have a vulnerable environment.
OpenSSH 用户名枚举漏洞(CVE-2018-15473)
OpenSSH 7.7前存在一个用户名枚举漏洞,通过该漏洞,攻击者可以判断某个用户名是否存在于目标主机中。
参考链接:
- http://openwall.com/lists/oss-security/2018/08/15/5
- https://github.com/Rhynorater/CVE-2018-15473-Exploit
- https://www.anquanke.com/post/id/157607
漏洞环境
执行如下命令,编译及启动一个运行OpenSSH 7.7p1的容器:
docker-compose build
docker-compose up -d
环境启动后,我们在客户端执行ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -p20022
,输入密码vulhub
,即可登录到容器中。
漏洞复现
使用CVE-2018-15473-Exploit,枚举字典中的用户名:
python3 sshUsernameEnumExploit.py --port 20022 --userList exampleInput.txt your-ip
可见,root
、example
、vulhub
、nobody
是存在的用户,rootInvalid
、user
、phithon
是不存在的用户。
Research Labs
Official CVE References
View references (17)
- openwall.com/lists/oss-security/2018/08/15/5
- securityfocus.com/bid/105140
- securitytracker.com/id/1041487
- redhat.com/errata/RHSA-2019:0711
- redhat.com/errata/RHSA-2019:2143
- debian.org/906236
- openbsd/src/commit/779974d35b4859c07bc3cb8a12c74b43b0a7d1e0
- debian.org/debian-lts-announce/2018/08/msg00022.html
- global.sonicwall.com/vuln-detail/SNWLID-2018-0011
- gentoo.org/glsa/201810-03
- netapp.com/advisory/ntap-20181101-0001/
- ubuntu.com/3809-1/
- debian.org/security/2018/dsa-4280
- 45210
- 45233
- 45939
- oracle.com/security-alerts/cpujan2020.html