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

Err on null password login #1119

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Conversation

dbauszus-glx
Copy link
Member

User can be added with the api/user/add endpoint. These user have null as password. User with a null password cannot reset their password. The primary use case for these user is to provide a user object for SAML and other third party login.

The account should not get locked trying to login with a random password.

The fromACL method should return an appropriate error when a user with null password attempts to login with password.

The bcrypt method will crash the process attempting to compare string with null/object. This must not happen.

The user must returned as undefined fromACL to prevent the failed login counter to lock the account.

@dbauszus-glx dbauszus-glx added the Security Ticket relates to either the authentication process, security headers, and or encryption. label Feb 7, 2024
Copy link

sonarcloud bot commented Feb 7, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@dbauszus-glx dbauszus-glx merged commit 2cf1041 into GEOLYTIX:main Feb 8, 2024
5 checks passed
@dbauszus-glx dbauszus-glx deleted the null-password branch March 15, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Security Ticket relates to either the authentication process, security headers, and or encryption.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants