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

Wrong error message on login if the user doesn't exist and WireCrypt is disabled #7723

Closed
aafemt opened this issue Aug 25, 2023 · 4 comments
Closed

Comments

@aafemt
Copy link
Contributor

aafemt commented Aug 25, 2023

If WireCrypt is disabled an attempt to attach with non-existing user returns isc_login_error instead of isc_login.

Two problems here:

  1. It leaks security information about user existence.
  2. Some client code explicitly expect isc_login to be returned.
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect localhost:atest user aaaa password 'bbb';
Statement failed, SQLSTATE = 08006
Error occurred during login, please check server firebird.log for details
SQL> connect localhost:atest user abc password 'bbb';
Statement failed, SQLSTATE = 28000
Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
SQL> connect localhost:atest user abc password 'def';
Database: localhost:atest, User: ABC
@AlexPeshkoff
Copy link
Member

AlexPeshkoff commented Aug 28, 2023 via email

@aafemt
Copy link
Contributor Author

aafemt commented Aug 28, 2023

Try with WireCrypt=Disabled.

@AlexPeshkoff
Copy link
Member

AlexPeshkoff commented Aug 28, 2023 via email

@aafemt
Copy link
Contributor Author

aafemt commented Aug 28, 2023

I've updated this ticket.

@aafemt aafemt changed the title Wrong error message on login if the user doesn't exists Wrong error message on login if the user doesn't exists and WireCrypt is disabled Aug 28, 2023
@AlexPeshkoff AlexPeshkoff self-assigned this Aug 28, 2023
AlexPeshkoff added a commit that referenced this issue Aug 28, 2023
…nd WireCrypt is disabled

(cherry picked from commit f049b6f)
@mrotteveel mrotteveel changed the title Wrong error message on login if the user doesn't exists and WireCrypt is disabled Wrong error message on login if the user doesn't exist and WireCrypt is disabled Sep 21, 2023
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

3 participants