Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAS-1429 Escape inputs into LDAP filter expressions. #411

Merged
merged 1 commit into from
Jan 12, 2015

Conversation

serac
Copy link
Contributor

@serac serac commented Mar 5, 2014

This prevents LDAP injection attacks. Note this patch is only relevant for the 3.5.x branch since master is based on ldaptive, which properly handles character escaping.

This prevents LDAP injection attacks.
@leleuj
Copy link
Contributor

leleuj commented Mar 6, 2014

+1

@leleuj
Copy link
Contributor

leleuj commented Mar 6, 2014

Maybe a test to check that the characters are properly escaped now would be great...

@serac
Copy link
Contributor Author

serac commented Mar 6, 2014

Good suggestion on test. LDAP tests are notoriously difficult due to lack of a test fixture that provides a directory to test against, but testing encoding may be possible.

@mmoayyed mmoayyed closed this Jul 15, 2014
@mmoayyed mmoayyed reopened this Jul 15, 2014
leleuj added a commit that referenced this pull request Jan 12, 2015
CAS-1429 Escape inputs into LDAP filter expressions.
@leleuj leleuj merged commit 7de61b4 into apereo:3.5.x Jan 12, 2015
@mmoayyed mmoayyed added this to the 3.5.3 milestone Jan 12, 2015
mmoayyed pushed a commit that referenced this pull request Sep 19, 2016
CAS-1429 Escape inputs into LDAP filter expressions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants