Cross-Site Scripting Vulnerability in phpLDAPadmin: A Security Risk

phpldapadmin Updated 02 Oct 2025

Summary

02/11/2011
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2011-4074: Cross-site scripting (XSS) vulnerability in cmd.php in phpLDAPadmin 1.2.x before 1.2.2 allows remote attackers to inject arbitrary web script or HTML via an _debug command. Affects phpldapadmin versions < 1.2.0.5-2.1. Fixed in 1.2.0.5-2.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

phpLDAPadmin is a web-based application used for managing LDAP directories. It provides a user-friendly interface for performing various LDAP operations, including adding, modifying, and deleting entries. The application is widely used in environments where LDAP is deployed, making it crucial for administrators to ensure its security. However, vulnerabilities can expose sensitive data and allow unauthorized actions, which is the case with the identified XSS vulnerability.

Vulnerability Detail

The vulnerability identified as DEBIAN-CVE-2011-4074 is a Cross-Site Scripting (XSS) flaw located in cmd.php of phpLDAPadmin versions 1.2.x prior to 1.2.2. This vulnerability allows remote attackers to inject arbitrary web scripts or HTML via an _debug command. If exploited, this could lead to unauthorized access to user sessions, data theft, or further attacks on the web application and its users.

How To Fix

Minimum fixed version

1.2.0.5-2.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpldapadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, it is advisable to restrict access to the phpLDAPadmin interface or disable the _debug command until the package can be updated. This can be done by modifying the web server configuration to limit access to trusted IP addresses only.

Conclusion

The Cross-Site Scripting vulnerability in phpLDAPadmin poses a significant risk to users and their data. It is essential to update to the latest patched version to mitigate this risk. Additionally, employing workarounds and monitoring tools like Vulert can help maintain security and awareness of potential vulnerabilities.

See every vulnerability recorded for phpldapadmin →

Share this vulnerability

FAQ

The vulnerability is a Cross-Site Scripting (XSS) issue that allows attackers to inject malicious scripts into the web application.

The vulnerability affects phpLDAPadmin versions 1.2.x prior to 1.2.2.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability could lead to unauthorized access to user sessions, data theft, or further attacks on the web application.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for phpldapadmin.

How To Fix

Minimum fixed version

1.2.0.5-2.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpldapadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback