CVE-2023-49783: Silverstripe/admin No Permission Checks For Editing/deleting Vulnerability
MODERATECVE-2023-49783 is a MODERATE (CVSS 4.3) no permission checks for editing/deleting vulnerability (CWE-863: Incorrect Authorization) affecting Silverstripe/admin libraries in the Packagist ecosystem. The issue involves no permission checks for editing/deleting records with csv import form. Remediation is available by upgrading affected packages to version 1.13.19, 2.1.8.
CVE-2023-49783 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2023-49783
To remediate this vulnerability, upgrade all affected Silverstripe/admin 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/admin to 1.13.19
Upgrade silverstripe/admin to 2.1.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for silverstripe/admin
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-49783, inspect your project dependencies for Silverstripe/admin:
inspect dependencies for silverstripe/admin
Analyze the terminal output to locate any version of Silverstripe/admin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13.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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Silverstripe/admin, 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
CVE-2023-49783 Affected Silverstripe/admin Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/admin
|
Packagist |
≥ 1.0.0
< 1.13.19
|
1.13.19
|
|
silverstripe/admin
|
Packagist |
≥ 2.0.0
< 2.1.8
|
2.1.8
|
References
Frequently Asked Questions
What is CVE-2023-49783?
Which Silverstripe/admin versions are affected?
What version fixes CVE-2023-49783?
Is silverstripe/admin affected?
What is the CVSS score of CVE-2023-49783?
What CWE is associated with CVE-2023-49783?
How can I check Packagist dependencies for CVE-2023-49783?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j3m6-gvm8-mhvw",
"modified" : "2024-01-29T14:21:39Z",
"published" : "2024-01-23T20:09:52Z",
"aliases" : [ "CVE-2023-49783" ],
"summary" : "No permission checks for editing/deleting records with CSV import form",
"details" : "### Impact\nUsers who don't have edit or delete permissions for records exposed in a `ModelAdmin` can still edit or delete records using the CSV import form, provided they have create permissions.\n\nThe likelyhood of a user having create permissions but _not_ having edit or delete permissions is low, but it _is_ possible.\n\nNote that this doesn't affect any `ModelAdmin` which has had the import form disabled via the [`showImportForm` public property](https://api.silverstripe.org/4/SilverStripe/Admin/ModelAdmin.html#property_showImportForm), nor does it impact the `SecurityAdmin` section.\n\n#### Action may be required\n\nIf you have a custom implementation of [`BulkLoader`](https://api.silverstripe.org/4/SilverStripe/Dev/BulkLoader.html), you should update your implementation to respect permissions when the return value of [`getCheckPermissions()`](https://api.silverstripe.org/4/SilverStripe/Dev/BulkLoader.html#method_getCheckPermissions) is true.\n\nIf you are using any `BulkLoader` in your own project logic, or maintain a module which uses it, you should consider passing `true` to [`setCheckPermissions()`](https://api.silverstripe.org/4/SilverStripe/Dev/BulkLoader.html#method_setCheckPermissions) if the data is provided by users.\n\n**Base CVSS:** [4.3](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/E:F/RL:O/RC:C&version=3.1)\n**Reported by:** Guy Sartorelli from Silverstripe\n\n### References\n- https://www.silverstripe.org/download/security-releases/CVE-2023-49783\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/admin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.13.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/admin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.1.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-admin/security/advisories/GHSA-j3m6-gvm8-mhvw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-49783"
}, {
"type" : "WEB",
"url" : "https://github.com/silverstripe-security/security-issues/issues/177"
}, {
"type" : "WEB",
"url" : "https://github.com/silverstripeltd/product-issues/issues/832"
}, {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-admin/commit/9693130a0a637cdf512277cf5f07e83250b191db"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/admin/CVE-2023-49783.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/silverstripe/silverstripe-admin"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/CVE-2023-49783"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-23T20:09:52Z",
"nvd_published_at" : "2024-01-23T14:15:37Z"
}
}