
CVE-2018-10933 (LibSSH 인증 우회)에 대한 익스플로잇으로, 취약한 SSH 서버에 인증 없이 셸 접근을 가능하게 하며 버전 탐지 및 Shodan 통합을 제공합니다.
CVE-2018-10933을 사용하여 자격 증명 없이 셸을 실행합니다.
Exploit-DB : https://www.exploit-db.com/exploits/45638
libSSH의 CVE-2018-10933에 대한 정보 : https://www.libssh.org/security/advisories/CVE-2018-10933.txt
libSSH의 버그 수정 릴리스 : https://www.libssh.org/2018/10/16/libssh-0-8-4-and-0-7-6-security-and-bugfix-release/
// If paramiko==2.0.8 doesn't works try : pip install paramiko==2.4.2
pip install -r requirements.txt
python libsshauthbypass.py --help
Example:
python libsshauthbypass.py --host 0.0.0.0 --port 22 --command "cat /etc/passwd" --logfile newlogfile.log
https://gist.github.com/0x4D31/35ddb0322530414bbb4c3288292749cc
출력이 0.7.5, 0.6.* 미만이면 서버가 취약합니다.
그렇지 않으면 패치되었거나, 잘렸거나, libSSH를 사용하지 않는 것입니다.
( 22번 포트가 기본값이며, 다른 포트(2222, 3333, 4444)에도 libSSH가 포함될 수 있습니다. )
