LDAP injection
Summary: LDAP injection occurs when user-controllable data is copied unsafely into an LDAP query performed by an application, letting an attacker who injects LDAP metacharacters interfere with the query's logic. Depending on what the query does, the attacker may retrieve sensitive data they are not authorized to see or subvert application logic to perform an unauthorized action.
What you should know: PortSwigger notes that automated difference-based tests for LDAP injection are often unreliable and prone to false positives, so scanner findings have to be manually reviewed before anyone can say whether the flaw is real. The metacharacters to block are ( ) ; , * | & = and whitespace, and any input that cannot be reduced to a short alphanumeric string is where the exposure sits.
Read the original at PortSwigger Research ↗
- Topics
- Vulnerabilities & Patching
- Related
- Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command Injection Cyber Risks · Nov 14, 2026U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalog Cyber Risks · Nov 14, 2026PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE Cyber Risks · Nov 13, 2026