Cloudanix VulnDB

CVE-2024-23333

High · 7.9

CVSS

7.9

EPSS

17.8%

Published

Mar 18, 2024

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

Someone who knows the admin password could make the tool create a hidden file that runs dangerous commands whenever anyone visits it on the website.

Exploitation
Remote Authenticated
Attacker needs
High Privilege
Complexity
High
Impact
Remote Code Execution
Component
Application
Class
Path Traversal
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability permits an authenticated administrator to configure arbitrary file paths for application logs; by directing logs to a web-accessible PHP file and causing the application to write executable PHP code into that file, an attacker can achieve remote code execution when the file is subsequently requested over HTTP.

Why it matters to the business

Successful exploitation can result in full compromise of the LDAP management server, enabling attackers to execute arbitrary commands, exfiltrate or alter directory data, and potentially pivot to other systems, leading to operational disruption and data breaches.

How an attack unfolds

An attacker first obtains the LAM master configuration password, then modifies the log settings to specify a web-reachable directory path ending in .php, triggers logging activity that writes a PHP payload into the file, and finally browses to the created file via the web server to execute the injected code.

How to fix it

Upgrade to LAM version 8.7 or later. As a temporary mitigation, restrict access to all LAM configuration pages to only authorized administrators and ensure the web server process lacks write permissions to any web-accessible directories.

How to confirm the fix worked

Confirm the installed LAM version is 8.7 or newer; audit current log file paths in the configuration to verify none resolve to web-accessible locations; test that configuration pages remain inaccessible to unprivileged users.

Typical attack path

  1. Acquire LAM master configuration password
  2. Alter log configuration to target a web-accessible .php file
  3. Generate log events that embed PHP code into the target file
  4. Request the malicious PHP file through the web server to trigger execution

How to detect it

Inspect application and web server logs for modifications to log file paths, especially entries pointing outside expected directories; search for newly created .php files in web roots with timestamps correlating to configuration changes; review access logs for unexpected requests to previously nonexistent PHP files.

What your security team should do

  • Immediately upgrade all LAM instances to version 8.7
  • Enforce least-privilege access controls on configuration interfaces
  • Review web server file permissions to prevent write access to served directories
  • Monitor authentication logs for unusual master-password usage

The record

LDAP Account Manager (LAM) is a webfrontend for managing entries stored in an LDAP directory. LAM's log configuration allows to specify arbitrary paths for log files. Prior to version 8.7, an attacker could exploit this by creating a PHP file and cause LAM to log some PHP code to this file. When the file is then accessed via web the code would be executed. The issue is mitigated by the following: An attacker needs to know LAM's master configuration password to be able to change the main settings; and the webserver needs write access to a directory that is accessible via web. LAM itself does not provide any such directories. The issue has been fixed in 8.7. As a workaround, limit access to LAM configuration pages to authorized users.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 ldap-account-manager 0 No fix
Debian:12 ldap-account-manager 0 No fix
Debian:13 ldap-account-manager 0 8.7-1
Ubuntu:16.04:LTS ldap-account-manager 0 No fix
Ubuntu:18.04:LTS ldap-account-manager 0 No fix
Ubuntu:20.04:LTS ldap-account-manager 0 No fix
Ubuntu:22.04:LTS ldap-account-manager 0 No fix
Ubuntu:24.04:LTS ldap-account-manager 0 No fix
Ubuntu:24.10 ldap-account-manager 0 No fix
Ubuntu:Pro:16.04:LTS ldap-account-manager 0 No fix
Ubuntu:Pro:18.04:LTS ldap-account-manager 0 No fix
Ubuntu:Pro:20.04:LTS ldap-account-manager 0 No fix

Related vulnerabilities