XSS in Ldap-Account-Manager Ldap Account Manager
CVE-2022-24851
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N.
EPSS exploit prediction
EPSS 0.011, 66.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ldap-Account-Manager Ldap Account Manager
- Ldapaccountmanager Lam — versions < 7.9.1
- Debian Linux — versions 11.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (karimhabush/cyberowl). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/LDAPAccountManager/lam/security/advisories/GHSA-f2fr-cccr-583v (Patch, Third Party Advisory)
- github.com/LDAPAccountManager/lam/issues/170 (Exploit, Patch, Third Party Advisory)
- github.com/LDAPAccountManager/lam/commit/3c6f09a3579e048e224eb5a4c4e3eefaa8bccd… (Patch, Third Party Advisory)
- DSA-5177 (vendor-advisory, Third Party Advisory)