Vulnerability library
Security checkOctober 08, 2024

Saltcorn Server allows logged-in users to delete arbitrary files because of a path traversal vulnerability

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@saltcorn/server

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the @saltcorn/server package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 1.0.0-beta.15
  • Patched version(s): 1.0.0-beta.16

References

Could your website be exposed too?

SmartScanner can check your website for Saltcorn Server allows logged-in users to delete arbitrary files because of a path traversal vulnerability and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 08, 2024