CVE-2022-24851

NameCVE-2022-24851
DescriptionLDAP 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-5177-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ldap-account-manager (PTS)jessie, jessie (lts)4.7.1-1+deb8u1vulnerable
stretch (security), stretch (lts), stretch5.5-1+deb9u1vulnerable
bullseye (security), bullseye8.0.1-0+deb11u1fixed
bookworm8.3-1fixed
sid, trixie8.7-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ldap-account-managersourcejessie(unfixed)end-of-life
ldap-account-managersourcebullseye8.0.1-0+deb11u1DSA-5177-1
ldap-account-managersource(unstable)7.9.1-1

Notes

[stretch] - ldap-account-manager <no-dsa> (Minor issue)
https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-f2fr-cccr-583v
https://github.com/LDAPAccountManager/lam/commit/3c6f09a3579e048e224eb5a4c4e3eefaa8bccd49
https://github.com/LDAPAccountManager/lam/issues/170

Search for package or bug name: Reporting problems