hamano / openldap-pbkdf2

PBKDF2 for OpenLDAP
34 stars 7 forks source link

Bugs #12

Closed satleeixn closed 5 years ago

satleeixn commented 6 years ago
  1. In function b64_to_ab64(): the function does not work as expected, if the first character is a '+'. This results in the creation of invalid hashes, if the base64 of the salt or the derived key starts with a '+'.
  2. In function init_module(): The lines 684-691 (starting with SECStatus rv; ) are specific for Mozilla NSS and prevent the compilation of the plugin without Mozilla NSS.
  3. The Makefile does not mention libssl, which may be required by the plugin, if compiled against OpenSSL only.
satleeixn commented 6 years ago

Since it seems unclear, what problems the bug (1.) causes, what problems a bug-fix will cause and whether a bug-fix is worth the effort, maybe make a branch of the project where you quick-fix the bug. [pw-pbkdf2.c: new line 70: for(;*p;p++){ ] Remind users, that this branch requires corrected hashes (in hashes using the PBKDF2-schemes all '+'-chars must be replaced by '.'-chars.) New OpenLDAP instances can then start without the bug. And (test-)users can decide, whether the bug-fix is worth the effort. Once you get enough feedback from users, you can then decide how to fix the problem in the master branch.

hamano commented 6 years ago

@satleeixn Could you make PR? I just created issue12 branch. thanks

satleeixn commented 6 years ago

@hamano Sorry, I'm not a security researcher. I'm just a developer with a dead-line. Maybe you should ask the people from the OpenLDAP project for help. In case you have not much experience with making errors/error fixing, here are some more suggestions what you can do:

satleeixn commented 6 years ago

We tested the plugin with the one-line-fix above. So far we have no problems:

All in all the issue seems to be mostly harmless if not cosmetic.

hamano commented 5 years ago

I'm sorry for the late response. just merged upstream patch. many thanks.