GitHub Advisoryadvisory · Packagist
GHSA-j3m6-gvm8-mhvw No permission checks for editing/deleting records with CSV import form
MEDIUM
Official page ↗
- Aliases
- CVE-2023-49783
- Ecosystem
- Packagist
- Packages
- silverstripe/admin
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- Weaknesses
- CWE-863
- Reviewed
- 2024-01-23
Affected packages
• Packagist silverstripe/admin: >= 1.0.0, < 1.13.19 → fixed in 1.13.19
• Packagist silverstripe/admin: >= 2.0.0, < 2.1.8 → fixed in 2.1.8
Description
Impact
Users 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.
The likelyhood of a user having create permissions but _not_ having edit or delete permissions is low, but it _is_ possible.
Note that this doesn't affect any `ModelAdmin` which has had the import form disabled via the `showImportForm` public property, nor does it impact the `SecurityAdmin` section.
Action may be required
If you have a custom implementation of `BulkLoader`, you should update your implementation to respect permissions when the return value of `getCheckPermissions()` is true.
If you are using any `BulkLoader` in your own project logic, or maintain a module which uses it, you should consider passing `true` to `setCheckPermissions()` if the data is provided by users.
Base CVSS: 4.3
Reported by: Guy Sartorelli from Silverstripe
References
• https://www.silverstripe.org/download/security-releases/CVE-2023-49783
Related
Alias · CVE (1)
- CVE-2023-49783 Silverstripe Admin provides a basic management interface for the Silverstripe Framework. vulnerability
Weakness · CWE (1)
- CWE-863 Incorrect Authorization weakness
References
- https://github.com/silverstripe/silverstripe-admin/security/advisories/GHSA-j3m6-gvm8-mhvw web
- https://nvd.nist.gov/vuln/detail/CVE-2023-49783 advisory
- https://github.com/silverstripe-security/security-issues/issues/177 web
- https://github.com/silverstripeltd/product-issues/issues/832 web
- https://github.com/silverstripe/silverstripe-admin/commit/9693130a0a637cdf512277cf5f07e83250b191db web
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/admin/CVE-2023-49783.yaml web
- https://github.com/silverstripe/silverstripe-admin package
- https://www.silverstripe.org/download/security-releases/CVE-2023-49783 web