RULE(RULE ID:323934)

Rule General Information
Release Date: 2019-11-29
Rule Name: LibreNMS addhost Command Injection Vulnerability (CVE-2018-20434)
Severity:
CVE ID:
Rule Protection Details
Description: LibreNMS 1.46 allows remote attackers to execute arbitrary OS commands by using the $_POST['community'] parameter to html/pages/addhost.inc.php during creation of a new device, and then making a /ajax_output.php?id=capture&format=text&type=snmpwalk&hostname=localhost request that triggers html/includes/output/capture.inc.php command mishandling.
Impact: An attacker can execute arbitrary command via a successful exploit in the context of the vulnerable software.
Affected OS: Linux
Reference: http://packetstormsecurity.com/files/153188/LibreNMS-addhost-Command-Injection.html
http://packetstormsecurity.com/files/153448/LibreNMS-1.46-addhost-Remote-Code-Execution.html
https://drive.google.com/file/d/1LcGmOY8x-TG-wnNr-cM_f854kxk0etva/view?usp=sharing
https://gist.github.com/mhaskar/516df57aafd8c6e3a1d70765075d372d
Solutions
The vendors have released upgrade patches to fix vulnerabilities, please visit:
https://www.librenms.org/