PT-2024-10179
CVE-2024-56408
·
Published
2024-12-23
·
Updated
2025-04-21
Description by
CVSS 4.0
8.3
HighMetricsAV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:L/SI:H/SA:L
Name of the Vulnerable Software and Affected Versions
PhpSpreadsheet versions prior to 3.7.0, 2.3.5, 2.1.6, and 1.29.7
Description
The issue is related to the lack of sanitization in the
/vendor/phpoffice/phpspreadsheet/samples/Engineering/Convert-Online.php file, which can lead to a cross-site scripting attack. An attacker can exploit this by sending a specially crafted request to the vulnerable scenario, allowing them to execute arbitrary JavaScript code in the client's browser. The quantity variable is displayed without sanitization, making it possible for an attacker to prepare a special HTML form that will be automatically sent to the vulnerable scenario.Recommendations
For versions prior to 3.7.0, 2.3.5, 2.1.6, and 1.29.7, update to the patched version 3.7.0, 2.3.5, 2.1.6, or 1.29.7 to resolve the issue.
As a temporary workaround, consider sanitizing the
quantity variable in the /vendor/phpoffice/phpspreadsheet/samples/Engineering/Convert-Online.php file to prevent cross-site scripting attacks.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾