LDAP Injection
LDAP Injection
Example 1: Java
Vulnerable Code:
Reason for vulnerability: User input is directly used in the LDAP filter, allowing injection.
Fixed Code:
Reason for fix: Use parameterized queries to prevent LDAP injection.
Example 2: C#
Vulnerable Code:
Reason for vulnerability: User input is directly used in the LDAP filter, allowing injection.
Fixed Code:
Reason for fix: Use parameterized queries to prevent LDAP injection.
Last updated