SQL injection in LibreNMS - CVE-2020-15873
Published: July 28, 2020 / Updated: October 5, 2020
LibreNMS
Detailed vulnerability 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.
How to mitigate CVE-2020-15873
Sources
- 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/