CVE-2017-11107
Medium · 6.1CVSS
6.1
EPSS
2.1%
Published
Jul 8, 2017
CISA due date
—
Cloudanix analysis
An attacker can trick administrators into running harmful code inside the directory management tool simply by getting them to click a specially crafted link.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits reflected cross-site scripting by failing to sanitize user-controlled values in the form, element, rdn, or container parameters passed to entry_chooser.php, allowing arbitrary JavaScript to execute in the context of a victim's browser session.
Why it matters to the business
Successful exploitation can lead to theft of administrative credentials, unauthorized directory modifications, or use of the interface as a pivot for further attacks; public weaponized exploits increase the likelihood of opportunistic abuse even years after disclosure.
How an attack unfolds
An attacker crafts a malicious link or form submission that embeds JavaScript payloads in one of the vulnerable parameters, then tricks an authenticated phpLDAPadmin user into clicking it; once executed, the script performs actions on behalf of the victim or exfiltrates session data. Publicly available weaponized exploits lower the barrier for automated or script-kiddie attacks.
How to fix it
Upgrade phpLDAPadmin to a version that sanitizes or removes the vulnerable parameters; for the listed nri-nagios packages the issue is resolved at version 0. Apply web-application firewall rules that block common XSS patterns in query strings as a temporary control.
How to confirm the fix worked
Confirm the fix by reviewing the entry_chooser.php source for proper output encoding or parameter filtering, re-test the four parameters with benign payloads to ensure no script execution occurs, and verify deployed package versions match the stated fixed releases.
Typical attack path
- Identify a reachable phpLDAPadmin instance and the entry_chooser.php endpoint
- Craft a URL containing a script payload in the form, element, rdn, or container parameter
- Deliver the link via phishing or a compromised page to an authenticated administrator
- Victim's browser executes the injected script, enabling session hijacking or malicious directory operations
How to detect it
Review web-server access logs for requests to entry_chooser.php that contain HTML tags, JavaScript keywords, or unusually long parameter values; correlate with successful responses (200) followed by administrative actions performed by the same session.
- entry_chooser.php?form=
- entry_chooser.php?element=
- entry_chooser.php?rdn=
- entry_chooser.php?container=
What your security team should do
- Prioritize removal or upgrade of any phpLDAPadmin deployments still running versions through 1.2.3
- Scan web logs for the last 90 days for suspicious entry_chooser.php requests containing script tags or event handlers
- Implement Content-Security-Policy headers on the administrative interface to reduce XSS impact
- Disable or restrict access to phpLDAPadmin from untrusted networks until remediation is complete
The record
phpLDAPadmin through 1.2.3 has XSS in htdocs/entry_chooser.php via the form, element, rdn, or container parameter.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:12 | phpldapadmin | 0 | 1.2.2-6.2 |
| Debian:13 | phpldapadmin | 0 | 1.2.2-6.2 |
| Debian:7 | phpldapadmin | 0 | 1.2.2-5+deb7u1 |
| Debian:8 | phpldapadmin | 0 | 1.2.2-5.2+deb8u1 |
| Mageia:5 | phpldapadmin | 0 | 1.2.3-5.1.mga5 |
| Mageia:6 | phpldapadmin | 0 | 1.2.3-7.1.mga6 |
| Ubuntu:14.04:LTS | phpldapadmin | 0 | 1.2.2-5ubuntu1.2 |
| Ubuntu:16.04:LTS | phpldapadmin | 0 | 1.2.2-5.2ubuntu2.1 |
| Ubuntu:18.04:LTS | phpldapadmin | 0 | 1.2.2-6ubuntu1.1 |
| Ubuntu:20.04:LTS | phpldapadmin | 0 | 1.2.2-6.2ubuntu1 |
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-2024-9101 A reflected cross-site scripting (XSS) vulnerability in the 'Entry Chooser' of… 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