MIR0808
TaintedLdap
User-controlled input reaches the base DN or filter of ldap_search(), ldap_list() or ldap_read(), risking LDAP injection.
Example
Section titled “Example”<?phpldap_search($ldap, 'dc=example,dc=com', '(uid=' . $_GET['user'] . ')'); // TaintedLdapHow to fix
Section titled “How to fix”Escape the value with ldap_escape() using the LDAP_ESCAPE_FILTER or LDAP_ESCAPE_DN flag.
