CVE-2022-24851: Stored XSS and path traversal in LDAPAccountManager/lam
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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2022-24851?
CVE-2022-24851 is classified as a medium severity vulnerability due to the potential for stored cross-site scripting (XSS) attacks.
How do I fix CVE-2022-24851?
To remediate CVE-2022-24851, upgrade to versions 8.0.1-0+deb11u1 or 8.3-1 of the LDAP Account Manager package.
Who is affected by CVE-2022-24851?
Users of the LDAP Account Manager versions prior to 8.0.1-0+deb11u1 and 8.3-1, particularly those running Debian Linux 11.0, are at risk.
What type of vulnerability is CVE-2022-24851?
CVE-2022-24851 is a stored cross-site scripting (XSS) vulnerability that affects the profile editor functionality of LDAP Account Manager.
Can CVE-2022-24851 be exploited by unauthenticated users?
No, CVE-2022-24851 requires an authenticated user to exploit the stored XSS vulnerability.