SQL Injection in librenms
Impact
A second-order SQL injection issue in Widgets/TopDevicesController.php (aka the Top Devices dashboard widget) of LibreNMS before 21.1.0 allows remote authenticated attackers to execute arbitrary SQL commands via the sort_order parameter against the /ajax/form/widget-settings endpoint.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 21.1.0Ecosystem versions | 21.1.0 |
Version evidence: OSV · GHSA-h59f-p56g-g75v
View original version evidence (71 explicit versions)
Original source description
A second-order SQL injection issue in Widgets/TopDevicesController.php (aka the Top Devices dashboard widget) of LibreNMS before 21.1.0 allows remote authenticated attackers to execute arbitrary SQL commands via the sort_order parameter against the /ajax/form/widget-settings endpoint.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2020-35700
- Source reference github.com/librenms/librenms/issues/12405
- Patch github.com/librenms/librenms/pull/12422
- Source reference github.com/librenms/librenms/blob/master/app/Http/Controllers/Widgets/TopDevicesController.php
- Release notes github.com/librenms/librenms/releases/tag/21.1.0
- Source reference www.horizon3.ai/disclosures/librenms-second-order-sqli