critical9.8Public exploit code
CVE-2018-20434
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…
Public exploit code
Working exploit or proof of concept code has been published for this vulnerability. Treat unpatched systems as at risk.
- LibreNMS 1.46 - 'addhost' Remote Code Execution2019-06-28 · webapps · php · Verified
- LibreNMS - addhost Command Injection (Metasploit)2019-06-05 · remote · linux · Verified
Impact
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.
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Librenms | Librenms | Version 1.46 |
Weakness classification
References
- NVD record
- CVE.org record
- 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
- https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/
- 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
- https://shells.systems/librenms-v1-46-remote-code-execution-cve-2018-20434/