PT-2024-40243 · Saltcorn · Saltcorn

Published

2024-10-03

·

Updated

2024-10-03

CVSS v4.0

5.4

Medium

VectorAV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Name of the Vulnerable Software and Affected Versions: Saltcorn version 1.0.0-beta.13
Description: A user with admin permission can read arbitrary file and directory names on the filesystem by calling the "/build-mobile-app/result" endpoint. The build dir name parameter is not properly validated and is used to construct the buildDir that is read. The file/directory names under the buildDir will be returned. This issue allows for information disclosure, but it's possible to only see file and directory names, not their content.
Recommendations: For Saltcorn version 1.0.0-beta.13, resolve the buildDir and check if it starts with the expected path to prevent arbitrary file and directory name disclosure. As a temporary workaround, consider restricting access to the "/build-mobile-app/result" endpoint for admin users until a patch is available.

Fix

Weakness Enumeration

Related Identifiers

GHSA-CFQX-F43M-VFH7

Affected Products

Saltcorn