Advisory

GHSA-fc38-2254-48g7

Also known as: CVE-2024-47524

Summary

LibreNMS has Stored Cross-site Scripting vulnerability in "Device Group" Name

Details

Summary
The application fail to sanitising inputs properly and rendering the code from user input to browser which allow an attacker to execute malicious javascript code.

Details
User with Admin role can create a Device Groups, the application did not properly sanitize the user input in the Device Groups name, when user see the detail of the Device Group, if java script code is inside the name of the Device Groups, its will be trigger.

PoC

  1. Login as an Admin role user. Then go over to "$URL/device-groups"
  1. Create a new Device Group with this payload in their name
<img src="x" onerror="alert(document.cookie)">

image

  1. Go over to the detail page of that Device Groups, in this case "$URL/devices/group=2". Will see a pop-up.

image

Impact
Attacker can use this to perform malicious java script code for malicious intent.
This would impact all users as anyone can have access to the detail page of the device group.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-10-01 20:31 UTC
Modified
2024-10-01 22:16 UTC

Affected packages and fixes

librenms/librenms

Packagist · All systems

Affected

  • introduced 0, fixed 24.9.0 (ecosystem)

Fixed versions

24.9.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences