10000 Added a caution note about the LDAP injection attacks by javiereguiluz · Pull Request #7508 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Added a caution note about the LDAP injection attacks #7508

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

Merged
merged 1 commit into from
Mar 13, 2017

Conversation

javiereguiluz
Copy link
Member

After reading this comment by @csarrazi I'm not sure which protection does the LDAP component offer and which one it doesn't ... so please, review this carefully. Thanks!

@csarrazi
Copy link
Contributor

👍

The Security component escapes values provided when binding against an LDAP
server (likewise for the user provider). However, the LDAP component does
not provide any other escaping, so it's your responsibility to prevent
the LDAP injection attacks.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would reword this a bit:

The Security component escapes provided input data when the LDAP user provider is used. However, the LDAP component itself does not provide any escaping yet. Thus, it's your responsibility to prevent LDAP injection attacks when using the component directly.

@javiereguiluz @csarrazi What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xabbuh your version is much better because it's easier to understand! Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also agree

@xabbuh
Copy link
Member
xabbuh commented Mar 13, 2017

Thank you Javier.

@xabbuh xabbuh merged commit dfc2867 into symfony:2.8 Mar 13, 2017
xabbuh added a commit that referenced this pull request Mar 13, 2017
…viereguiluz)

This PR was merged into the 2.8 branch.

Discussion
----------

Added a caution note about the LDAP injection attacks

After reading [this comment](#6795 (comment)) by @csarrazi I'm not sure which protection does the LDAP component offer and which one it doesn't ... so please, review this carefully. Thanks!

Commits
-------

dfc2867 Added a caution note about the LDAP injection attacks
xabbuh added a commit that referenced this pull request Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0