### [CVE-2024-47818](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-47818) ![](https://img.shields.io/static/v1?label=Product&message=saltcorn&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=%3D%20%3C%201.0.0-beta.16%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-22%3A%20Improper%20Limitation%20of%20a%20Pathname%20to%20a%20Restricted%20Directory%20('Path%20Traversal')&color=brighgreen) ### 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. ### POC #### Reference - https://github.com/saltcorn/saltcorn/security/advisories/GHSA-43f3-h63w-p6f6 #### Github - https://github.com/dellalibera/dellalibera