CVE-2020-15178
PHP vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in PrestaShop's contact form module version 1.7.7.4 and earlier versions. The vulnerability, identified as CVE-2020-15178, was disclosed on September 15, 2020. The vulnerability affects the contact form functionality in PrestaShop installations and allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the message parameter in /contactform/contactform.php (GitHub Advisory).

Technical details

The vulnerability exists due to improper sanitization of user input in the contact form module. Specifically, the issue was related to the message parameter processing in the contactform.php file, where the html_entity_decode function was incorrectly used, allowing potential XSS payloads to be executed. The vulnerability was assigned a Low severity rating according to the official advisory (GitHub Advisory).

Impact

An attacker could exploit this vulnerability to inject and execute malicious JavaScript code through the contact form, potentially leading to stored cross-site scripting attacks. This could allow attackers to steal user session information, manipulate web content, or perform actions on behalf of other users (GitHub Advisory).

Exploitability

The vulnerability can be exploited by submitting specially crafted input through the contact form's message parameter. The attack requires no special privileges, though user interaction is necessary as the payload must be submitted through the contact form interface (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in version 4.3.0 of the contact form module. The fix involves proper escaping of the message content using Tools::htmlentitiesUTF8 before processing. Users are advised to upgrade to version 4.3.0 or later to protect against this vulnerability (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-59989CRITICAL9.2
  • PHP logoPHP
  • phalcon/cphalcon
NoYesAug 21, 2026
CVE-2026-63135HIGH8.2
  • PHP logoPHP
  • yourls/yourls
NoYesAug 21, 2026
GHSA-p2ch-c2c3-4xm5MEDIUM6.1
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-8hgv-xc77-jmcrMEDIUM5.1
  • PHP logoPHP
  • getgrav/grav
NoYesAug 21, 2026
GHSA-hq84-x37p-j6q5MEDIUM4.5
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management