CVE-2018-10933 very simple POC# CVE-2018-10933
to test this code:
- get vulnerable version of libssh at homepage: https://www.libssh.org/files/0.7/libssh-0.7.4.tar.xz
- uncompress and build, then go to example directory, there's a simple sshd server using libssh name: samplesshd-cb
run this simple sshd by command:
$ samplesshd-cb 127.0.0.1 -p 2222
- run my code, output will be:
Allocated session channel
Allocated shell
mean that i can bypass authentication and spawn a shell without any credential
[4.0K] /data/pocs/e03e61d7de836602c3b4e036a5e39231338668c8
├── [1.5K] CVE-2018-10933.py
├── [ 481] README.md
└── [ 16] requirements.txt
0 directories, 3 files