Multiple vulnerabilities in LibreNMS



Published: 2020-07-28
Risk Medium
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2020-15873
CVE-2020-15877
CWE-ID CWE-89
CWE-284
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
LibreNMS
Other software / Other software solutions

Vendor LibreNMS Project

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) SQL injection

EUVDB-ID: #VU32706

Risk: Medium

CVSSv3.1: 7.9 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2020-15873

CWE-ID: CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Exploit availability: Yes

Description

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.

Mitigation

Install update from vendor's website.

Vulnerable software versions

LibreNMS: 0.1 - 1.65

External links

http://community.librenms.org/c/announcements
http://github.com/librenms/librenms/commit/8f3a29cde5bbd8608f9b42923a7d7e2598bcac4e
http://github.com/librenms/librenms/compare/1.65...1.65.1
http://github.com/librenms/librenms/pull/11923
http://research.loginsoft.com/bugs/blind-sql-injection-in-librenms/


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.

2) Improper access control

EUVDB-ID: #VU32720

Risk: Medium

CVSSv3.1: 7.1 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2020-15877

CWE-ID: CWE-284 - Improper Access Control

Exploit availability: No

Description

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.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

LibreNMS: 0.1 - 1.65

External links

http://community.librenms.org/c/announcements
http://github.com/librenms/librenms/commit/e5bb6d80bc308fc56b9a01ffb76c34159995353c
http://github.com/librenms/librenms/compare/1.65...1.65.1
http://github.com/librenms/librenms/pull/11915
http://github.com/librenms/librenms/releases/tag/1.65.1
http://shielder.it/blog


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###