GHSA-r3pr-fh25-wrfc:
silverstripe/framework's install.php script discloses sensitive data by pre-populating DB credential forms
6.5
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
5/27/2024
Updated
5/27/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
silverstripe/framework | composer | >= 4.0.0-rc1, < 4.0.1 | 4.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from password fields being pre-populated with actual credentials from environment variables. The patch introduced a $realPassword parameter to these functions to control password redaction. In vulnerable versions, these functions always returned raw environment values (SS_DATABASE_PASSWORD/SS_DEFAULT_ADMIN_PASSWORD) which were directly embedded in HTML form 'value' attributes. The functions' output was used in config-form.html rendering, making them the root cause of the disclosure. The commit modifies these exact functions to implement placeholder substitution, confirming their role in the vulnerability.