CVE-2022-24851
JSON

8.1high

Stored XSS and path traversal in LDAPAccountManager/lam

Severity
8.1high CVSS:3.1 by GitHub_M
Exploit likelihood
1.11% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
LDAPAccountManager lam< 7.9.1CVE List
ldap-account-manager ldap_account_managerbefore 7.9.1NVD
debian debian_linux11.0NVD

All scores

GitHub_M8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N
NVD4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
NVD3.5low CVSS:2.0AV:N/AC:M/Au:S/C:N/I:P/A:N

Classification

CWE-22CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

LDAP Account Manager (LAM) es un frontend web de código abierto para administrar las entradas almacenadas en un directorio LDAP. La herramienta de edición de perfiles presenta una funcionalidad de edición de perfiles, los parámetros en esta página no están saneados apropiadamente y por lo tanto conlleva a ataques de tipo XSS almacenados. Un usuario autenticado puede almacenar cargas útiles de tipo XSS en los perfiles, que son desencadenadas cuando cualquier otro usuario intenta acceder a la página de edición de perfiles. La herramienta de edición de pdf presenta una funcionalidad de edición de perfil de pdf, el parámetro logoFile en ella no está correctamente saneado y un usuario puede introducir rutas relativas como ../../../../../../../../../../usr/share/icons/hicolor/48x48/apps/gvim.png por medio de herramientas como burpsuite. Más tarde, cuando es exportado un pdf usando el perfil editado, el icono del pdf presenta la imagen en esa ruta (si la imagen está presente). Ambos problemas requieren que un atacante sea capaz de acceder a la interfaz de administración de LAM. El problema ha sido corregido en versión 7.9.1

References

Sources

SourceRecordLicence
CVE ListCVE-2022-24851 changed 2025-04-22CVE Terms of Use
NVDCVE-2022-24851 changed 2026-06-17Public domain