CVE-2022-4068 Improperly Controlled Modification of Dynamically-Determined Object Attributes in librenms/librenms
A low-privilege user can execute arbitrary JavaScript in an admin's context via XSS, potentially escalating privileges or taking over the admin account.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-4068?
CVE-2022-4068 is a high-severity cross-site scripting vulnerability in Librenms Librenms, published on 20 Nov 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
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.
Which versions are affected by CVE-2022-4068?
2 open source packages ship an affected version, including librenms/librenms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
librenms/librenms Packagist | All versions | 22.10.0 |
librenms/librenms Packagist | All versions | 22.10.0 |
Products include Librenms Librenms.
How do I fix CVE-2022-4068?
Upgrade librenms/librenms to 22.10.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-4068 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-4068 exists.
Other vulnerabilities in Librenms Librenms
Sources
Also known as GHSA-f3hw-3h74-wr98.