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

LDAP connector doesn't escape input #480

Closed
ericchiang opened this issue Jun 21, 2016 · 1 comment
Closed

LDAP connector doesn't escape input #480

ericchiang opened this issue Jun 21, 2016 · 1 comment

Comments

@ericchiang
Copy link
Contributor

A hypothetical setup of the LDAP connector is to auth without search against a specific directory.

    {
        "type": "ldap",
        "id": "ldap",
        "host": "127.0.0.1:389",
        "useTLS": true,
        "baseDN": "cn=users,cn=accounts,dc=auth,dc=example,dc=com",
        "bindTemplate": "uid=%u,%d"
    }

If I enter the username "janedoe" the result bind becomes

uid=janedoe,cn=users,cn=accounts,dc=auth,dc=example,dc=com

However I can trivially access sub directories by including them in my username. E.g. "janedoe,cn=admins" would become

uid=janedoe,cn=admins,cn=users,cn=accounts,dc=auth,dc=example,dc=com

Investigate proper escape strategies for LDAP DN entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant