LibreNMS Cross-site Scripting at Device groups Deletion feature
Moderate severity
GitHub Reviewed
Published
Nov 17, 2023
in
librenms/librenms
•
Updated Nov 17, 2023
Description
Published by the National Vulnerability Database
Nov 17, 2023
Published to the GitHub Advisory Database
Nov 17, 2023
Reviewed
Nov 17, 2023
Last updated
Nov 17, 2023
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
"><img src=x onerror=alert(1);>
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
References