Skip to content
XSS Disclosed report Intermediate CVE-2022-4068

Cross-site Scripting in librenms/librenms

A disabled user with a valid session could re-enable their own account, and the username was not sanitised in the admin user overview. This allowed a low-privilege attacker to execute arbitrary JavaScript in an admin's browser session.

librenms/librenms

Originally disclosed on huntr

A user is able to enable their own account if it was disabled by an admin while the user still holds a valid session. Moreover, the username is not properly sanitized in the admin user overview. This enables an XSS attack that enables an attacker with a low privilege user to execute arbitrary JavaScript in the context of an admin's account.

From the GitHub Advisory Database (GHSA-f3hw-3h74-wr98, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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 failed to check authorisation when re-enabling a disabled account and failed to encode the username when rendering the admin user overview.

Impact

An attacker with a low-privilege account could execute arbitrary JavaScript in an admin's session, potentially taking over the admin account.

What the attacker needed

A low-privilege user account; a valid session for that account; an admin views the user overview

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 user account is disabled, the user should not be able to turn it back on. Here, a user with an existing session could re-enable their own account. Also, the admin page that lists users did not clean up the username before showing it, so a malicious username could run code in the admin's browser.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from librenms/librenms

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.