Skip to content
RCE Write-up Intermediate

Cve 2022 35914 The Glpi Glitch How I Found Vulnerable Devices On Shodan

The htmlawed module in GLPI through version 10.0.2 allowed PHP code injection through the htmLawedTest.php script. An attacker could use this to run arbitrary commands on an affected server.

Abhishek Kollur Follow

Published on systemweakness.com

In the ever-evolving landscape of cybersecurity, there’s always a new vulnerability waiting to be discovered. Just when you thought your PHP applications were secure, along comes CVE-2022–35914 to stir things up.

Abhishek Kollur, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the htmLawedTest.php test script was reachable in production and passed user input into PHP code execution without proper restriction.

Impact

An attacker could execute arbitrary commands on vulnerable GLPI servers exposed to the internet.

What the attacker needed

Internet-exposed GLPI up to 10.0.2; no authentication mentioned

The fix

Organisations using GLPI should upgrade to the latest version.

How it was found

  1. Search Shodan for GLPI instances using a favicon hash query.
  2. Run a nuclei template against the results to find which hosts are vulnerable.
  3. Use a Python exploit to run arbitrary commands on a vulnerable host.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

GLPI is software that organisations use to keep track of their computers and other equipment. A part of it that cleans up web content could be tricked into running PHP code, which is the language the server uses to build pages. If an attacker can run their own code there, they can often take control of the whole server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Abhishek Kollur

View all

20 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.