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

SECURITY: execute_ldapsearch() in /common/util.hpp doesn't appear to be using channel binding. #164

Open
3BK opened this issue Jan 16, 2025 · 14 comments

Comments

@3BK
Copy link

3BK commented Jan 16, 2025

I'm sure you know but just in case, there is a 50+% chance that the execute_ldapsearch() method in /common/util.hpp is not using channel binding.

https://support.microsoft.com/en-us/topic/2020-2023-and-2024-ldap-channel-binding-and-ldap-signing-requirements-for-windows-kb4520412-ef185fb8-00f7-167d-744c-f299a66fc00a

@3BK
Copy link
Author

3BK commented Jan 16, 2025

Added @bhallasaksham

@3BK
Copy link
Author

3BK commented Jan 16, 2025

Added @smhmhmd

@3BK
Copy link
Author

3BK commented Jan 16, 2025

Added @muskanlalit18

@3BK 3BK changed the title execute_ldapsearch() in /common/util.hpp doesn't appear to be using channel binding. SECURITY: execute_ldapsearch() in /common/util.hpp doesn't appear to be using channel binding. Jan 16, 2025
@3BK
Copy link
Author

3BK commented Jan 16, 2025

Hopefully the utility is no longer in use.

@3BK
Copy link
Author

3BK commented Jan 16, 2025

Channel signing

/etc/ldap/ldap.conf:

TLS_CACERT /path/to/trusted/ldap_ca

from the repository root:

sed -i 's/ldap\:\/\//ldaps\:\/\//g' ./common/util.hpp

@bhallasaksham
Copy link
Contributor

Thanks for reaching out to us @3BK. Team is currently investigating and we'll get back to you once we have more information.

@3BK
Copy link
Author

3BK commented Jan 16, 2025

https://ldapwiki.com/wiki/Wiki.jsp?page=Channel%20Binding

@smhmhmd
Copy link
Contributor

smhmhmd commented Jan 17, 2025

@3BK
ldapsearch in Credentials-fetcher currently uses a kerberos ticket, it is LDAP over kerberos.
Why do we need LDAP over kerberos over SSL ?

@3BK
Copy link
Author

3BK commented Jan 17, 2025 via email

@smhmhmd
Copy link
Contributor

smhmhmd commented Jan 17, 2025

@3BK

Ok, this issue is an enhancement not a security vulnerability.
We will add this to the backlog, we can keep the issue open and keep you posted.

Is this okay with you ?

Thanks for filing the issue, by the way.

@smhmhmd
Copy link
Contributor

smhmhmd commented Jan 17, 2025

@3BK

We would love to have a meeting with you, please email samiull at amazon dot com

@3BK
Copy link
Author

3BK commented Jan 17, 2025 via email

@3BK
Copy link
Author

3BK commented Jan 17, 2025

@3BK

Ok, this issue is an enhancement not a security vulnerability. We will add this to the backlog, we can keep the issue open and keep you posted.

Is this okay with you ?

No issues. Thanks.

@3BK
Copy link
Author

3BK commented Jan 17, 2025

Background reading:

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

No branches or pull requests

3 participants