-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Enabling TLS via users.ldap
disables peer checking
#27506
Comments
This has to be fixed for stable. We might break setups, but that's acceptable in this case IMHO. We have to send an advisory to nix-devel and nix-security to inform our users though. @grahamc Do you intend to fix this? I can handle this or support you. |
I'm working on a patch. |
master: 2b2a6f2 |
17.03: b3fa629 |
users.ldap
disables peer checknigusers.ldap
disables peer checking
Addressed, announced, and mail sent to oss-security. Working on a CVE. |
CVE-2017-11501 has been assigned to this vulnerability. |
Would it be possible to write a test case for this issue, such that it does not appear again in the future? |
I'm sure it could be done, @nbp :) I don't know LDAP though. Can you do it? |
I don't know much about LDAP, but I think the in the worse case we could assert that the line is not present in the final content of the configuration file. Still, I don't think we have any failing test case in NixOS at the moment. |
If someone enables TLS in users.ldap, our module turns off TLS peer checking. This must not be the default behavior, and should be changed ASAP. Not sure if we can apply this to stable or not.
https://github.com/NixOS/nixpkgs/blob/release-17.03/nixos/modules/config/ldap.nix#L20-L23
or pinned for time:
nixpkgs/nixos/modules/config/ldap.nix
Lines 20 to 23 in 07c44b8
The text was updated successfully, but these errors were encountered: