Librenms has a reflected XSS on error alert
Impact
XSS on the parameters:/addhost -> param: community
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 24.11.0Ecosystem versions | 24.11.0 |
Version evidence: OSV · GHSA-g84x-g96g-rcjc
View original version evidence (132 explicit versions)
Original source description
XSS on the parameters:/addhost -> param: community
of Librenms versions 24.10.1 (https://github.com/librenms/librenms) allows remote attackers to inject malicious scripts. When a user views or interacts with the page displaying the data, the malicious script executes immediately, leading to potential unauthorized actions or data exposure.
Proof of Concept:
-
Navigate to the /addhost path.
-
Fill in all required fields.
-
In the Community field, enter the following payload:
"><img src=a onerror="alert(1)">. -
Submit the form to save changes. 5 The script will execute when the error alert "No reply with community + payload" appears.
Impact:
Execution of Malicious Code