Skip to content

GHSA-p5h2-vr99-xm99 silverstripe/framework ChangePasswordForm does not check `Member::canLogIn()`

MediumCVSS 4.3
Published
Updated
Exploit status
No public exploit known
Technology
PHP

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
silverstripe/framework(Packagist) = 3.1.19; = 3.1.19-rc1; = 3.1.20-rc1; = 3.1.20-rc2 +16 more 3.1.20, 3.2.5, 3.3.3, 3.4.1 Fixed

Affected products

ProductAffected versionsFixed in
silverstripe/framework(Packagist) >= 3.1.19-rc1, < 3.1.20 3.1.20
silverstripe/framework(Packagist) = 3.1.19 No fix listed
silverstripe/framework(Packagist) = 3.1.19-rc1 No fix listed
silverstripe/framework(Packagist) = 3.1.20-rc1 No fix listed
silverstripe/framework(Packagist) = 3.1.20-rc2 No fix listed
silverstripe/framework(Packagist) >= 3.2.4-rc1, < 3.2.5 3.2.5
silverstripe/framework(Packagist) = 3.2.4 No fix listed
silverstripe/framework(Packagist) = 3.2.4-rc1 No fix listed
silverstripe/framework(Packagist) = 3.2.5-rc1 No fix listed
silverstripe/framework(Packagist) = 3.2.5-rc2 No fix listed
silverstripe/framework(Packagist) >= 3.3.2-rc1, < 3.3.3 3.3.3
silverstripe/framework(Packagist) = 3.3.2 No fix listed
silverstripe/framework(Packagist) = 3.3.2-rc1 No fix listed
silverstripe/framework(Packagist) = 3.3.3-rc1 No fix listed
silverstripe/framework(Packagist) = 3.3.3-rc2 No fix listed
silverstripe/framework(Packagist) >= 3.4.0-rc1, < 3.4.1 3.4.1
silverstripe/framework(Packagist) = 3.4.0 No fix listed
silverstripe/framework(Packagist) = 3.4.0-rc1 No fix listed
silverstripe/framework(Packagist) = 3.4.1-rc1 No fix listed
silverstripe/framework(Packagist) = 3.4.1-rc2 No fix listed

References