Apache Knox LDAP injection can alter the login user search
Unauthenticated attackers can inject LDAP filter syntax via the username when user search is configured.
LDAP injection in Apache Knox KnoxLdapRealm user search
Improper neutralization of special elements in an LDAP query in Apache Knox's Shiro LDAP realm (KnoxLdapRealm) lets an unauthenticated attacker inject LDAP filter syntax through the login username when user search (userSearchAttributeName or userSearchFilter) is configured. Knox may then authenticate the request against a different directory entry than the username identifies. Apache Knox 0.5.0 through 2.1.0 is affected.
What to do: Upgrade Apache Knox to 2.1.1 or 3.0.0, which fix the LDAP injection in KnoxLdapRealm.
| Product | Affected | Fixed in |
|---|---|---|
| Apache Knox | 0.5.0 through 2.1.0 | 2.1.1 or 3.0.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Improper neutralization of special elements in an LDAP query in the Apache Knox Shiro LDAP realm (KnoxLdapRealm) allows an unauthenticated attacker to inject LDAP filter syntax through the login username when user search (userSearchAttributeName or userSearchFilter) is configured. As a result, Knox may authenticate the request against a different directory entry than the username identifies. This issue affects Apache Knox from 0.5.0 through 2.1.0. Users are recommended to upgrade to version 2.1.1 or 3.0.0, which fix the issue.
Unauthenticated attackers can inject LDAP filter syntax via the username when user search is configured.
Today 365 readers · 395 views · 70 reads · all time 306K views