GHSA-vj2j-6g3w-4662: Silverstripe/framework Silverstripe Missing CSRF Protection Vulnerability
MODERATEGHSA-vj2j-6g3w-4662 is a MODERATE (CVSS 5.4) silverstripe missing csrf protection vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Silverstripe/framework libraries in the Packagist ecosystem. The issue involves silverstripe missing csrf protection in login form. Remediation is available by upgrading affected packages to version 3.1.19, 3.2.4, 3.3.2.
GHSA-vj2j-6g3w-4662 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N).
How to Fix GHSA-vj2j-6g3w-4662
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.
Upgrade silverstripe/framework to 3.1.19
Upgrade silverstripe/framework to 3.2.4
Upgrade silverstripe/framework to 3.3.2
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 GHSA-vj2j-6g3w-4662, 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 3.1.19), 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. 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
GHSA-vj2j-6g3w-4662 Affected Silverstripe/framework Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/framework
|
Packagist |
≥ 3.1.18
< 3.1.19
|
3.1.19
|
|
silverstripe/framework
|
Packagist |
≥ 3.2.3
< 3.2.4
|
3.2.4
|
|
silverstripe/framework
|
Packagist |
≥ 3.3.1
< 3.3.2
|
3.3.2
|
References
Frequently Asked Questions
What is GHSA-vj2j-6g3w-4662?
Which Silverstripe/framework versions are affected?
What version fixes GHSA-vj2j-6g3w-4662?
Is silverstripe/framework affected?
What is the CVSS score of GHSA-vj2j-6g3w-4662?
What CWE is associated with GHSA-vj2j-6g3w-4662?
How can I check Packagist dependencies for GHSA-vj2j-6g3w-4662?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vj2j-6g3w-4662",
"modified" : "2024-05-23T19:41:41Z",
"published" : "2024-05-23T19:41:41Z",
"aliases" : [ ],
"summary" : "Silverstripe Missing CSRF protection in login form",
"details" : "LoginForm calls disableSecurityToken(), which causes a \"shared host domain\" vulnerability: http://stackoverflow.com/a/15350123.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.18"
}, {
"fixed" : "3.1.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.2.3"
}, {
"fixed" : "3.2.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.3.1"
}, {
"fixed" : "3.3.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-framework/commit/a6bd22ab2f3b11a054d20be13306a19089510989"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2016-006-1.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/silverstripe/silverstripe-framework"
}, {
"type" : "WEB",
"url" : "https://stackoverflow.com/questions/6412813/do-login-forms-need-tokens-against-csrf-attacks/15350123#15350123"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/ss-2016-006"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-23T19:41:41Z",
"nvd_published_at" : null
}
}