Tag Archives: Improper Neutralization of Special Elements used in an LDAP Query (‘LDAP Injection’)

CWE-90 – Improper Neutralization of Special Elements used in an LDAP Query (‘LDAP Injection’)

Read Time:42 Second

Description

The software constructs all or part of an LDAP query using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended LDAP query when it is sent to a downstream component.

Modes of Introduction:

– Architecture and Design

Likelihood of Exploit:

 

Related Weaknesses

CWE-943

 

Consequences

Confidentiality, Integrity, Availability: Execute Unauthorized Code or Commands, Read Application Data, Modify Application Data

An attacker could include input that changes the LDAP query which allows unintended commands or code to be executed, allows sensitive data to be read or modified or causes other unintended behavior.

 

Potential Mitigations

Phase: Implementation

Effectiveness:

Description: 

CVE References

 

  • CVE-2005-2301
    • Server does not properly escape LDAP queries, which allows remote attackers to cause a DoS and possibly conduct an LDAP injection attack.