LowGHSA-36xx-7vf6-7mv3CVE-2023-32302

Silverstripe Framework: Members with no password can be created and bypass custom login forms

Published 31 Jul 2023 · Updated 16 Feb 2024

Is your project on an affected silverstripe/framework?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=3.0.0 <4.13.14
Fixed in
4.13.14
Update to the fixed version for your release line, for example:composer require silverstripe/framework:^4.13.14
Affected
>=5.0.0 <5.0.13
Fixed in
5.0.13
Update to the fixed version for your release line, for example:composer require silverstripe/framework:^5.0.13

Details

When a new Member record was created in the cms it was possible to set a blank password. If an attacker knows the email address of the user with the blank password then they can attempt to log in using an empty password. The default member authenticator, login form and basic auth all require a non-empty password, however if a custom authentication method is used it may allow a successful login with the empty password. Starting with this release, blank passwords are no no longer allowed when members are created in the CMS. Programatically created Member records, such as those used in unit tests, still allow blank passwords. You may have some Member records in your system already which have empty passwords. To detect these, you can loop over all Member records with Member::get() and pass each record into the below method. It might be sensible to create a `BuildTask` for this purpose.

    private function memberHasBlankPassword(Member $member): bool
    {
        // skip default admin as this is created programatically
        if ($member->isDefaultAdmin()) {
            return false;
        }
        // return true if a blank password is valid for this member
        $authenticator = new MemberAuthenticator();
        return $authenticator->checkPassword($member, '')->isValid();
    }

Once you have identified the records with empty passwords, it's up to you how to handle this. The most sensible way to resolve this is probably to generate a new secure password for each of these members, mark it as immediately expired, and email each affected member (assuming they have a valid email address in the system).

Users would need to opt-in to insecure behavior by using a configuration which allowed for empty passwords. These configurations are not expected and hence this advisory is primarily informational in nature.

Reported by: Sabina Talipova from Silverstripe and Christian Bünte

Is GHSA-36xx-7vf6-7mv3 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected silverstripe/framework, and gives you the command that fixes it.

More advisories for silverstripe/framework

  • MediumCVE-2026-54720Silverstripe Framework: Possible XSS attack through media embed · 27 Aug 2026
  • MediumGHSA-256q-hx8w-xcqxSilverstripe Framework user enumeration via timing attack on login and password reset forms · 10 Apr 2025
  • MediumCVE-2025-30148Silverstripe Framework has a XSS vulnerability in HTML editor · 10 Apr 2025
  • LowGHSA-74j9-xhqr-6qv3Reflected Cross Site Scripting (XSS) in error message · 23 Jan 2025
  • LowGHSA-mqf3-qpc3-g26qSilverstripe Framework has a Reflected Cross Site Scripting (XSS) in error message · 14 Jan 2025
  • MediumCVE-2024-53277Silverstripe Framework has a XSS in form messages · 14 Jan 2025
All 93 advisories for silverstripe/framework

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.