Description
This script is possibly vulnerable to LDAP Injection attacks.
Lightweight Directory Access Protocol (LDAP) is an open-standard protocol for both querying and manipulating X.500 directory services. When a web application fails to properly sanitize user-supplied input, it is possible for an attacker to alter the construction of an LDAP statement.
Remediation
Your script should filter metacharacters from user input.
References
Related Vulnerabilities
Sqlite Improper Input Validation Vulnerability (CVE-2017-13685)
Squid Improper Input Validation Vulnerability (CVE-2016-2569)
Ruby on Rails Improper Input Validation Vulnerability (CVE-2016-0753)
Moodle Improper Input Validation Vulnerability (CVE-2006-4936)
WordPress Plugin User Photo 'user-photo.php' Arbitrary File Upload (0.9.4)