Groups
Groups
Sign in
Groups
Groups
ESAPI Project Users
Conversations
About
Send feedback
Help
DefaultEncoder and encodeForLDAP
80 views
Skip to first unread message
Jeffrey Walton
unread,
Jun 28, 2022, 11:27:54 AM
6/28/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ESAPI Project Users
Hi Everyone/Kevin,
I was looking at ESAPI's encodeForLDAP at
https://github.com/ESAPI/esapi-java-legacy/blob/develop/src/main/java/org/owasp/esapi/reference/DefaultEncoder.java#L302
. I took a look at [1], and it is textbook LDAP filtering. The filtering does not include AND ('&') OR ('|') and some other operators like EQUAL ('=') and NOT ('!').
My question is, is the recommended LDAP filtering sufficient to avoid a LDAP Injection given the encoder does not include the operators?
[1]
https://social.technet.microsoft.com/wiki/contents/articles/5312.active-directory-characters-to-escape.aspx
Jeff
Reply all
Reply to author
Forward
0 new messages