module

LibreNMS Collectd Command Injection

Disclosed
2019-07-15
Created
2019-09-06

Description

This module exploits a command injection vulnerability in the
Collectd graphing functionality in LibreNMS.

The `to` and `from` parameters used to define the range for
a graph are sanitized using the `mysqli_escape_real_string()`
function, which permits backticks. These parameters are used
as part of a shell command that gets executed via the `passthru()`
function, which can result in code execution.

Authors

Eldar Marcussen
Shelby Pace

Platform

Unix

Architectures

cmd

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/linux/http/librenms_collectd_cmd_inject
msf exploit(librenms_collectd_cmd_inject) > show targets
...targets...
msf exploit(librenms_collectd_cmd_inject) > set TARGET < target-id >
msf exploit(librenms_collectd_cmd_inject) > show options
...show and set options...
msf exploit(librenms_collectd_cmd_inject) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.