Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @saltcorn/server
  4. ›
  5. GHSA-277h-px4m-62q8

GHSA-277h-px4m-62q8: @saltcorn/server arbitrary file zip read and download when downloading auto backups

October 3, 2024

A user with admin permission can read and download arbitrary zip files when downloading auto backups. The file name used to identify the zip file is not properly sanitized when passed to res.download API.

References

  • github.com/advisories/GHSA-277h-px4m-62q8
  • github.com/saltcorn/saltcorn
  • github.com/saltcorn/saltcorn/blob/v1.0.0-beta.13/packages/server/routes/admin.js
  • github.com/saltcorn/saltcorn/commit/024f19a7e079913f62f4a2335ab04116ddb68192
  • github.com/saltcorn/saltcorn/security/advisories/GHSA-277h-px4m-62q8

Code Behaviors & Features

Detect and mitigate GHSA-277h-px4m-62q8 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.0-beta.14

Fixed versions

  • 1.0.0-beta.14

Solution

Upgrade to version 1.0.0-beta.14 or above.

Impact 4.4 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/@saltcorn/server/GHSA-277h-px4m-62q8.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:06 +0000.