CVE-2022-45448 Cross-site Scripting in M4 PDF plugin for Prestashop sites
Attackers can inject arbitrary HTML/CSS via the PDF generation parameter, potentially executing scripts in the context of the Prestashop site.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-45448?
CVE-2022-45448 is a low-severity cross-site scripting vulnerability in Prestashop M4 PDF plugin, published on 20 Sep 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
M4 PDF plugin for Prestashop sites, in its 3.2.3 version and before, is vulnerable to an arbitrary HTML Document crafting vulnerability. The resource /m4pdf/pdf.php uses templates to dynamically create documents. In the case that the template does not exist, the application will return a fixed document with a message in mpdf format. An attacker could exploit this vulnerability by inputting a valid HTML/CSS document as the value of the parameter.
Weakness: CWE-79
Which versions are affected by CVE-2022-45448?
It affects 1 product.
Products include Prestashop M4 Pdf.
How do I fix CVE-2022-45448?
No fix has been published for CVE-2022-45448 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-45448 being exploited?
There is no known exploitation of CVE-2022-45448 in the wild and no public exploit code.
Other vulnerabilities in Prestashop M4 PDF plugin
Sources
Also known as GHSA-6597-86pv-vwjr.