LibreNMS Alert Rule API Cross-Site Scripting Vulnerability
The LibreNMS alert rule API endpoint fails to properly validate the name parameter, allowing an authenticated attacker to inject arbitrary script. This script executes in the context of a target user who views the affected page.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary script on affected installations of LibreNMS. Authentication is required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application stores the alert rule name without sanitising or encoding it, then renders it unsafely in a page viewed by other users.
Impact
An authenticated attacker could execute arbitrary script in the context of another user who views the affected alert rule, potentially taking actions as that user.
What the attacker needed
Authenticated account; victim views the affected rule
The fix
LibreNMS issued an update to correct this vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a website takes input from a user and later shows it to someone else without cleaning it, an attacker can sneak in code that runs in the victim's browser. Here, the name field of an alert rule was not checked, so a logged-in attacker could store malicious script that runs when another user views the rule. This is called cross-site scripting, and it lets the attacker act as the victim inside the application.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.