PT-2021-15444 · Pimcore · Pimcore

Daniele Scanu

·

Published

2021-02-18

·

Updated

2021-02-25

·

CVE-2021-23340

CVSS v3.1

7.1

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Name of the Vulnerable Software and Affected Versions pimcore/pimcore versions prior to 6.8.8
Description A Local File Inclusion issue exists in the downloadCsvAction function of the CustomReportController class. This can be reached by an authenticated user through a GET request at the endpoint "/admin/reports/custom-report/download-csv?exportFile=filename". The exportFile variable is not sanitized, allowing an attacker to exploit this issue.
Recommendations For versions prior to 6.8.8, update to version 6.8.8 or later to resolve the issue. As a temporary workaround, consider disabling the downloadCsvAction function in the CustomReportController class until a patch is available. Restrict access to the /admin/reports/custom-report/download-csv endpoint to minimize the risk of exploitation. Avoid using the exportFile variable in the affected API endpoint until the issue is resolved.

Exploit

Fix

Path traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-23340
GHSA-H7F9-CVH5-QW7F
SNYK-PHP-PIMCOREPIMCORE-1070132

Affected Products

Pimcore