CVE-2024-9101
NoneCVSS
—
EPSS
0.5%
Published
Dec 19, 2024
CISA due date
—
Cloudanix analysis
A bug in a web-based LDAP management tool can let attackers run unwanted code inside an administrator's browser under specific conditions.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Reflected XSS in phpLDAPadmin Entry Chooser passes the 'element' parameter unsafely to JavaScript eval, enabling arbitrary script execution in the victim's browser when the 'opener' condition is met.
Why it matters to the business
Attackers may hijack admin sessions or steal data from LDAP directory management interfaces, leading to unauthorized access and potential compliance issues in environments using this tool.
How an attack unfolds
An attacker crafts a malicious URL targeting the Entry Chooser with a crafted 'element' value containing JavaScript. When a user with a properly set 'opener' accesses the link, the payload executes via eval in the browser context.
How to fix it
Upgrade leenooks/phpldapadmin to commit f713afc8d164169516c91b0988531f2accb9bce6 or later; apply vendor patches promptly given the low but present EPSS score and lack of KEV listing.
How to confirm the fix worked
Verify deployed version against the fixed commit, review source for removal of unsafe eval on the element parameter, and test the Entry Chooser endpoint with benign payloads to confirm script execution is blocked.
Typical attack path
- Identify phpLDAPadmin instance running version 1.2.1 to 1.2.6.7
- Craft URL with malicious payload in the 'element' parameter
- Ensure or induce condition where 'opener' is set
- Deliver link to authenticated admin user via phishing or other means
- Execute arbitrary JavaScript in browser upon link activation
How to detect it
Inspect web server logs for requests to the Entry Chooser endpoint containing suspicious 'element' parameter values that include script or eval constructs; correlate with user activity showing unexpected browser behavior.
- element=.*eval(
- opener.*element=.*script
What your security team should do
- Apply the fixed commit immediately to all phpLDAPadmin instances
- Monitor for any reflected XSS attempts targeting the Entry Chooser
- Restrict access to phpLDAPadmin to trusted networks only
- Educate admins on verifying link sources before interaction
The record
A reflected cross-site scripting (XSS) vulnerability in the 'Entry Chooser' of phpLDAPadmin (version 1.2.1 through the latest version, 1.2.6.7) allows attackers to execute arbitrary JavaScript in the user's browser via the 'element' parameter, which is unsafely passed to the JavaScript 'eval' function. However, exploitation is limited to specific conditions where 'opener' is correctly set.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:12 | phpldapadmin | 0 | No fix |
| Debian:13 | phpldapadmin | 0 | No fix |
| Debian:13 | phpldapadmin | 0 | 1.2.6.7-4 |
| Ubuntu:16.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:18.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:20.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:22.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:24.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:24.10 | phpldapadmin | 0 | No fix |
| Ubuntu:25.04 | phpldapadmin | 0 | No fix |
| Ubuntu:25.10 | phpldapadmin | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | phpldapadmin | 0 | No fix |
Related vulnerabilities
- CVE-2024-9102 phpLDAPadmin since at least version 1.2.0 through the latest version 1.2.6.7 allows users… Also affects phpldapadmin
- CVE-2017-11107 phpLDAPadmin through 1.2.3 has XSS in htdocs/entry_chooser.php via the form, element… Also affects phpldapadmin
- CVE-2011-4075 The masort function in lib/functions.php in phpLDAPadmin 1.2.x before 1.2.2 allows remote… Also affects phpldapadmin
- CVE-2005-2792 Directory traversal vulnerability in welcome.php in phpLDAPadmin 0.9.6 and 0.9.7 allows… Also affects phpldapadmin
- CVE-2026-96379 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96382 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96368 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96361 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79