CVE-2022-24851 Stored XSS and path traversal in LDAPAccountManager/lam
Authenticated attackers can inject stored XSS payloads or traverse paths in LDAP Account Manager, potentially executing code or reading files when profiles are accessed.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-24851?
CVE-2022-24851 is a high-severity cross-site scripting vulnerability in Debian Debian Linux, published on 15 Apr 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
LDAP Account Manager (LAM) is an open source web frontend for managing entries stored in an LDAP directory. The profile editor tool has an edit profile functionality, the parameters on this page are not properly sanitized and hence leads to stored XSS attacks. An authenticated user can store XSS payloads in the profiles, which gets triggered when any other user try to access the edit profile page. The pdf editor tool has an edit pdf profile functionality, the logoFile parameter in it is not properly sanitized and an user can enter relative paths like ../../../../../../../../../../../../../usr/share/icons/hicolor/48x48/apps/gvim.png via tools like burpsuite. Later when a pdf is exported using the edited profile the pdf icon has the image on that path(if image is present). Both issues require an attacker to be able to login to LAM admin interface. The issue is fixed in version 7.9.1.
Which versions are affected by CVE-2022-24851?
It affects 2 products.
Products include Debian Debian Linux, Ldap-Account-Manager Ldap Account Manager.
How do I fix CVE-2022-24851?
Upgrade to a fixed version.
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-24851 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24851 exists.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2022-24851, GHSA-f2fr-cccr-583v, UBUNTU-CVE-2022-24851.