Advisory

GHSA-j3m6-gvm8-mhvw

Also known as: CVE-2023-49783

Summary

No permission checks for editing/deleting records with CSV import form

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-01-23 20:09 UTC
Modified
2024-02-16 08:17 UTC

Affected packages and fixes

silverstripe/admin

Packagist · All systems

Affected

  • introduced 1.0.0, fixed 1.13.19 (ecosystem)

Fixed versions

1.13.19

Fix

The export has no generic command for this ecosystem.

silverstripe/admin

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.1.8 (ecosystem)

Fixed versions

2.1.8

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences