Skip to content
OpenAdvisories
Medium · 6.5 CVE-2024-47818 EUVD-2024-2925GHSA-43f3-h63w-p6f6

Logged-in users with any role can delete arbitrary files in @saltcorn/server

Published Oct 7, 2024 · Updated Oct 8, 2024 · Assigned by GitHub_M

Description

Saltcorn is an extensible, open source, no-code database application builder. A logged-in user with any role can delete arbitrary files on the filesystem by calling the `sync/clean_sync_dir` endpoint. The `dir_name` POST parameter is not validated/sanitized and is used to construct the `syncDir` that is deleted by calling `fs.rm`. This issue has been addressed in release version 1.0.0-beta16 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected products

VendorProductAffectedFixed
saltcorn saltcorn < 1.0.0-beta.16 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @saltcorn/server < 1.0.0-beta.16 1.0.0-beta.16 GHSA-43f3-h63w-p6f6

References