Vulnerability · Published Apr 15, 2022 · Assigned by GitHub_M

CVE-2022-24851Stored XSS and path traversal in LDAPAccountManager/lam

High 8.1

In plain English

A high-severity cross-site scripting in lam from LDAPAccountManager. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)1.1%top 33.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ldap-account-manager7.9.1-1DEBIAN-CVE-2022-24851
Debian:13ldap-account-manager7.9.1-1DEBIAN-CVE-2022-24851
Debian:14ldap-account-manager7.9.1-1DEBIAN-CVE-2022-24851
Ubuntu:22.04:LTSldap-account-managerno fix listedUBUNTU-CVE-2022-24851

Affected products (as reported)

VendorProductVersions
LDAPAccountManager lam < 7.9.1

Weakness: CWE-79, CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N

References