Authenticated file deletion via unsanitized sync directory
Published Oct 7, 2024 · Updated Oct 8, 2024
Path traversal in Saltcorn before 1.0.0-beta.16 allows remote authenticated users to delete arbitrary server files. The sync/clean_sync_dir route joins the unsanitized dir_name POST value beneath the sync directory and passes the result to recursive, forced fs.rm deletion. Any logged-in role with a valid session and CSRF token can traverse outside that directory and remove files, interrupting dependent services.
Summary
What happened
Path traversal in Saltcorn before 1.0.0-beta.16 allows remote authenticated users to delete arbitrary server files. The sync/clean_sync_dir route joins the unsanitized dir_name POST value beneath the sync directory and passes the result to recursive, forced fs.rm deletion. Any logged-in role with a valid session and CSRF token can traverse outside that directory and remove files, interrupting dependent services.
The record
- CVE
- CVE-2024-47818
- Published
- Oct 7, 2024
- Updated
- Oct 8, 2024
- Vendor
- Saltcorn Collective Ltd
- Product
- Saltcorn
- Classifications
- CWE-22, T1485
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 7, 2024CVE publishedPublication date reported by the CVE source.
- Oct 8, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <1.0.0-beta.16
- Affected versionversion=< 1.0.0-beta.16
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Authenticated clean_sync_dir path-traversal proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo