Skip to main content
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

GLPI htmLawedTest.php PHP Code Injection

IdentifiersCVE-2022-35914CWE-94

CVE-2022-35914 is a PHP code injection vulnerability in the htmlawed module used by GLPI through version 10.0.2. According to the provided content, the vulnerable component is /vendor/htmlawed/htmlawed/htmLawedTest.php. The issue allows attacker-supplied input processed by the htmLawed test page to reach PHP execution logic, resulting in arbitrary PHP code injection. Public reporting and exploitation references in the provided material describe this as an RCE condition reachable through the exposed test page, and operational use has been observed in botnet scanners as an initial-access exploit.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can lead to remote code execution in the context of the web server/PHP process. An attacker can execute arbitrary system commands, obtain an interactive shell, deploy malware, establish persistence, and use the compromised GLPI host as an initial foothold for further post-exploitation activity. The supplied context specifically notes use of this vulnerability by botnet tooling for initial access.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, block external access to /vendor/htmlawed/htmlawed/htmLawedTest.php at the web server, reverse proxy, or WAF layer; restrict access to trusted administrative networks only; and monitor for requests targeting htmLawedTest.php and anomalous PHP command execution. Removing the test file from production systems and limiting outbound connectivity from the GLPI host can reduce exploitation and post-compromise impact.

Remediation

Patch, then assume compromise.

Upgrade GLPI to a version newer than 10.0.2 that addresses CVE-2022-35914. Remove or disable access to the vulnerable htmLawed test page (/vendor/htmlawed/htmlawed/htmLawedTest.php) if it is present, especially in production deployments. Apply vendor-provided fixes for the bundled htmlawed module and verify that no test or diagnostic scripts remain web-accessible after upgrade.
PUBLIC EXPLOITS

Exploits

3 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).

VALID 3 / 4 TOTALView more in app
CVE-2022-35914_pocMaturityPoCVerified exploit

This repository contains a Python proof-of-concept exploit for CVE-2022-35914, a remote code execution vulnerability in GLPI. The main file, CVE-2022-35914.py, is a command-line tool that targets the /vendor/htmlawed/htmlawed/htmLawedTest.php endpoint of a vulnerable GLPI installation. By sending crafted POST requests, the script exploits improper input handling to execute arbitrary system commands on the server using PHP's call_user_func, array_map, and passthru functions. The exploit can be used to check for vulnerability or to execute arbitrary commands, with the output displayed to the user. The repository also includes a README.md with usage instructions and references, and a requirements.txt listing Python dependencies (beautifulsoup4, requests, argparse). The exploit is operational and provides direct command execution on the target if successful.

noxlumensDisclosed Aug 25, 2024pythonnetwork
CVE-2022-35914MaturityPoCVerified exploit

This repository provides a Python proof-of-concept exploit for CVE-2022-35914, a command injection vulnerability in GLPI via the /vendor/htmlawed/htmlawed/htmLawedTest.php script. The main file, CVE-2022-35914.py, takes a target URL and an optional command to execute (default: 'id'). It first checks if the endpoint is accessible and appears to be the expected htmLawed test page, then crafts a POST request to exploit the vulnerability, allowing arbitrary command execution as the web server user. The exploit can be used for basic command execution or to obtain a reverse shell, as demonstrated in the README. The code is operational and can be used directly against vulnerable GLPI instances. The only fingerprintable endpoint is the htmLawedTest.php script, which must be accessible on the target. The repository also includes a README with usage instructions and a requirements.txt for dependencies.

senderendDisclosed Apr 24, 2024pythonnetwork
CVE-2022-35914-pocMaturityPoCVerified exploit

This repository provides a Python proof-of-concept exploit for CVE-2022-35914, a command injection vulnerability in GLPI via the third-party htmLawedTest.php script. The main file, CVE-2022-35914.py, is a command-line tool that takes a target URL and an optional command to execute (defaulting to 'id'). It first checks if the vulnerable script is accessible and appears to be the correct htmLawed test page, then performs a POST request to inject and execute the specified command on the server. The output of the command is parsed from the server's response and displayed to the user. The exploit requires the target to be running a vulnerable version of GLPI with the htmLawedTest.php script exposed. The repository also includes a README with usage instructions and a requirements.txt listing Python dependencies (beautifulsoup4, requests, argparse). The main attack vector is network-based, targeting the HTTP endpoint /vendor/htmlawed/htmlawed/htmLawedTest.php on the GLPI server.

cosad3sDisclosed Sep 30, 2022pythonnetwork
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Glpi-ProjectGlpiapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware4

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity

Community discussion across Reddit, Mastodon, and other social sources.

GLPI htmLawedTest.php PHP Code Injection (CVE-2022-35914) | Mallory