LDAP Injection Explained: The Bug That Bypasses Logins in Enterprise Apps
Every bug bounty hunter learns SQL injection. Far fewer learn its enterprise cousin: LDAP injection. It works the same way — untrusted input smuggled into a query — but the target is a directory server like Active Directory or OpenLDAP, and the prize is often a login bypass on an internal application. If you hunt in enterprise programs, this bug is worth knowing. What LDAP Is LDAP, the Lightweight Directory Access Protocol, is how organizations store their user directory: names, usernames, groups, email addresses and more. When you log in to a corporate app, the app often asks the LDAP server "does this user exist, and is this the right password?" using a search filter that looks like this: (&(uid=alice)(userPassword=secret123)) That filter says: find an entry whose username is alice AND whose password is secret123 . If the server returns a match, the app logs you in. The filter is built by pasting the user's input straight into the query string — and that is whe...









