SB2020072808 - Multiple vulnerabilities in LibreNMS
Published: July 28, 2020
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 2 vulnerabilities.
1) SQL injection (CVE-ID: CVE-2020-15873)
CWE-ID: CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Green
The vulnerability allows a remote attacker to execute arbitrary SQL queries in database.
The vulnerability exists due to insufficient sanitization of user-supplied data passed via the customoid.inc.php "device_id" POST parameter to ajax_form.php. A remote authenticated attacker can send a specially crafted request to the affected application and execute arbitrary SQL commands within the application database.
Successful exploitation of this vulnerability may allow a remote attacker to read, delete, modify data in database and gain complete control over the affected application.
2) Improper access control (CVE-ID: CVE-2020-15877)
CWE-ID: CWE-284 - Improper Access Control
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
The vulnerability allows a remote attacker to gain unauthorized access to otherwise restricted functionality.
The vulnerability exists due to improper access restrictions for normal users because of "'guard' => 'admin'" instead of "'middleware' => ['can:admin']" in routes/web.php. A remote authenticated attacker can bypass implemented security restrictions and gain unauthorized access to the application.
Remediation
Install update from vendor's website.
References
- https://community.librenms.org/c/announcements
- https://github.com/librenms/librenms/commit/8f3a29cde5bbd8608f9b42923a7d7e2598bcac4e
- https://github.com/librenms/librenms/compare/1.65...1.65.1
- https://github.com/librenms/librenms/pull/11923
- https://research.loginsoft.com/bugs/blind-sql-injection-in-librenms/
- https://github.com/librenms/librenms/commit/e5bb6d80bc308fc56b9a01ffb76c34159995353c
- https://github.com/librenms/librenms/pull/11915
- https://github.com/librenms/librenms/releases/tag/1.65.1
- https://shielder.it/blog