TeskaLabs / seacat-auth

SeaCat Auth provides authentication, authorization, identity management, session management and other access control features.
GNU General Public License v3.0
11 stars 6 forks source link

Deny password change when old password verification fails #374

Closed byewokko closed 1 month ago

byewokko commented 1 month ago

Issue

When an incorrect old password is entered in the Change password form, authentication failure is logged, but the password change still proceeds. This is a serious security bug.

Solution

The server responds with 401 immediately after the failed old password verification.

This should be considered a hotfix - a proper refactoring is needed: