PT-2024-40243 · Saltcorn · Saltcorn
Published
2024-10-03
·
Updated
2024-10-03
CVSS v4.0
5.4
Medium
| Vector | AV: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
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Saltcorn