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

SCRAM Mechanism returns incorrect error code on wrong password #545

Closed
quanah opened this issue Nov 18, 2018 · 6 comments
Closed

SCRAM Mechanism returns incorrect error code on wrong password #545

quanah opened this issue Nov 18, 2018 · 6 comments

Comments

@quanah
Copy link
Contributor

quanah commented Nov 18, 2018

This was incorrectly reported to the OpenLDAP project: https://www.openldap.org/its/index.cgi/?findid=8936

The code remains wrong in current cyrus-sasl master:

1431     for (k = 0; k < hash_size; k++) {
1432     if (CalculatedStoredKey[k] != text->StoredKey[k]) {
1433         SETERROR(sparams->utils, "StoredKey mismatch");
1434         result = SASL_BADPROT;
1435         goto cleanup;
1436     }
@Neustradamus
Copy link
Contributor

@quanah: Any news?

@quanah
Copy link
Contributor Author

quanah commented Jul 25, 2019

@Neustradamus This project appears to primarily be ignored by Fastmail, so no.

@Neustradamus
Copy link
Contributor

@ksmurchison: What do you think about this ticket from @quanah?

SCRAM is very important for projects which use it, currently it is very limited.

@brong, @ksmurchison, do not forget: There is a problem of priority for SCRAM-SHA-256 and SCRAM-SHA-1:

Any news for other points?

It is easy to add -PLUS part, no?

Documentation problems:

@ksmurchison
Copy link
Contributor

Is there a PR to fix the error code?

@quanah
Copy link
Contributor Author

quanah commented Aug 9, 2019

Is there a PR to fix the error code?

There is now. :)

ksmurchison added a commit that referenced this issue Aug 9, 2019
Fixes #545 -- Correctly return BADAUTH on incorrect password
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