{"id":"GHSA-j3m6-gvm8-mhvw","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","aliases":["CVE-2023-49783"],"modified":"2024-01-29T14:31:23.763887Z","published":"2024-01-23T20:09:52Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-01-23T20:09:52Z","nvd_published_at":"2024-01-23T14:15:37Z","cwe_ids":["CWE-863"],"severity":"MODERATE"},"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"}],"affected":[{"package":{"name":"silverstripe/admin","ecosystem":"Packagist","purl":"pkg:composer/silverstripe/admin"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.13.19"}]}],"versions":["1.0.0","1.0.1","1.0.1-rc1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.1.0","1.1.0-rc1","1.1.0-rc2","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.10.0","1.10.0-beta1","1.10.0-rc1","1.10.1","1.10.2","1.10.3","1.10.4","1.11.0","1.11.0-beta1","1.11.0-rc1","1.11.1","1.11.2","1.11.3","1.12.0","1.12.0-beta1","1.12.0-rc1","1.12.1","1.12.2","1.12.3","1.12.4","1.12.5","1.12.6","1.12.7","1.13.0","1.13.0-beta1","1.13.0-rc1","1.13.1","1.13.10","1.13.11","1.13.12","1.13.13","1.13.14","1.13.15","1.13.16","1.13.17","1.13.18","1.13.2","1.13.3","1.13.4","1.13.5","1.13.6","1.13.7","1.13.8","1.13.9","1.2.0","1.2.0-beta1","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.3.0","1.3.0-rc1","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.4.0","1.4.0-rc1","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.5.0","1.5.0-alpha1","1.5.0-rc1","1.5.0-rc2","1.5.1","1.5.2","1.6.0","1.6.0-beta1","1.6.0-rc1","1.6.1","1.6.2","1.6.3","1.6.4","1.7.0","1.7.0-beta1","1.7.0-rc1","1.7.1","1.7.2","1.7.3","1.7.4","1.8.0","1.8.0-beta1","1.8.0-rc1","1.8.1","1.9.0","1.9.0-alpha1","1.9.0-beta1","1.9.0-rc1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-j3m6-gvm8-mhvw/GHSA-j3m6-gvm8-mhvw.json"}},{"package":{"name":"silverstripe/admin","ecosystem":"Packagist","purl":"pkg:composer/silverstripe/admin"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.1.8"}]}],"versions":["2.0.0","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.0-beta1","2.1.0-rc1","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.1.7"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-j3m6-gvm8-mhvw/GHSA-j3m6-gvm8-mhvw.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"}]}