CVE-2020-15877: Exposure of Resource to Wrong Sphere in LibreNMS
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.41034%
CWE
Published
9/8/2021
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
librenms/librenms | composer | < 1.65.1 | 1.65.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper access control in route definitions. The commit diff shows a critical change in routes/web.php
where authorization middleware was incorrectly implemented using 'guard' => 'admin' instead of the proper 'middleware' => ['can:admin']. In Laravel, 'guard' controls authentication (who you are) while 'middleware'/'can:' controls authorization (what you're allowed to do). This misconfiguration allowed normal users to access admin-only routes through session persistence, as it only checked authentication realm rather than actual permissions.