Skip to content
RCE Write-up Intermediate

LibreNMS /graph.php Authenticated Command Injection

LibreNMS 1.65 has an authenticated command-injection flaw in the /graph.php endpoint via the HTTP GET title parameter. An attacker with normal privileges could execute arbitrary commands on the LibreNMS host.

shielder.com

Published on shielder.com

LibreNMS 1.65 is affected by an authenticated command-injection vulnerability via the HTTP GET title parameter in the /graph.php API endpoint. A ’normal’ privileges attacker can gain Remote Code Execution (RCE) on the LibreNMS host.

The author, on shielder.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 title parameter is passed unsanitised into a shell command in /graph.php.

Impact

A normal-privileges attacker could gain remote code execution on the LibreNMS host.

What the attacker needed

Authenticated account with normal privileges

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.

Command injection means a program passes user input to the operating system as a command without cleaning it first. Here, a logged-in user could put special characters in a web request parameter, and the server would run extra commands. That lets the attacker run their own programs on the monitoring server.

What is RCE?

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

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.