Skip to content

Application Specific password requirements not included in validation in PasswordResetHandler #101

@lgratrix-techempower

Description

@lgratrix-techempower

BasicSecurity.constructPasswordRequirements expects that it will be overwritten by applications in their extension of it. These requirements are enforced when calling BasicSecurity.passwordChange. However, in PasswordResetHandler.authorize the input is validated through getPasswordResetValidatorSet() process, which doesn't consider the application specific requirements. PasswordResetHandler.authorize allows those passwords that pass the default validation but would fail the application specific ones to make it past the validation step, but when it comes time to actually save, the password will fail. There is no failure indicated back to the caller here, so the user believes they have updated their password when they haven't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions