LibreNMS 1.46 addhost.inc.php $_POST['community'] os command injection

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.2$0-$5k0.00

Summaryinfo

A vulnerability marked as critical has been reported in LibreNMS 1.46. The affected element is an unknown function of the file html/pages/addhost.inc.php. Performing a manipulation of the argument $_POST['community'] as part of Parameter results in os command injection. This vulnerability is cataloged as CVE-2018-20434. It is possible to initiate the attack remotely. Furthermore, there is an exploit available.

Detailsinfo

A vulnerability classified as critical has been found in LibreNMS 1.46. This affects an unknown code of the file html/pages/addhost.inc.php. The manipulation of the argument $_POST['community'] as part of a Parameter leads to a os command injection vulnerability. CWE is classifying the issue as CWE-78. The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

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.

The weakness was shared 04/24/2019. This vulnerability is uniquely identified as CVE-2018-20434 since 12/24/2018. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details and a public exploit are known. The attack technique deployed by this issue is T1202 according to MITRE ATT&CK.

A public exploit has been developed by mhaskar/Shelby Pace in Ruby/Metasploit and been published even before and not after the advisory. The exploit is shared for download at github.com. It is declared as highly functional. The vulnerability was handled as a non-public zero-day exploit for at least 129 days. During that time the estimated underground price was around $0-$5k. By approaching the search of inurl:html/pages/addhost.inc.php it is possible to find vulnerable targets with Google Hacking.

There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.

The vulnerability is also documented in the vulnerability database at Exploit-DB (46970). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Productinfo

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.5
VulDB Meta Temp Score: 8.2

VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 9.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Os command injection
CWE: CWE-78 / CWE-77 / CWE-74
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Highly functional
Author: mhaskar/Shelby Pace
Programming Language: 🔍
Download: 🔍
Google Hack: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

MetaSploit ID: exploit/linux/http/librenms_addhost_cmd_inject
MetaSploit Name: LibreNMS addhost Command Injection

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: no mitigation known
Status: 🔍

0-Day Time: 🔍

Timelineinfo

12/16/2018 🔍
12/24/2018 +8 days 🔍
04/24/2019 +121 days 🔍
04/25/2019 +1 days 🔍
12/18/2024 +2064 days 🔍

Sourcesinfo

Advisory: 153188
Status: Not defined

CVE: CVE-2018-20434 (🔍)
GCVE (CVE): GCVE-0-2018-20434
GCVE (VulDB): GCVE-100-134019
scip Labs: https://www.scip.ch/en/?labs.20161013

Entryinfo

Created: 04/25/2019 07:57
Updated: 12/18/2024 09:30
Changes: 04/25/2019 07:57 (36), 06/01/2020 18:01 (17), 09/06/2023 19:13 (4), 08/25/2024 11:45 (8), 08/25/2024 11:48 (17), 12/18/2024 09:30 (10)
Complete: 🔍
Committer: misc
Cache ID: 216::103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!