Junglewise Threat Intelligence

CVE-2023-46497: EverShop directory traversal in folder creation

CVE-2023-46497 · Severity: low · CVSS 3.1 · Published 2023-12-08

Technologies: EverShop, @evershop/evershop (npm). Vendors: EverShop, npm.

Executive brief

EverShop is a Node.js-based e-commerce platform that allows merchants to build online storefronts. A directory traversal vulnerability in the folder creation endpoint allows authenticated attackers to read sensitive files outside the intended directory structure, potentially exposing configuration files, source code, or other confidential data stored on the server.

Technical details

The vulnerability exists in the createFolder.js endpoint's use of the mkdirSync function, which fails to properly validate user-supplied path input. An authenticated attacker (authentication is required) can craft a malicious request containing path traversal sequences (e.g., "../") to create directories outside the intended application directory and access sensitive files. The vulnerability allows disclosure of confidential information and potentially limited file system modification. This issue affects all EverShop versions before 1.0.0-rc.8, where the path validation was fixed.

Affected products

  • EverShop EverShop before 1.0.0-rc.8

Timeline

  • 2023-12-08: disclosed: Vulnerability published
  • 2023-09-27: patched: Fix merged in PR #338 to main branch

References

Related threats