Cyber Risks · PortSwigger Research

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