vendor:
Prestashop
by:
Mirabbas Agalarov
5.4
CVSS
MEDIUM
Cross-Site Scripting (XSS)
79
CWE
Product Name: Prestashop
Affected Version From: 8.0.4
Affected Version To: 8.0.4
Patch Exists: NO
Related CWE:
CPE: a:prestashop:prestashop:8.0.4
Platforms Tested: Linux
2023
Prestashop 8.0.4 – Cross-Site Scripting (XSS)
Uploading a malicious SVG file in Prestashop 8.0.4 allows for a stored XSS attack. By uploading a specially crafted SVG file containing malicious script, an attacker can execute arbitrary JavaScript code in the context of the victim's browser.
Mitigation:
To mitigate this vulnerability, it is recommended to sanitize and validate user input before allowing file uploads. Additionally, implementing Content Security Policy (CSP) can help prevent XSS attacks.