GHSA-p5h2-vr99-xm99
JSON

4.3medium

silverstripe/framework ChangePasswordForm does not check `Member::canLogIn()`

Severity
4.3medium CVSS:3.1 by GitHub
Published
Last changed

Description

After performing a password reset, ChangePasswordForm::doChangePassword() logs in the user without checking Member::canLogIn(). This presents an issue for sites that are using the extension point in that method to deny access to users (for example members that have not been “approved”, or members that have had their access revoked temporarily). It looks like Member::canLogIn() was originally designed to only be used for checking whether the user is locked out (due to too many incorrect login attempts) but has been opened up to other uses.

Affected

Product or packageVersionsReported by
silverstripe/framework (Packagist)from 3.1.19-rc1 before 3.1.20, from 3.2.4-rc1 before 3.2.5, from 3.3.2-rc1 before 3.3.3, from 3.4.0-rc1 before 3.4.1GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-p5h2-vr99-xm99 changed 2024-12-02CC-BY-4.0