GitHub Advisoryadvisory · Packagist

GHSA-8phr-637g-pxrg LibreNMS Cross-site Scripting at Device groups Deletion feature

MEDIUM Published 2023-11-17 Modified 2023-11-17 Official page ↗
Aliases
CVE-2023-48295
Ecosystem
Packagist
Packages
librenms/librenms
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N
Weaknesses
CWE-79
Reviewed
2023-11-17

Affected packages

• Packagist librenms/librenms: < 23.11.0 → fixed in 23.11.0

Description

Summary XSS attacks occurs when application is not sanitising inputs properly and rendering the code from user input to browser which could allow an attacker to execute malicious javascript code. PoC 1. Login 2. Create a device group in /device-groups 3. Name it as `">` 4. save it 5. Go to services and create a service template and add that device group into that and save it 6. After that go back to device groups and delete that device, you will see XSS payload popup in message Vulnerable code: https://github.com/librenms/librenms/blob/63eeeb71722237d1461a37bb6da99fda25e02c91/app/Http/Controllers/DeviceGroupController.php#L173C21-L173C21 Line 173 is not sanitizing device name properly Impact Cross site scripting can lead to cookie stealing attacks

Related

Alias · CVE (1)

  • CVE-2023-48295 LibreNMS is an auto-discovering PHP/MySQL/SNMP based network monitoring which includes support for a wide range of network hardware and… vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References