CVE-2023-32302: Silverstripe Framework Members With No Password Can Vulnerability

LOW
Advisory Identifier: GHSA-36xx-7vf6-7mv3
CVSS 0.0
CWE-20 CWE-862
Published
Advisory Summary

CVE-2023-32302 is a LOW (CVSS 0.0) members with no password can vulnerability (CWE-20: Improper Input Validation) affecting Silverstripe Framework libraries in the Packagist ecosystem. The issue involves members with no password can be created and bypass custom login forms. Remediation is available by upgrading affected packages to version 4.13.14, 5.0.13.

CVE-2023-32302 at a Glance

CVE Identifier CVE-2023-32302
GHSA Identifier GHSA-36xx-7vf6-7mv3
Severity LOW
CVSS v3.1 Base Score 0.0
CWE Classification CWE-20: Improper Input Validation
Affected Product Silverstripe Framework
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 0.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-32302

To remediate this vulnerability, upgrade all affected Silverstripe Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

silverstripe/framework fixed: 4.13.14
Upgrade silverstripe/framework to 4.13.14
silverstripe/framework fixed: 5.0.13
Upgrade silverstripe/framework to 5.0.13
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for silverstripe/framework

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-32302, inspect your project dependencies for Silverstripe Framework:

inspect dependencies for silverstripe/framework

Analyze the terminal output to locate any version of Silverstripe Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.13.14), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Silverstripe Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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`](https://api.silverstripe.org/5/SilverStripe/Dev/BuildTask.html) for this purpose. ```php 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](https://www.silverstripe.com/about-us/team/?member=sabina-talipova) from Silverstripe and [Christian Bünte](https://github.com/bimthebam)

CVE-2023-32302 Affected Silverstripe Framework Versions

2 component(s)
Fixed Versions:
4.13.145.0.13
Product / Package Ecosystem Affected Versions Fixed Version
silverstripe/framework
Packagist
≥ 3.0.0
< 4.13.14
4.13.14
silverstripe/framework
Packagist
≥ 5.0.0
< 5.0.13
5.0.13

References

Frequently Asked Questions

What is CVE-2023-32302?
CVE-2023-32302 is a security vulnerability in Silverstripe Framework involving Members with no password can be created and bypass custom login forms under CWE-20: Improper Input Validation.
Which Silverstripe Framework versions are affected?
Affected versions include releases prior to 4.13.14, 5.0.13 across affected packages: silverstripe/framework.
What version fixes CVE-2023-32302?
Upgrading to 4.13.14, 5.0.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/framework affected?
Yes, silverstripe/framework is affected in releases prior to 4.13.14, 5.0.13. Upgrade your dependency to 4.13.14, 5.0.13 or later.
What is the CVSS score of CVE-2023-32302?
CVE-2023-32302 has a CVSS v3.1 base score of 0.0 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:N.
What CWE is associated with CVE-2023-32302?
CVE-2023-32302 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for CVE-2023-32302?
Run the dependency tree command: 'inspect dependencies for silverstripe/framework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-36xx-7vf6-7mv3",
  "modified" : "2023-10-04T17:11:40Z",
  "published" : "2023-07-31T22:00:58Z",
  "aliases" : [ "CVE-2023-32302" ],
  "summary" : "Silverstripe Framework: Members with no password can be created and bypass custom login forms",
  "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`](https://api.silverstripe.org/5/SilverStripe/Dev/BuildTask.html) for this purpose.\n  ```php\n    private function memberHasBlankPassword(Member $member): bool\n    {\n        // skip default admin as this is created programatically\n        if ($member->isDefaultAdmin()) {\n            return false;\n        }\n        // return true if a blank password is valid for this member\n        $authenticator = new MemberAuthenticator();\n        return $authenticator->checkPassword($member, '')->isValid();\n    }\n  ```\n  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).\n\nUsers 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.\n\nReported by: [Sabina Talipova](https://www.silverstripe.com/about-us/team/?member=sabina-talipova) from Silverstripe and [Christian Bünte](https://github.com/bimthebam)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "4.13.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.0.13"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-framework/security/advisories/GHSA-36xx-7vf6-7mv3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32302"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/pull/2575"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-framework/commit/7b21b38ac4532d06565dfcefad50540ebd2b50f4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2023-32302.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/silverstripe/silverstripe-framework"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-framework/releases/tag/4.13.14"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-framework/releases/tag/5.0.13"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/download/security-releases/CVE-2023-32302"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-862" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-31T22:00:58Z",
    "nvd_published_at" : "2023-08-01T11:15:09Z"
  }
}