cbcvebase.
CVE-2022-35914
published 2022-09-19

CVE-2022-35914: /vendor/htmlawed/htmlawed/htmLawedTest.php in the htmlawed module for GLPI through 10.0.2 allows PHP code injection.

PriorityP196critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOITInitial access
CISA Known Exploited Vulnerabilitydue 2023-03-28
Exploited in the wild
EPSS
99.63%
99.9th percentile
/vendor/htmlawed/htmlawed/htmLawedTest.php in the htmlawed module for GLPI through 10.0.2 allows PHP code injection.

Affected

1 ranges
VendorProductVersion rangeFixed in
glpi-projectglpi<= 10.0.2

Detection & IOCsextracted from sources · hover to see the quote

path/vendor/htmlawed/htmlawed/htmLawedTest.php
commandsid=foo&hhook=exec&text=${CMD}
commandsid=foo&text=system&hfoo=cat+/etc/passwd&hhook=array_map
commandsid=foo&text=passthru&hfoo=cat+/etc/passwd&hhook=array_map
otherhttp.favicon.hash:-1474875778
othericon_hash=-1474875778
snort
alert http any any -> $HOME_NET any (msg:"ET WEB_SPECIFIC_APPS GLPI Unauthenticated PHP Code Injection via htmlawed Module (CVE-2022-35914)"; flow:established,to_server; http.uri; content:"/vendor/htmlawed/htmlawed/htmLawedTest.php"; fast_pattern; http.request_body; content:"token|3d|"; content:"text|3d|"; content:"hhook|3d|exec"; content:"sid|3d|"; reference:url,packetstorm.news/files/id/169501; reference:cve,2022-35914; classtype:web-application-attack; sid:2067154; rev:1; metadata:affected_product GLPI, attack_target Server, tls_state TLSDecrypt, created_at 2026_01_28, cve CVE_2022_35914, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2026_01_28, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application; target:dest_ip;)
  • Exploit targets the unauthenticated endpoint POST /vendor/htmlawed/htmlawed/htmLawedTest.php with POST body parameters 'hhook', 'text', and 'sid'; no authentication is required.
  • Successful RCE response body contains output matching 'root:.*:0:0:' (passwd file content); use this regex as a response matcher to confirm exploitation.
  • GLPI instances can be fingerprinted via Shodan favicon hash -1474875778 or FOFA icon_hash=-1474875778 to identify exposed targets.
  • The Snort/ET rule (sid:2067154) inspects HTTP request body for co-occurrence of 'token=', 'text=', 'hhook=exec', and 'sid=' to detect exploitation.
  • ·The vulnerability is unauthenticated — no credentials or session token are needed; the 'sid=foo' cookie and POST parameter are attacker-supplied arbitrary values, not a valid session.
  • ·The Snort rule requires TLS decryption (tls_state TLSDecrypt / deployment SSLDecrypt) to detect exploitation over HTTPS.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vulncheck9.8CRITICAL
cisa9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.