Headline
GHSA-j3m6-gvm8-mhvw: No permission checks for editing/deleting records with CSV import form
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.
References
- https://www.silverstripe.org/download/security-releases/CVE-2023-49783
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.
References
- https://www.silverstripe.org/download/security-releases/CVE-2023-49783
References
- GHSA-j3m6-gvm8-mhvw
- https://nvd.nist.gov/vuln/detail/CVE-2023-49783
- https://github.com/silverstripe-security/security-issues/issues/177
- https://github.com/silverstripeltd/product-issues/issues/832
- silverstripe/silverstripe-admin@9693130
- https://www.silverstripe.org/download/security-releases/CVE-2023-49783