Skip to content

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

MediumCVSS 6.5 EPSS 0.78%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
saltcorn @saltcorn/server(npm) < 1.0.0-beta.16; <= 1.0.0-beta.15 1.0.0-beta.16 Fixed
saltcorn collective ltd saltcorn < 1.0.0-beta.16 1.0.0-beta.16 Fixed
saltcorn = < 1.0.0-beta.16 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
saltcorn @saltcorn/server(npm) <= 1.0.0-beta.15 No fix listed
saltcorn = < 1.0.0-beta.16 No fix listed
saltcorn collective ltd saltcorn < 1.0.0-beta.16 1.0.0-beta.16
saltcorn @saltcorn/server(npm) < 1.0.0-beta.16 1.0.0-beta.16

References