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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ldap-account-manager | 7.9.1-1 | DEBIAN-CVE-2022-24851 |
| Debian:13 | ldap-account-manager | 7.9.1-1 | DEBIAN-CVE-2022-24851 |
| Debian:14 | ldap-account-manager | 7.9.1-1 | DEBIAN-CVE-2022-24851 |
| Ubuntu:22.04:LTS | ldap-account-manager | no fix listed | UBUNTU-CVE-2022-24851 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-f2fr-cccr-583v x_refsource_CONFIRM
- https://github.com/LDAPAccountManager/lam/issues/170 x_refsource_MISC
- https://github.com/LDAPAccountManager/lam/commit/3c6f09a3579e048e224eb5a4c4e3eefaa8bccd49 x_refsource_MISC
- DSA-5177 vendor-advisory, x_refsource_DEBIAN