Lion Cipher Lab

Exploit and fix LDAP injection in your own lab

Why it matters

Directories are still the beating heart of enterprise identity: logins, address books, group lookups and 'who is my manager' pages very often run an LDAP search behind the scenes, and a huge number of them were built years ago by pasting the username straight into a filter string. That single habit is LDAP injection, and it hands an attacker exactly what SQL injection does — authentication bypass and data theft — against the one system that authenticates everyone. Learning to see the filter being rewritten, and to shut it with escaping and a proper bind flow, protects the crown-jewel service…

What you'll learn

Steps in this lab

  1. What LDAP injection actually is (one breath)
  2. When you'd reach for this — and when NOT to
  3. Stand up a throwaway directory
  4. Build the vulnerable login (the bug in 3 lines)
  5. Attack 1 — bypass the login with a wildcard, then an absolute-true filter
  6. Attack 2 — steal a secret attribute, one character at a time (blind)
  7. The judgment: why blocklisting '*' is the wrong instinct
  8. Fix it — escape, bind-then-search, least privilege
  9. The way a pro leaves it — and where LDAP injection still bites

Open the full interactive lab →